fix: revalidate package publish owners before insert#2281
fix: revalidate package publish owners before insert#2281vyctorbrzezowski wants to merge 1 commit into
Conversation
|
@vyctorbrzezowski is attempting to deploy a commit to the Amantus Machina Team on Vercel. A member of the Team first needs to authorize it. |
|
Codex review: needs changes before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. Source inspection shows user org membership is checked before scan/hash work, while the final insert receives ids and still does not re-query publisherMembers before writing package data. PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. PR egg What is this egg doing here?
Real behavior proof Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge Security Review findings
Review detailsBest possible solution: Land final insert authority revalidation that covers active principals and user org membership, with regression tests for membership removal and no change to trusted GitHub Actions semantics. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows user org membership is checked before scan/hash work, while the final insert receives ids and still does not re-query publisherMembers before writing package data. Is this the best way to solve the issue? No. The active-state checks are the right direction, but final publish authority is not fully revalidated until user org membership revocation is covered too. Label justifications:
Full review comments:
Overall correctness: patch is incorrect Security concerns:
Acceptance criteria:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 2aa2a449e5fc. |
ce25b8f to
64bf59c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
64bf59c to
d188894
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Revalidates package publish authority immediately before inserting a package release.
What changed
Public behavior
Package publish rejects the final insert when the actor, requested owner, or owner publisher becomes invalid during the publish window. It does not create a package or release row under stale authority.
Behavior proof
Live Convex runtime proof from the final package publish insert boundary:
This proof starts from valid publish principals, revokes one principal before the final insert, and confirms the release insert aborts without creating package/release data.
Focused regression suite:
Validation
Current GitHub CI for this head also has
packages,types-build,e2e-http,playwright-smoke, andplaywright-local-authpassing. Thestaticjob currently stops atbun auditon the existing transitivewsadvisoryGHSA-58qx-3vcg-4xpx.