Keeping the admin console and Admin REST API off the public internet: a separate admin hostname, proxy path rules, network restrictions, MFA for administrators, dedicated admin accounts and limiting master realm use.
Choosing access token, SSO session, client session and offline session lifetimes by application risk: the realm and client settings, remember me, idle versus maximum timeouts, and the impact on logout and user experience.
Reducing the damage of a stolen token: Revoke Refresh Token, offline token rules, not-before revocation for a realm, client or user, session revocation, and what each means for applications that hold tokens.
Hardening confidential clients: client secret rotation policies, signed JWT and mTLS client authentication instead of shared secrets, rotation runbooks and finding clients that still use long-lived secrets.
Removing SMTP passwords, LDAP bind credentials and identity provider client secrets from the database and exports with Keycloak's file or keystore vault, mounting Kubernetes secrets, naming rules and rotation.
Planning realm key rotation without logging everyone out: active, passive and disabled keys, priority, the suggested rotation interval, offline tokens, and applications that cache JWKS or pin certificates.
Closing common OAuth misconfigurations in Keycloak clients: wildcard redirect URIs, open redirectors, overly broad web origins, default scopes that leak roles, and limiting token audience to the services that need it.
Using client policies and profiles to require PKCE, confidential clients, PAR, DPoP or signed requests for groups of clients, so security rules apply automatically instead of client by client.
Staying ahead of Keycloak CVEs: where advisories are published, which release line receives fixes, judging severity for your configuration, patch upgrades without downtime, and tracking dependencies in custom providers.
Scoping a security test of a Keycloak deployment: login and token flows, admin endpoints, client configuration, custom extensions and themes, proxy setup, and how findings map to the threat mitigations in the Keycloak documentation.
An item-by-item review of a running Keycloak against the threats its documentation lists, with the setting to check for each, how to verify it and the evidence to keep, for internal audits or before go-live.