Repository navigation
docs(sso): fleet SSO provider decision note (#9077) #13417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| # Fleet SSO design note (#9077) | ||
|
|
||
| Date: 2026-11-23 · Lane oc-code-05 (task 21351) · Status: settled per FDR-0013 | ||
| (Drew may override §6; the override point is named there, not parked on.) | ||
|
|
||
| ## 1. Question settled | ||
|
|
||
| **Is pkgs/id the OIDC provider, or a separate minimal provider?** | ||
|
|
||
| **Settled: a separate minimal OIDC provider first, with an explicit, | ||
| designed fold path into pkgs/id — not drift.** Fleet services get boring, | ||
| standard OIDC now; id remains the long-term identity system of record and | ||
| absorbs the provider's accounts through its own binding ceremonies when it | ||
| is ready to be an issuer. | ||
|
|
||
| ## 2. Evidence (all verified fresh 2026-11-23) | ||
|
|
||
| - **No OIDC surface exists in pkgs/id.** Code search over `pkgs/id` for | ||
| `oidc|openid|jwks` returns nothing; `issuer` hits are currency issuers, | ||
| evidence issuers, and rotation — no protocol surface to reuse. Casting | ||
| id as the provider is greenfield protocol work, not a small extension. | ||
| - **id's key-custody model is unresolved.** #5684 (simplicity-first custody, | ||
| login & delegation) is OPEN and owned; #9077's own body names this as the | ||
| cost of id-as-provider ("more exotic than a conventional OIDC issuer"). | ||
| Fleet logins must not wait on it. | ||
| - **The binding side is half-built.** #2852 slices 1–2 (account + binding | ||
| records, ceremony, delayed rebind) landed (PRs #4854, #4885); slice 3 is | ||
| partial (metering/budget remainder in #3811) and slice 4 (export/import, | ||
| #3810) is untouched. The ceremony the fold path needs *exists*; the rest | ||
| does not gate a separate provider. | ||
| - **The consumer contract is in progress, not landed.** #1253 (one identity | ||
| across the PM stack, roles owner/orchestrator/agent/read-only checked | ||
| server-side) is OPEN/in-progress; #1182 (Cloudflare Access entry) is | ||
| OPEN/triaged. The provider must therefore serve the #1253 role model as | ||
| its first consumer contract without assuming the entry migration is done. | ||
| - **Serverless id is unbuilt.** #5524 (Workers edition) is OPEN. A minimal | ||
| provider has no such dependency. | ||
|
|
||
| ## 3. The settled shape | ||
|
|
||
| - **Issuer:** a new minimal OIDC provider ("devtoday SSO" button) — | ||
| standard code + PKCE flows, upstream federated logins GitHub / Google / | ||
| Microsoft, signing keys with rotation, JWKS endpoint, short-lived ID + | ||
| access tokens. No id keypair custody inside the login path. | ||
| - **Linking model:** one account row, N linked external identities | ||
| (GitHub sub / Google sub / Microsoft oid / devtoday local). Any linked | ||
| door opens the same account interchangeably; linking and unlinking are | ||
| audited account events. Every external identity ever linked is retained | ||
| in history (never hard-deleted while the account lives) so audit keeps | ||
| continuity of who-did-what. | ||
| - **Role set (v1, consumed server-side):** owner / orchestrator / agent / | ||
| read-only, per #1253. Roles live on the account (not the login door), are | ||
| checked server-side on every write, and propagate as token claims the | ||
| entry point can forward. Agent identity (agents as themselves, not Drew) | ||
| follows #1253 §agent-identity; the provider mints agent credentials as | ||
| linked identities of the same account shape. | ||
| - **Drew-only gate (v1):** deny-by-default allowlist containing only Drew's | ||
| GitHub/Google/Microsoft account IDs, enforced in the provider (not the | ||
| apps), every attempt audited (allowed and denied). Lifting the gate is a | ||
| separate ruled change, not a config edit. | ||
| - **Fold path into id (designed, not drifted):** when #5684 settles custody | ||
| and id can act as an issuer, provider accounts bind to id accounts via the | ||
| #2852 ceremony (external-identity-as-bound-identity), the provider becomes | ||
| a relying party of id (or id absorbs issuance), and the linking history | ||
| migrates as the audit trail. The child issue for the provider MUST record | ||
| this fold as acceptance debt, not an afterthought. | ||
|
|
||
| ## 4. Non-goals (unchanged from #9077) | ||
|
|
||
| MFA/passkeys/OTP policy, workload identity, capabilities/attenuation beyond | ||
| basic roles, and the broader Fleet v0.3 identity vision (CA mill #9155 | ||
| boundary note) — recorded as out of scope, not covered here. | ||
|
|
||
| ## 5. Open questions still needing Drew (override points) | ||
|
|
||
| 1. Provider choice itself (§1) — override by ruling for id-as-provider. | ||
| 2. Whether hosting-adjacent costs ever enter any ledger — no. | ||
| (Not this issue's question; listed so the roles/claims shape is not | ||
| later read as answering it.) | ||
| 3. When the Drew-only gate lifts, and to whom first. | ||
|
|
||
| ## 6. Build breakdown (filed as child issues of #9077) | ||
|
|
||
| 1. Provider stand-up (issuer, JWKS, rotation, allowlist gate, audit). | ||
| 2. GitHub federated login. 3. Google federated login. | ||
| 4. Microsoft federated login. 5. Account linking UI/flow + history. | ||
| 6. First consumer integration (PM stack per #1253) proving the full loop: | ||
| Drew signs into a fleet service via each linked door against the same | ||
| account, roles enforced server-side. | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reviewed commit already contains the slice-4 implementation described here as “untouched”:
pkgs/id/src/hosted_export.rsexplicitly identifies #2852/#3810 and implementsbuild_exportandverify_import, whilepkgs/id/src/hosted_ingest.rsimplements ingestion of verified imports. Since this section supplies the implementation baseline for the settled provider decision and its follow-up work, distinguish any remaining gaps from those existing migration primitives rather than treating the entire slice as absent.Useful? React with 👍 / 👎.