Repository navigation
SAML S4 rollover parity: SAML signing key as a served set (#13796) - #17357
Merged
Merged
Conversation
Refs #13796. The SAML signing key becomes a served set following the Slice 5 OIDC pattern: MetadataSigner holds several validated key/certificate pairs keyed by certificate thumbprint (the x5t#S256 kid convention), metadata publishes every certificate in the set as its own KeyDescriptor (overlap publication), responses and metadata are signed with the configured active key, and retirement is removal from the configured set — no SP flag day. Config parity with OIDC: IDP_PROVIDER_SAML_KEYS / IDP_PROVIDER_SAML_CERTS parallel lists and IDP_PROVIDER_SAML_ACTIVE_KID, falling back to the single IDP_PROVIDER_SAML_KEY / IDP_PROVIDER_SAML_CERT pair. The loader stays fail-closed: counts must match and every key must match the certificate at its position before anything is served. Evidence: tests/saml_rollover.rs walks the OIDC rollover phases (overlap publication, active flip across metadata + responses, retirement) against samael's XML-DSig verifier, plus bad-set rejection. README documents the new variables.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #13796 — this lands the rollover half of S4 only. The doors half remains gated on the federation-door live registrations (#13411/#13412/#13414) and is recorded as the precise remainder on #13796.
What changes
Following the Slice 5 OIDC pattern (
TokenSignerserved set,jwks_from_cert_pemsoverlap publication,tests/rollover.rsphase evidence):saml::MetadataSignernow holds a served set of validated key/certificate pairs, keyed by certificate thumbprint (the same x5t#S256kidconvention as OIDC), signing with the configured active key.from_pairsfails closed exactly likeTokenSigner::from_keys: empty set, duplicate certificate, key/cert mismatch, or an active kid outside the set are all startup errors.MetadataSigner::newkeeps the single-pair shape.metadata_xmlpublishes every certificate in the set as its ownKeyDescriptor(overlap publication — an SP refreshing metadata learns the successor before the flip) and signs the document with the active key.signed_responsesigns with the active pair.IDP_PROVIDER_SAML_KEYS/IDP_PROVIDER_SAML_CERTS(comma-separated parallel lists) andIDP_PROVIDER_SAML_ACTIVE_KID, falling back to the singleIDP_PROVIDER_SAML_KEY/IDP_PROVIDER_SAML_CERTpair. The loader proves each key matches the certificate at its position before serving anything, as the OIDC loader does.IDP_PROVIDER_SAML_ACTIVE_KID→ retire the incumbent by removing its pair. No SP flag day.Evidence
tests/saml_rollover.rswalks the OIDC rollover phases against the local metadata/response surface, with samael's XML-DSig verifier as oracle:Verification: fleet queue dispatch run 46473608889 (developing-today-forks/fleet) at head eb5bce8 — full
cargo testfor pkgs/idp-provider, counts read firsthand from the run log before merge.README documents the served set and the three new variables.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T17:28:35Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.