Repository navigation
fix(google): honor Cloud SDK ADC ownership and Vertex billing projects - #118745
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 1:09 PM ET / 17:09 UTC. ClawSweeper reviewWhat this changesThe branch makes Google Vertex honor a selected Cloud SDK ADC directory, prevents fallback to stale home-directory credentials, and sends the resolved quota project in Vertex requests. Merge readiness⛔ Blocked until real behavior proof is added - 6 items remain Keep this protected PR open. The Google-specific repair is focused, but the branch leaves the prior ownership concern unresolved by making every non-platform manifest placeholder an implicit fail-closed credential owner; it also lacks inspectable real after-fix Cloud SDK/Vertex proof. Priority: P2 Review scores
Verification
How this fits togetherThe Google provider plugin discovers local Application Default Credentials for Vertex authentication, while core reads provider-manifest evidence to report whether setup can use local credentials. The selected credentials produce bearer and billing-project headers that the Google transport merges into Vertex streaming calls. flowchart LR
A[Environment and plugin manifest] --> B[Credential evidence discovery]
A --> C[Vertex ADC resolver]
B --> D[Provider setup status]
C --> E[Access token and quota project]
E --> F[Vertex streaming request]
F --> G[Google Vertex response]
Decision needed
Why: The branch extends core interpretation of plugin metadata beyond the currently documented placeholder set and makes an ownership policy implicit; maintainers need to choose the enduring plugin contract. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +30, Tests +388. Total +418 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Define and document an explicit provider auth-evidence mechanism for authoritative credential directories, have Google Vertex opt into it, verify the behavior against the installed Google auth library, and attach redacted runtime proof before merge. Do we have a high-confidence way to reproduce the issue? No live current-main reproduction was established in this read-only review. The current source and the added fixtures define a source-reproducible Cloud SDK-versus-stale-home path for an implementation worker. Is this the best way to solve the issue? No. Matching Cloud SDK ownership is a plausible goal, but making every non-platform manifest placeholder implicitly authoritative is not the narrowest durable solution, and the direct dependency contract could not be inspected in this environment. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 94f431417b25. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…0803-google-vertex-adc-quota
|
Merged via squash.
|
* origin/main: (25 commits) test(qa): cover plugin authoring contracts (#118821) fix(parallels): keep provider keys out of POSIX job logs (#118840) improve: reduce redundant Code Mode test work (#118815) fix(models): report primary OpenRouter limits in scans (#110855) test: speed up setup inference fixtures (#118811) fix(auto-reply): enforce canonical reset authorization (#118580) docs(gateway): fix invalid heartbeat visibility examples (#118827) fix(plugins): unify HTTP route conflict handling (#118203) test(agents): use prepared auth fixtures (#118816) fix(lmstudio): resolve JIT embedding variants fix(lmstudio): preserve embedding preload and model identity fix(ai): reject binary Codex websocket frames (#111138) fix(deps): bump brace-expansion override to 5.0.9 for HIGH advisory 1130705 (#118804) feat(cli): add session archive and delete commands (#118791) fix(openai): commit eligible final realtime transcription audio safely (#118782) fix(reef): restrict management commands to owners [AI] (#118578) fix(google): honor Cloud SDK credential location and Vertex billing project (#118745) fix(bedrock): preserve private embedding endpoints and AWS routing policy (#118744) fix(voice): make signed callback replay reservations durable and retryable (#118754) fix(openrouter): isolate custom proxy credentials and transport security (#118773) ...
Summary
Dependency-backed root cause
The Google plugin's Vertex ADC owner and manifest discovery knew only GOOGLE_APPLICATION_CREDENTIALS, HOME, and APPDATA. The installed official google-auth-library 10.9.1, however, treats CLOUDSDK_CONFIG as an exclusive directory override. If its ADC file is missing, the library returns null; it never silently selects a stale HOME credential. Google also honors GOOGLE_CLOUD_QUOTA_PROJECT over the ADC quota_project_id and emits x-goog-user-project, while the plugin previously dropped that billing header.
The Google owner and manifest now follow the real SDK's explicit credential precedence. The existing generic provider-auth evidence seam resolves safe environment path placeholders generically; a selected nonplatform override is authoritative and fails closed, while normal HOME/APPDATA fallbacks retain their existing behavior. Both Vertex authorization paths emit the correct billing header.
Proof and independent review disposition
Maintainer disposition: authoritative Cloud SDK credential evidence
The PR author is the project owner/administrator, and the current source contains exactly one manifest producer of these authoritative credential-directory placeholders: Google. Previously documented generic placeholder support covered only HOME/APPDATA; no existing supported provider fallback changes. The additive generic fail-closed owner boundary is intentional: Cloud SDK ADC provenance and quota headers must agree between control-plane discovery and actual Vertex runtime authentication. The reported P2 is therefore accepted as owner-approved policy, not an unhandled compatibility regression.
Direct installed
google-auth-library10.9.1 source verifies exclusiveCLOUDSDK_CONFIGlookup andx-goog-user-projectprecedence. 183 real owner/dependency-path regressions and all exact-head CI/type/security gates pass. No live Google Cloud credentials or external provider request were available; that optional proof gap is explicitly disclosed.