GeezerVison is showing github.com — feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416) · Issue #13798 · developing-today/code
feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416) #13798DescriptionIntegration follow-on from #13416 (first consumer of the minimal IdP, story #13658), per the parent design #1253: the PM-stack aggregator is the first layer named for token validation, with Kaneo/Pad/Grist behind Cloudflare Access (#1182).
Scope
- The aggregator validates access tokens from our IdP (
pkgs/idp-provider) on its write paths, following the per-app integration pattern documented in the provider README (from SSO (#9077): first consumer integration proving the full loop (PM stack) #13416): discovery-driven configuration, JWKS verification selecting the key by token kid (rollover-safe), issuer + expiry + token_use=access checks.
- Writes require a write role from the token's
roles claim (owner or orchestrator per the reference consumer's gate); reads accept any valid token. Enforcement is server-side in the aggregator; role data is never taken from request bodies or client-side state.
- Cloudflare Access continues to front the stack for reachability; the IdP token is the aggregator's own authorization input. The two compose — neither replaces the other. The impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 break-glass owner token remains the outage path when the IdP itself is unreachable, exactly as designed there.
Sequencing
Acceptance
{
"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-23T21:52:36Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-07, 2026-11-24)
Fresh state: open. The reference consumer pattern landed as PR #13799 (feat(idp-provider): reference consumer + per-app integration pattern, #13416). The aggregator's own token validation and role-gated writes are not built yet. The outage-queueing piece (#13292) is separate and merged.
Verdict: the first production consumer, validating IdP access tokens and role-gating writes in pm-aggregator, is routed as a feature-slice packet that builds on #13799. Tracked under #14158. dezren39 commented on Nov 24, 2026 Triage second-pass (queue task 23232, xaltha, 2026-11-24): CONFIRMED OPEN — not resolved, sized as a feature slice. No PR yet.
Fresh state 2026-11-24 ~13:50Z:
Sizing/routing: one feature slice on the pm-stack lane (not a small_fix): wire the #13799 verifier pattern into pm-aggregator write paths; reads accept any valid token; 401 missing/invalid, 403 valid-without-write-role (test-level denial proof, per the issue), owner/orchestrator accepted against the real provider; keep the #9608 break-glass owner token as the IdP-outage path. Sequencing note from the issue stands: most valuable once a federation door (#13411/#13412/#13414) is live; not blocked on SAML #13795. dezren39 commented on Nov 24, 2026 Triage verdict (task 23232, lane code-h, 2026-11-24): still open — not resolved, remainder routed.
Fresh state: #13798 OPEN, no PR references it. Prerequisite pattern merged as PR #13799 (idp-provider reference consumer plus per-app integration pattern); parent tracker #13416 OPEN. Aggregator has its own HS256 stack-token and the Cloudflare Access JWT layer (access-identity.ts) but no IdP OIDC validation — the slice is genuinely unbuilt.
Remainder routed as #14411 (implementation slice: IdP validation plus role-gated writes in pm-stack/aggregator) with a queued feature_slice packet (task 23525). No live IdP in tests; 401/403/accept matrix plus recording on #13416 and #1253 are the acceptance. developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · triage refresh (queue task 25053, OpenChamber lane oc-code-08)
Verdict: still valid; the aggregator integration is not complete, and no separate small fix is available. The reference pattern is merged in PR #13799. Aggregator token validation and role gating are implemented in draft PR #14477, but the PR is still open/draft and conflicts with current main. The work is routed through child issue #14411; task 23805 remains parked with the concrete next step: port the gate into the extracted write-route handlers, rerun the targeted Fleet tests, and update PR #14477 to ready.
No duplicate packet or code change from this triage. #13798 stays open pending that implementation landing; #13416 separately retains the remaining federation-door acceptance. developing-today-fleet commented on Nov 27, 2026
Triage re-verification — task 25854 (oc-code-03), 2026-11-27: still valid; implementation in flight, no new packet.
Fresh verification (adopts oc-code-08 task 25053 verdict, 2026-11-26):
developing-today-fleet commented on Nov 27, 2026 Triage update — task 25854, OpenChamber lane code-i (2026-11-27)
Verdict: implementation slice merged; keep this issue open for the remaining real-provider acceptance proof.
No code changes in this triage. The separate GitHub/Microsoft doors and account linking remain on #13416. developing-today-fleet commented on Nov 27, 2026 Superseded: the shell quoting expanded Markdown backticks and injected unrelated service-list output into this comment. See the corrected acceptance-check record in the following comment. developing-today-fleet commented on Nov 27, 2026 Correction to live-provider acceptance check (task 26184, 2026-11-27)
The previous comment was posted with shell command-substitution damage. Its accidentally included service-list text should be disregarded; this comment replaces it as the concise record.
Blocked by the live environment; no acceptance claimed. The aggregator is reachable on this laptop at http://127.0.0.1:4870/ (GET / returned HTTP 200). The documented IdP provider discovery URL http://127.0.0.1:8911/.well-known/openid-configuration failed to connect (curl HTTP 000 / connection refused), and no idp-provider service was present in the user service list. The provider README documents 127.0.0.1:8911 as its default bind/issuer; no live provider endpoint or supported account sign-in flow could therefore be used to obtain a provider-issued access token.
I did not submit a write request or claim fixture results as live proof. There is no valid-token HTTP outcome, and no safe invalid-token comparison against an IdP-enabled route. To complete acceptance, deploy/start the configured IdP flow and an aggregator build with the merged IdP role gate, then repeat against a non-production write endpoint. No token, credential, or authorization header was accessed or recorded. developing-today-fleet commented on Nov 27, 2026
Live-provider acceptance recheck (task 26184, OpenChamber lane oc-code-06, 2026-11-27)
The concrete environment blocker remains. Rechecked through the laptop Fleet shell at 2026-11-27T10:37Z: aggregator GET http://127.0.0.1:4870/ returned HTTP 200; documented IdP discovery GET http://127.0.0.1:8911/.well-known/openid-configuration returned HTTP 000 (connection refused); no user service matching idp-provider was present. No deployed IdP or supported live sign-in flow is available to obtain a provider-issued token, so no write request or token test was attempted. No tokens, credentials, or authorization headers were accessed or recorded. This is environment status only; fixture tests are not live-provider acceptance. Resume this proof when a configured IdP provider/live sign-in and the aggregator build with the merged role gate are reachable on a safe non-production endpoint. developing-today-fleet commented on Nov 27, 2026 Live-provider acceptance recheck (task 26184, lane oc-code-08, 2026-11-27 ~11:50Z)
Environment blocker unchanged; no acceptance claimed.
- Aggregator reachable: GET http://127.0.0.1:4870/ returns HTTP 200 (pm-aggregator.service running, listening on 127.0.0.1:4870).
- IdP provider absent: GET http://127.0.0.1:8911/.well-known/openid-configuration and /healthz fail to connect (connection refused); nothing listening on port 8911; no idp unit installed. The provider README documents 127.0.0.1:8911 as default issuer/bind.
- No supported live sign-in is therefore available (local door needs the absent provider plus on-host credential; federated doors need the same provider plus vault secrets). No write request attempted; no token, credential, or authorization header accessed or recorded.
- PR feat(pm-aggregator): gate writes with IdP roles #15910 (role gate) is merged to origin/main, but no running aggregator build has been proven to include it; that check belongs with the live proof once the IdP is up.
Resume when a configured IdP provider with supported live sign-in and an aggregator build containing the merged role gate are reachable on a safe non-production endpoint. Fixture results remain not equivalent to this acceptance. developing-today-fleet commented on Nov 27, 2026 Live-provider acceptance recheck (task 26184, lane oc-code-07, 2026-11-27 ~12:15Z)
Environment blocker unchanged; no acceptance claimed.
- Aggregator reachable: GET http://127.0.0.1:4870/ returns HTTP 200 (pm-aggregator.service running; listeners on 127.0.0.1:4870 and 127.0.0.1:14870). GET /healthz returns 404, so root 200 is the reachability signal.
- IdP provider absent: GET http://127.0.0.1:8911/.well-known/openid-configuration and /healthz fail to connect (curl exit 7, connection refused); nothing listening on port 8911; no idp unit file or provider process present. The provider README documents 127.0.0.1:8911 as default issuer/bind.
- No supported live sign-in is therefore available (local door needs the absent provider plus on-host credential; federated doors need the same provider plus vault secrets). No write request attempted; no token, credential, or authorization header accessed or recorded.
- PR feat(pm-aggregator): gate writes with IdP roles #15910 (role gate) merge status is as previously recorded; no running-build gate check was attempted — that belongs with the live proof once the IdP is up.
Resume when a configured IdP provider with supported live sign-in and an aggregator build containing the merged role gate are reachable on a safe non-production endpoint. Fixture results remain not equivalent to this acceptance.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|