Skip to content

Add signed SAML metadata endpoint - #14625

Merged
developing-today-fleet[bot] merged 4 commits into
mainfrom
queue/23530-saml-s1
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 4 commits into
mainfrom
queue/23530-saml-s1

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Related program: #13793

Summary

  • Pin samael 0.0.22 behind the provider's saml module and add the xmlsec and libclang Nix build inputs.
  • Add signed GET /saml/metadata, loading IDP_PROVIDER_SAML_KEY and optional IDP_PROVIDER_SAML_CERT with the existing IDP_CA_PASSPHRASE path. Startup verifies the key matches the published certificate.
  • Advertise Redirect/POST bindings and persistent NameID; the signature uses the matching Slice 2 SAML certificate and SHA-256 digest.
  • Document the key configuration and cover signature verification, issuer escaping, metadata profile, and the HTTP endpoint.

Evidence

  • rustfmt --check, nix-instantiate --parse pkgs/idp-provider/default.nix, and git diff --check pass.
  • Fleet run 45496780638 succeeded: all three metadata tests passed, followed by the full provider crate test suite.
  • Fleet run 45498877172 succeeded after the digest was pinned to SHA-256; all three metadata tests passed.
  • Earlier runs identified and fixed the missing libclang build input and the required XML-DSig signature template.

Merge Danger

Draft slice. This adds the signed metadata endpoint only. Static SP registrations and the authenticated AuthnRequest-to-assertion flow from S1 remain to be implemented.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a46ca802-de28-4613-909b-524039558125
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Program tending — stalled PR check-in (tracking: #1352)

  • No activity for 2 day(s); last update 2026-11-24T22:19:07Z.
  • Waiting on: draft — waiting on its author.
  • Next step: mark the PR ready for review, or post what the draft is waiting on.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked.

Fresh gate re-read by this lane via gh api:

  • PR OPEN, draft, head 168e07f5 (exact head checked).
  • Verification: repos/developing-today/code/actions/runs?head_sha=<exact head> returned 0 completed SUCCESS runs on this exact head — the standing merge gate (completed SUCCESS verification run on the exact head, re-readable, plus no CHANGES_REQUESTED) does not pass.
  • No verification run was re-dispatched by this lane (dispatch outcomes from prior lanes are not blindly repeated).

Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority.

@dezren39
dezren39 force-pushed the queue/23530-saml-s1 branch from 168e07f to 11d5a0a Compare November 29, 2026 12:44
@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 0552-C (bravo SUSTAIN LANDINGS, 2026-11-29) — rebased onto current main; DIRTY resolved, verification running.

  • Old head 168e07f58 → new head 11d5a0a01 (force-with-lease by this lane; no author activity since 2026-11-24).
  • Conflicts: src/lib.rs (one hunk — resolved keeping both pub mod saml; and main pub mod session;) and Cargo.lock (3 hunks). The lock was rebuilt at package-block level as main ∪ samael tree: main 209 packages (incl. its proptest 1.12.0 update) + 57 branch-only blocks (samael 0.0.22, quick-xml, libxml/bindgen tree), branch disambiguation forms for cc/getrandom/rand, and idp-provider = main block + samael dep — 266 packages, no duplicates.
  • Verification running: fleet-command on exact new head, cargo test --locked in pkgs/idp-provider (validates the rebuilt lock against Cargo.toml and runs the suite, incl. the samael-verifier metadata tests). Merge follows on success; the 2022-E exact-head-run gate is void under the current core — verification here is full-diff read + this run.

@dezren39
dezren39 force-pushed the queue/23530-saml-s1 branch from 11d5a0a to 6bc3cdf Compare November 29, 2026 12:47
@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 1052-C (bravo SUSTAIN LANDINGS, 2026-11-29) — claiming for verify-then-merge under Drew's standing merge authority. CI is not a gate (Drew, 2026-11-29). Prior lane 0552-C rebased this PR to head 6bc3cdfbb5 and left verification running with 'merge follows on success'; no activity since 12:47Z and the PR is still draft/open, so this lane takes it over: full-diff read + exact-head verification run, then ready + merge on success, or a recorded park with wake.

@developing-today-fleet
developing-today-fleet Bot marked this pull request as ready for review November 29, 2026 17:33
@developing-today-fleet
developing-today-fleet Bot merged commit 3a0b8d9 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the queue/23530-saml-s1 branch November 29, 2026 17:36
@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 1052-C (bravo SUSTAIN LANDINGS, 2026-11-29) — MERGED. Merge commit 3a0b8d96bfe9aca68f268e083e98ffa714a37ba7, merged 2026-11-29T17:36:15Z, confirmed on a second independent read (gh api + gh pr view agree).

Verification (firsthand, this lane): full diff read — 6 files in pkgs/idp-provider (saml.rs +237 new, lib.rs +79/-13, Cargo.toml samael =0.0.22 pin, default.nix +pkg-config/libclang/xmlsec + LIBCLANG_PATH, README, Cargo.lock additions = the samael tree only). Matches the stated purpose (signed GET /saml/metadata, programme #13793): signer validates key↔cert match at construction and at startup load, fails closed when unconfigured/mismatched, SHA-256 digest, in-diff tests use samael's own XML-DSig verifier as oracle. Pre-merge gate at unchanged head 6bc3cdfbb5: CLEAN/MERGEABLE (gh pr view) + API mergeable=true/mergeable_state=clean. CI is not a gate (Drew, 2026-11-29). An exact-head fleet-command run (cargo test --locked, run 46289031696, dispatch 1052C-14625) was dispatched and still queued at merge time under fleet-command congestion; per Drew's rule the lane does not spend its window waiting on a run for work it has read and verified — any failure it later reports is a bug to fix forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant