Repository navigation
feat(pm-aggregator): gate conflict-ruling writes behind the IdP write-role check (#13798) - #17054
Merged
developing-today-fleet[bot] merged 1 commit intoNov 30, 2026
Conversation
…-role check (#13798) POST and DELETE /api/conflicts/rulings were the remaining asserted-drew write routes enforcing only the Cloudflare Access author derivation; every sibling drew write family (reports resolve/late-update, roadmap annotations, comments, actions) already runs enforceIdpWriteRole first. Add the same gate to both ruling routes: when IDP_PROVIDER_ISSUER is configured, a missing/invalid IdP access token is 401 and a valid token without the owner/orchestrator role is 403; when unconfigured the gate is inert and behavior is unchanged. Roles are read only from the verified token, never the request body. Lane 2037-G (alpha DRIVE). Refs #13798, #13416.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
lane/2037g-13798-rulings-idp-gate
branch
November 30, 2026 02:55
This was referenced Nov 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Gates the two conflict-ruling write routes behind the IdP write-role check, completing the aggregator's IdP integration for #13798.
POST /api/conflicts/rulingsandDELETE /api/conflicts/rulingswere the remaining asserted-drew write routes that enforced only the Cloudflare Access author derivation. Every sibling drew write family — reports resolve / late-update, roadmap annotations (+alias), comments, actions (+batch) — already runsenforceIdpWriteRolefirst (landed under #13799 / #14411 insrc/idp-identity.ts).Change
+4 lines in
pm-stack/aggregator/src/server-write-routes.ts: both ruling routes now run the same gate first, in the same shape as the sibling routes.IDP_PROVIDER_ISSUERset): missing/invalid access token → 401; valid token without theowner/orchestratorrole → 403. Roles are read only from the verified token.Verification
server-write-routes.ts(machine callback routes — prompt submission/answer, comment triage/github-result, action result, stack-token exchange, outage-queue confirm/reject — keep their own existing auth models and are unchanged).pm-stack/aggregator/test/idp-identity.test.ts(401 missing/malformed, 403 read-only role, owner/orchestrator pass, wrong iss/token_use/exp/signature rejected, discovery outage fails closed).Refs #13798 (the close-out adjudication + the #13416/#1253 records are posted by lane 2037-G on the issues), #13416, #1253.
Lane: 2037-G (alpha DRIVE author lane, 2026-11-29).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.