Keycloak · Arazzo Workflow
Keycloak Apply a Realm Security Baseline
Version 1.0.0
Capture a realm's current settings, apply brute force protection and session hardening, and verify the result.
View Spec
View on GitHub
AuthenticationAuthorizationIdentity ManagementOAuthOpenID ConnectSecuritySSOArazzoWorkflows
Provider
Workflows
harden-realm
Apply and verify a security baseline on a Keycloak realm.
Snapshots the realm's current security settings, applies brute force protection, SSL enforcement, password policy, event logging, and session lifespan limits, then verifies the applied baseline.
1
captureCurrentBaseline
getRealm
Snapshot the realm's current security settings before changing anything. This is the rollback record, and the before/after comparison that makes the change auditable.
2
applySecurityBaseline
updateRealm
Apply the baseline in a single realm update: brute force protection with a growing lockout, SSL enforcement, the password policy, admin and login event logging, and tightened token and session lifespans. Realm update is a full-representation PUT, so every intended control is named explicitly.
3
verifyBaseline
getRealm
Read the realm back and assert the controls persisted. An update that returns 204 while silently dropping a field is the failure mode this step exists to catch.