Enforced Key Management
When enabled, Keywarden periodically connects to all managed servers and verifies that only
authorized SSH keys (managed by Keywarden + the system master key) are present in
authorized_keys. Unauthorized keys are detected and optionally removed automatically.
Monitor mode: Detects unauthorized keys and logs them in the audit log, but does not remove them.
Enforce mode: Detects unauthorized keys and removes them automatically, keeping only Keywarden-managed keys.
{{if and .EnforcementStatus (index .EnforcementStatus "last_run")}}
Last Enforcement Run
Last Run
{{index .EnforcementStatus "last_run"}}
Result
{{index .EnforcementStatus "last_result"}}
{{end}}
{{if and .EnforcementStatus (ne (index .EnforcementStatus "mode") "disabled")}}
Manual Run
{{end}}