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-stack): derive authors from Access JWT (#1253) — salvage of archive PR #7383 by dezren39 · Pull Request #8624 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Salvage re-application of the aggregator slice of #1253, recovered from closed archive PR #7383 (task 14941, salvage follow-on from task 14111 on #7297). The original work (branch queue/4964-1253-access-authorship, commit 5977e69) was bulk-closed unmerged in the 2026-11-08 archive disposition and exists nowhere on main; cherry-picked here verbatim onto current main — it applied cleanly.

Related to #1253 (design tracker stays open — this is the aggregator-only slice).

What

Config-gated Access-JWT author derivation for aggregator writes:

  • Validates Cf-Access-Jwt-Assertion against the team JWKS, only when PM_AGG_ACCESS_TEAM_DOMAIN and PM_AGG_ACCESS_AUD are set.
  • Derives DashAuthor from verified JWT claims (sub/email), never from caller-supplied author.
  • drew kind ONLY when the verified identity is in PM_AGG_OWNER_IDS allowlist; contradictory asserted drew -> 403; invalid token -> 401.
  • FAIL-CLOSED: Access configured but PM_AGG_OWNER_IDS unset/empty -> reject ALL drew-kind authors; non-drew kinds still derive from verified JWT.
  • Access unconfigured -> byte-identical legacy behavior (accepted risk per aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941).

Evidence

  • New: pm-stack/aggregator/src/access-identity.ts, wired in server.ts (comments, roadmap annotations, actions + batch); tests in test/access-identity.test.ts.
  • Verified on the laptop (this re-application): access-identity tests 7/7 pass; full aggregator suite 2045 pass / 21 fail — the failure set is byte-identical to a pristine-main worktree baseline run the same hour (pre-existing environment failures, incl. the source-gate boot timeout); the +7 passing tests vs baseline are exactly this file's tests.
  • The archive's remaining files are not re-applied: .pr-body-4964.md is the original PR's scratch body file, and coverage-snapshot.json was a janitor-run snapshot artifact.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39 repo-worker-tmp-code-b
feat(pm-stack): derive authors from Access JWT (#1253)
2809e82
@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 09:27
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fc7ac2ac-7d2e-4a20-9920-c0d6e7bafe6a
Commits

Reviewing files that changed from the base of the PR and between 3c42146 and 2809e82.

Files selected for processing: 3

  • pm-stack/aggregator/src/access-identity.ts
  • pm-stack/aggregator/src/server.ts
  • pm-stack/aggregator/test/access-identity.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T09:30:10.239600Z 2809e82 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 11, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253
Open
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 11, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2809e82e5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/aggregator/src/server.ts
results.push({ index, objectRef, ok: false, error: parsed.error });
continue;
}
const batchAccess = await enforceAccessAuthor(req, parsed.value.author);

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 11, 2026

Copy link
Copy Markdown

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.

P2 Badge Verify the Access JWT once per batch request

When Access is configured and the JWKS endpoint times out, a 100-entry /api/actions/batch request performs 100 sequential verification attempts against the same JWT. fetchJwks caches only successful responses and gives each fetch a five-second timeout, so rejecting this single request can take roughly 500 seconds. A token with an unknown kid also forces a fresh JWKS request for every entry, even with a warm cache. Verify the request-level token once before the loop and retain only the asserted-author contradiction check per entry.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39 dezren39 mentioned this pull request Nov 12, 2026
aggregator(batch): Access JWT verified once per batch entry — JWKS failures multiply to ~500s per request (from PR #8624) #8907
Closed
@github-actions github-actions Bot assigned dezren39 Nov 12, 2026
This was referenced Nov 13, 2026
impl(pm-stack): aggregator Access JWT validation middleware + default-deny role check on write routes (#1253 split 1) #9603
Closed
impl(pm-stack): aggregator identity registry table + owner admin actions + audit events (#1253 split 2) #9604
Closed
@dezren39

dezren39 commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

Agent: repo-worker-code (lane any-a)
State: done — closing as SUPERSEDED; the work is already on main.

Evidence (shepherd pass, queue task 17218):

  • This PR and PR feat(aggregator): config-gated Access-JWT author derivation for writes (#1253, salvage of #7383) #8645 are parallel salvages of the same archive work (task 14941, archive PR Archive disposition: archive/janitor-2026-11-07/4964 #7383). PR feat(aggregator): config-gated Access-JWT author derivation for writes (#1253, salvage of #7383) #8645 landed first: merge b6b57d1, commit 991f935 "feat(aggregator): config-gated Access-JWT author derivation for writes (design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253)" — same new pm-stack/aggregator/src/access-identity.ts, same enforceAccessAuthor wiring into the write paths in server.ts, same test/access-identity.test.ts.
  • A rebase of this branch onto current main (549db04) drops its only commit as patch-equivalent (git skipped-cherry-pick) and leaves an empty diff — nothing in this PR is missing from main.
  • The one Codex P2 raised here (verify the Access JWT once per batch request, comment 4536166816) was raised and fixed on the landed line: e4dda6e "fix(aggregator): verify Access JWT once per batch; owner derives the standing drew identity" memoizes verification per request via createAccessAuthorEnforcer, keeps the per-item contradictory-author check, and adds a regression test (certs endpoint down, 3 enforcer calls, exactly 1 fetch). No separate fix is needed from this PR.
  • Issue design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 (the stack-wide identity design) remains open and in progress; this slice of it is complete on main.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 closed this Nov 14, 2026
@dezren39
dezren39 deleted the queue/14941-7383-access-identity branch November 14, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
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.