fix: block Cloud SDK workspace env controls [AI]#103918
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 1:11 PM ET / 17:11 UTC. Summary PR surface: Source +3, Tests +34. Total +37 across 6 files. Reproducibility: yes. at source level: current main loads Cloud SDK controls beyond Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Reserve the complete Do we have a high-confidence way to reproduce the issue? Yes at source level: current main loads Cloud SDK controls beyond Is this the best way to solve the issue? Yes technically: namespace-level filtering matches Cloud SDK's extensible environment-control model, and shared AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1c5e35f59011. Label changesLabel justifications:
Evidence reviewedPR surface: Source +3, Tests +34. Total +37 across 6 files. View PR surface stats
What I checked:
Likely related people:
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. How this review workflow works
Review history (5 earlier review cycles)
|
|
ClawSweeper proof for current head Behavior proved: workspace Environment: local PR checkout at the exact head above, Node Command/artifact:
Evidence:
Compatibility/operator note: project-local Live gaps: no Gmail account OAuth, Pub/Sub topic creation, or live mailbox watch was exercised. The proof uses the direct real |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Pavan Kumar Gondhi <[email protected]>
What Problem This Solves
Fixes an issue where users operating in an untrusted workspace could have workspace
.enventries influence Google Cloud SDK launch controls during Gmail setup.AI-assisted PR.
Why This Change Was Made
Workspace
.envloading now blocks theCLOUDSDK_namespace so Google Cloud SDK runtime controls cannot be imported from project-local env files. Gmail setup also clears inherited Cloud SDK Python argument controls when spawninggcloud, and the shared process env merge now honors explicitundefinedoverrides as removals.User Impact
Users can run Gmail setup from a workspace without allowing that workspace's
.envfile to steer the Python launcher or its argument handling forgcloud. Normal user-defined non-control workspace env keys still load, and trusted global env files remain available for user-level configuration.Evidence
node scripts/run-vitest.mjs src/infra/dotenv.test.ts src/hooks/gmail-setup-utils.test.ts src/process/exec.test.ts --reporter=verbosegit diff --check