Shared Signals / CAEP receiver for real-time session and credential revocation from the identity provider #845

Open
opened 2026-10-03 17:09:08 +00:00 by Cordy · 0 comments
Owner

Parked (Nikola, 2026-10-03). Reminder: re-check provider support before picking this up, and only then start. Check whether Keycloak, Entra ID, Okta and the other providers our customers use ship an SSF transmitter with CAEP events in a stable, documented form.

Why

#838 and #839 make Cairn re-check accounts and groups at least every 5 minutes (pull). OIDC Back-Channel Logout, part of that batch, adds instant push for session ends.

CAEP adds instant push for more:

  • Credential Change (password reset at the IdP);
  • Token Claims Change (group/role changes, so admin removal takes effect immediately);
  • Session Revoked;
  • Assurance Level Change.

That closes the remaining window between an IdP-side change and Cairn noticing.

State of the standard

  • Status: the OpenID Foundation approved SSF 1.0, CAEP 1.0 and RISC 1.0 as Final Specifications on 2025-09-02. An interoperability profile is in progress.
  • Adoption: still early. Microsoft's Continuous Access Evaluation is the best-known deployment. For Keycloak there are third-party write-ups, but I have not confirmed native support. Verify this first.

Sketch (to refine when picked up)

  • An SSF receiver endpoint that registers a stream with the IdP's transmitter, receives Security Event Tokens (signed JWTs), and validates issuer, audience and signature via the transmitter's JWKS.
  • Map the events onto the #839 mechanisms:
    • Session Revoked → RevokeUser;
    • Credential Change → account counter bump;
    • Token Claims Change → immediate group re-resolution.
  • Pull from #838 and #839 stays as the safety net for lost events.

Concerns to research then

  • Stream management (who creates the stream, and its lifecycle).
  • Replay protection (jti).
  • Clock skew.
  • Receiver availability: missed events and backfill.
  • Multi-tenant audiences.
  • Privacy: subject identifiers.

Refs:

Parked (Nikola, 2026-10-03). **Reminder: re-check provider support before picking this up**, and only then start. Check whether Keycloak, Entra ID, Okta and the other providers our customers use ship an SSF transmitter with CAEP events in a stable, documented form. ## Why #838 and #839 make Cairn re-check accounts and groups at least every 5 minutes (pull). OIDC Back-Channel Logout, part of that batch, adds instant push for **session ends**. CAEP adds instant push for more: - **Credential Change** (password reset at the IdP); - **Token Claims Change** (group/role changes, so admin removal takes effect immediately); - **Session Revoked**; - **Assurance Level Change**. That closes the remaining window between an IdP-side change and Cairn noticing. ## State of the standard - **Status:** the OpenID Foundation approved **SSF 1.0, CAEP 1.0 and RISC 1.0 as Final Specifications on 2025-09-02**. An interoperability profile is in progress. - **Adoption:** still early. Microsoft's Continuous Access Evaluation is the best-known deployment. For Keycloak there are third-party write-ups, but I have not confirmed native support. Verify this first. ## Sketch (to refine when picked up) - An SSF receiver endpoint that registers a stream with the IdP's transmitter, receives Security Event Tokens (signed JWTs), and validates issuer, audience and signature via the transmitter's JWKS. - Map the events onto the #839 mechanisms: - Session Revoked → `RevokeUser`; - Credential Change → account counter bump; - Token Claims Change → immediate group re-resolution. - Pull from #838 and #839 stays as the safety net for lost events. ## Concerns to research then - Stream management (who creates the stream, and its lifecycle). - Replay protection (`jti`). - Clock skew. - Receiver availability: missed events and backfill. - Multi-tenant audiences. - Privacy: subject identifiers. Refs: - https://openid.net/specs/openid-caep-1_0-final.html - https://openid.net/wg/sharedsignals/ - https://openid.github.io/sharedsignals/openid-caep-interoperability-profile-1_0.html - https://skycloak.io/blog/keycloak-caep-shared-signals-continuous-access/ - Related: #838, #839
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#845
No description provided.