Repository navigation
Backlog
Backlog
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status/needs-triageNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
Description
Refs #13798 — first production-consumer slice of the pm-aggregator IdP integration. Parent tracker: #13416. Pattern: PR #13799 (pkgs/idp-provider reference consumer + per-app integration pattern, verify::TokenVerifier, examples/role-gated-app.rs).
Scope
In pm-stack/aggregator, validate IdP access tokens (pkgs/idp-provider) on write paths, following the per-app integration pattern from the provider README (as landed in #13799):
- discovery-driven configuration, JWKS verification selecting the key by token
kid(rollover-safe), issuer + expiry +token_use=accesschecks; - writes require a write role from the token's
rolesclaim (ownerororchestrator); reads accept any valid token; enforcement server-side, never from request bodies or client state; - composes with Cloudflare Access (reachability) and the impl(pm-stack): break-glass — outage queueing + local owner token CLI (#1253 split 6) #9608 break-glass owner token (outage path) — neither replaced.
Terms
- Tests run without a live IdP or credentials (local provider fixture, as in
pkgs/idp-provider/tests/consumer.rs); the live provider is selected by configuration. - Role-denial case covered by tests.
- House rules: secrets by name only; builds/tests via remote dispatch, never on the laptop or sandbox.
Acceptance
- Aggregator write endpoint rejects missing/invalid token (401), rejects valid token without write role (403), accepts owner/orchestrator token — demonstrated against the real provider config with denial proof at test level.
- Integration recorded on SSO (#9077): first consumer integration proving the full loop (PM stack) #13416 and design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253.
Filed by triage of #13798 (task 23232, lane code-h, 2026-11-24).
{
"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-24T14:13:35Z",
"session_id": "ses_e5df224b130ffeIqO7mTfWJNik",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
},
"auth_subject": "oc-code-03",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
- pm-aggregator validates IdP access tokens on the covered routes using the feat(idp-provider): reference consumer + per-app integration pattern (#13416) #13799 reference pattern (verify::TokenVerifier).
- Writes are role-gated: unauthorised roles are refused, authorised roles succeed, both covered by tests.
- No regression in existing aggregator behaviour for unauthenticated/public reads the slice designates as public.
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status/needs-triageNot yet triaged; needs a first looktask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 24, 2026
CODE-5323
developing-today-fleet commentedon Nov 24, 2026
Intake review
Related: Parent #13798, tracker #13416, pattern PR #13799 (pkgs/idp-provider).
Notes: Well-scoped first production-consumer slice of the IdP integration; body names the exact pattern to follow.
Risks: Token-validation semantics drifting from the reference consumer would create per-app divergence — reuse, do not re-implement.
Suggested approach: Mirror the reference consumer in pkgs/idp-provider; failing tests first for expired/wrong-issuer tokens and for the role gate.
🤖 Agent note · state: filed