Skip to content

Advanced Security

Security spans the login flow, the platform edge, and the data layer. This chapter covers the controls beyond basic realm setup.

MFA & passkeys

TOTP/OTP and WebAuthn/passkeys; enforce per realm, per role, or per client.

Step-up authentication

Require stronger auth for sensitive operations via ACR/LoA — not just at login.

Adaptive auth

Conditional authenticators react to risk signals (new device, geo, IP reputation) to challenge or block.

Brute-force defense

Login-failure lockouts with per-user counters; credential-stuffing patterns surfaced in analytics.

The STS token-broker exchanges a Keycloak-issued token for short-lived cloud credentials (AssumeRoleWithWebIdentity), so applications and workloads get scoped, expiring access to AWS (and other) resources without long-lived keys. It’s implemented as a control-plane service over the Admin/OIDC surfaces — the Cognito Identity Pools equivalent, on open Keycloak.

  • CloudFront + WAF/Shield in front of every cell — TLS termination, managed rule sets, rate limiting, and DDoS protection at the edge.
  • Private data tier — Aurora and caches are not publicly reachable; access is via the app tier inside the VPC.
  • Tenant isolation — pooled tenants get realm-level isolation (own keys, users, clients); regulated tenants get a dedicated silo (own Keycloak + DB) for the strongest boundary.

Secrets management

Credentials and connection strings in a managed secrets store (KMS-encrypted), never in images or env files.

Realm signing keys

Per-realm keys with rotation; old keys stay valid through their grace window so tokens don’t break mid-rotation.

Encryption

TLS in transit; KMS encryption at rest for the database, backups, and event store.

Every admin change and auth event flows through the analytics pipeline into an immutable event history — the basis for access reviews and audit evidence.

Region pinning keeps a tenant’s data in a chosen region to meet residency requirements; the cross-cloud standby option extends this to a second cloud for sovereignty.