Repository navigation
Gateway: preserve approved scope baseline during pairing - #58367
jacobtomlinson wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3bea84dbb3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Greptile SummaryThis PR hardens the gateway's shared-auth device pairing flow by requiring explicit approval before any fresh (unpaired) device can gain operator scopes, and adds regression tests that confirm the new behavior. The security-relevant behavioral change is delivered entirely through Key changes:
Notable concern: The Confidence Score: 4/5
|
|
Pushed a follow-up on the latest head that removes silent local pairing for fresh not-paired devices, adds explicit empty-scope regression coverage, and trims the now-obsolete silent-not-paired race tests. |
4d1384e to
6b021d8
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@greptile review |
6b021d8 to
17453e4
Compare
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open for maintainer handling: this protected draft changes a documented Gateway pairing/auth default, repeats a product-contract concern already called out on a closely related PR, and still lacks real behavior proof. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main allows direct-local Is this the best way to solve the issue? No as-is. The safer solution is to preserve the shipped local default and add a maintainer-approved strict opt-in mode if the threat model changes. Security review: Security review cleared: No supply-chain, secret-handling, or new code-execution concern was found; the auth-policy compatibility impact is tracked as merge risk. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against f59310a555d7. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
Summary
Changes
operator.adminand the explicit-approval follow-up pathValidation
pnpm test -- src/gateway/server.local-device-pairing-approval.test.ts src/gateway/server.silent-scope-upgrade-reconnect.poc.test.ts src/gateway/server/ws-connection/handshake-auth-helpers.test.tspnpm checkclaude -p "/review"and addressed the non-actionable test feedback during validationNotes