GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #13798

New issue
Copy link
New issue
Copy link
Backlog
Backlog
feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416)#13798
Copy link

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

Integration 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

  • After the reference consumer from SSO (#9077): first consumer integration proving the full loop (PM stack) #13416 (pattern + proof exist), and most valuable once a federation door is live (SSO (#9077): GitHub federated login #13411/SSO (#9077): Google federated login #13412/SSO (#9077): Microsoft federated login #13414 registrations) so sign-in to the aggregator is a real door login rather than the local door alone. Not blocked on SAML (S3, SAML S3 — first real SP onboarding (blocked: consumer to be named) #13795) — the aggregator consumes OIDC.

Acceptance

  • Aggregator write endpoint rejects a missing/invalid token (401), rejects a valid token without a write role (403), and accepts an owner/orchestrator token — demonstrated against the real provider, with the role-denial case covered by tests (the live provider's single account holds all roles, so the denial proof is test-level, as in the reference consumer).
  • The integration is 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.
{
  "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)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-5071

  2. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    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.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    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:

    • feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416) #13798 OPEN, no PR references it. Parent/first-consumer tracker SSO (#9077): first consumer integration proving the full loop (PM stack) #13416 still OPEN.
    • Prerequisite pattern is in place: PR feat(idp-provider): reference consumer + per-app integration pattern (#13416) #13799 (reference consumer + per-app integration pattern for pkgs/idp-provider) is MERGED. The feat(pm-aggregator): outage queueing for action writes during an Access/IdP outage (#9608) #13292 outage-queueing piece is separate and merged.
    • Still missing (the whole remaining scope): pm-aggregator itself performs no IdP token validation — no discovery/JWKS (kid-selected) verification, no issuer/expiry/token_use checks, and no server-side write role-gate (owner/orchestrator) on its write paths.

    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.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    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.

  5. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 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.

  6. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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):

    • feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416) #13798 OPEN; slice issue feat(pm-aggregator): validate IdP access tokens + role-gate writes (slice of #13798) #14411 OPEN (status:in-review); draft PR feat(pm-aggregator): gate writes with IdP roles #14477 OPEN/DRAFT.
    • Implementation task 23805 PARKED on this lane (oc-code-03) with concrete next step: port IDP role enforcement onto current extracted write-route handlers (merge with current main exposed the server.ts route-extraction refactor), rerun remote suite, update PR to ready. Park timer (not_before 2026-11-26T23:23:24Z) has elapsed — eligible for pickup.
    • No duplicate packet or code change from this triage. feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416) #13798 stays open pending feat(pm-aggregator): gate writes with IdP roles #14477 landing.
  7. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

    • PR feat(pm-aggregator): gate writes with IdP roles #15910 is MERGED (2026-11-27T09:16:27Z) and closes child feat(pm-aggregator): validate IdP access tokens + role-gate writes (slice of #13798) #14411. It ports the IdP role gate to the current extracted write routes.
    • The six IdP fixture cases passed in Fleet runs; the configured full-suite failures were independently reproduced on clean main and documented on feat(pm-aggregator): validate IdP access tokens + role-gate writes (slice of #13798) #14411. This is implementation evidence, not the live-provider demonstration required by this issue.
    • I found no evidence that a real-provider-issued token was exercised against the aggregator endpoint. Therefore I am not closing feat(pm-aggregator): validate IdP access tokens + role-gate writes (first production consumer, #13416) #13798 or treating fixtures as equivalent to the explicit live acceptance.
    • Follow-up task 26184 is queued in repo-health-code-pilot to perform the bounded live-provider proof and record outcomes or a concrete environment blocker.

    No code changes in this triage. The separate GitHub/Microsoft doors and account linking remain on #13416.

  8. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  9. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  10. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  11. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.