You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SSO (#9077): first consumer integration proving the full loop (PM stack) #13416
Scope: first fleet-service consumer per #1253: accept devtoday SSO tokens, enforce owner/orchestrator/agent/read-only roles server-side on writes.
Acceptance: Drew signs into a PM-stack service via each linked door against the same account with roles enforced server-side; documents the per-app integration pattern for the next consumer; depends on the linking issue.
The per-app integration pattern (explicitly in this issue's acceptance) is documented in pkgs/idp-provider/README.md: registration (client row, no secrets, PKCE S256), discovery-driven configuration, code + PKCE sign-in (300 s tokens, no refresh tokens), verify-every-request against the JWKS by kid, and server-side role enforcement — plus how Cloudflare Access composes with the IdP token instead of being replaced by it.
A reference consumer proves the pattern: src/verify.rs (TokenVerifier — discovery → JWKS, signature-first verification, iss/token_use/exp checks — and require_any_role, the whole write gate) and examples/role-gated-app.rs (/read for any valid token, /write gated on owner/orchestrator).
Proof, tests:tests/consumer.rs — the owner token comes through the provider's real authorize/token loop and passes read + write; a read-only token reads but gets 403 on write; ID-token-as-bearer, expired, garbage, and missing tokens all get 401. (The denial case is test-level by construction: the live provider's one account holds all four roles, so no live login can mint a low-role token. 20/20 crate tests pass.)
Proof, live: the shipped example ran against the live laptop provider (post-rollover, serial-1004 key): owner token → /read 200 (sub: drew, all roles), /write 200 (written: true); tampered token → 401; no token → 401.
What remains on this issue (why it stays open):
The aggregator production integration — filed as #13798 with the pattern as its spec: aggregator write paths validate IdP tokens and role-gate per the reference consumer. Sequenced after this landing; most valuable once a door is live.
This issue stays open. Next actions, in order: Drew's two browser sign-ins unblock the remaining doors; then a PM-stack service consumes a door sign-in per the documented pattern.
Triage pass (task 22312, lane oc-code-02, 2026-11-24)
Fresh state: issue open. The buildable half is landed (PR #13799, merge 0ae6122). Provider decision, SAML design, and relying-party design are merged (#13417, #13792, #14089). The Google door is live-proven per the 2026-11-23 re-check.
Remaining: the GitHub door (#13411) and the Microsoft door (#13414) sign-ins. Both need a Drew-only step, which is a hands item and not claimable here.
Verdict: keep #13416 open for those two door sign-ins. No new packet is routed, and no code was changed.
Triage (oc-code-07, task 22696), state checked 2026-11-24.
Verdict: open, blocked on two doors that are still open. Buildable half merged (#13799); provider, SAML and relying-party designs merged (#13417, #13792, #14089); Google door live-proven. Remaining: the GitHub door (#13411) and the Microsoft door (#13414), both OPEN. Each needs a sign-in performed at a live browser, which is a hands item, so this lane records it and does not park on it. No code changed in this pass.
Activity
developing-today commentedon Nov 23, 2026
CODE-4890
Merge pull request #13799 from developing-today/lane/idp4/reference-c…
dezren39 commentedon Nov 23, 2026
First consumer — the buildable half is landed; the issue stays open for the rest
Landed: PR #13799 (merge
0ae6122d03ff).pkgs/idp-provider/README.md: registration (client row, no secrets, PKCE S256), discovery-driven configuration, code + PKCE sign-in (300 s tokens, no refresh tokens), verify-every-request against the JWKS by kid, and server-side role enforcement — plus how Cloudflare Access composes with the IdP token instead of being replaced by it.src/verify.rs(TokenVerifier— discovery → JWKS, signature-first verification,iss/token_use/expchecks — andrequire_any_role, the whole write gate) andexamples/role-gated-app.rs(/readfor any valid token,/writegated onowner/orchestrator).tests/consumer.rs— the owner token comes through the provider's real authorize/token loop and passes read + write; a read-only token reads but gets 403 on write; ID-token-as-bearer, expired, garbage, and missing tokens all get 401. (The denial case is test-level by construction: the live provider's one account holds all four roles, so no live login can mint a low-role token. 20/20 crate tests pass.)/read200 (sub: drew, all roles),/write200 (written: true); tampered token → 401; no token → 401.What remains on this issue (why it stays open):
dezren39 commentedon Nov 23, 2026
Remainder re-check (IDP-DOORS-REGISTER, 2026-11-23)
State after today's door work:
sub=drew) with the design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 roles enforced by the provider, and the linking proof ran on SSO (#9077): account linking UI/flow with retained identity history #13415 (link event, unlink denial, account reachable via the local door, history intact). The GitHub (SSO (#9077): GitHub federated login #13411) and Microsoft (SSO (#9077): Microsoft federated login #13414) door sign-ins are still outstanding — both are blocked on a Drew-only step (sign into github.com / portal.azure.com in the laptop's stock Chromium), recorded on those issues.This issue stays open. Next actions, in order: Drew's two browser sign-ins unblock the remaining doors; then a PM-stack service consumes a door sign-in per the documented pattern.
dezren39 commentedon Nov 24, 2026
Triage pass (task 22312, lane oc-code-02, 2026-11-24)
Fresh state: issue open. The buildable half is landed (PR #13799, merge 0ae6122). Provider decision, SAML design, and relying-party design are merged (#13417, #13792, #14089). The Google door is live-proven per the 2026-11-23 re-check.
Remaining: the GitHub door (#13411) and the Microsoft door (#13414) sign-ins. Both need a Drew-only step, which is a hands item and not claimable here.
Verdict: keep #13416 open for those two door sign-ins. No new packet is routed, and no code was changed.
dezren39 commentedon Nov 24, 2026
Triage (oc-code-07, task 22696), state checked 2026-11-24.
Verdict: open, blocked on two doors that are still open. Buildable half merged (#13799); provider, SAML and relying-party designs merged (#13417, #13792, #14089); Google door live-proven. Remaining: the GitHub door (#13411) and the Microsoft door (#13414), both OPEN. Each needs a sign-in performed at a live browser, which is a hands item, so this lane records it and does not park on it. No code changed in this pass.