Skip to content

docs: document automatic gcloud sign-in during GCP provider setup - #442

Open
hongyi-chen wants to merge 2 commits into
mainfrom
docs/gcp-gcloud-auto-signin
Open

docs: document automatic gcloud sign-in during GCP provider setup#442
hongyi-chen wants to merge 2 commits into
mainfrom
docs/gcp-gcloud-auto-signin

Conversation

@hongyi-chen

Copy link
Copy Markdown
Collaborator

Summary

When a cloud agent environment has GCP Workload Identity Federation configured, Oz now also signs gcloud in against the federated credential file, so gcloud reports an active account. The cloud providers page only described the ADC environment variables, which don't give gcloud an active account on their own.

Found by the missing_docs drift-watch audit (changelog item #14132) and verified against app/src/ai/agent_sdk/driver/cloud_provider/gcp.rs.

Changes

src/content/docs/platform/integrations/cloud-providers.mdx

  • Added an Automatic gcloud sign-in subsection to the GCP section explaining why the extra gcloud auth login step exists on top of the ADC environment variables.
  • Documented that the step is best-effort: a missing gcloud binary is skipped, and a failure or timeout is logged without failing the run, because the ADC variables still supply credentials to the Google SDKs.
  • Noted gcloud auth list as the way to confirm the account from inside a run.

Source verification

GcpCloudProvider::setup in app/src/ai/agent_sdk/driver/cloud_provider/gcp.rs runs gcloud --quiet auth login --force --cred-file <path> and handles every BestEffortOutcome variant (Success, NonZeroExit, NotFound, SpawnFailed, Timeout) by logging and returning Ok(()). The inline comment states the reason directly: the ADC env vars are enough for the SDKs, but gcloud needs an explicit auth login before it reports an active account.

Verification

  • npm run build passes.
  • Internal link check passes (0 broken links).

Deferred findings from this audit run

None specific to this page. Run-wide deferrals are listed in the companion audit-bookkeeping PR.

Conversation: https://staging.warp.dev/conversation/53c4f3f8-39bb-46c1-a5c0-66b467db0439
Run: https://oz.staging.warp.dev/runs/019fb91e-74a0-73f4-ac72-f2d88c32fab5

This PR was generated with Oz.

Co-Authored-By: Oz oz-agent@warp.dev

The GCP section only described the ADC environment variables, which do
not give gcloud an active account. Oz also runs a best-effort
gcloud auth login against the federated credential file.

Verified against app/src/ai/agent_sdk/driver/cloud_provider/gcp.rs.

Co-Authored-By: Oz <oz-agent@warp.dev>
@hongyi-chen
hongyi-chen requested a review from bnavetta July 31, 2026 17:34
@hongyi-chen hongyi-chen added the documentation Improvements or additions to documentation label Jul 31, 2026 — with Warp Agent Staging
@hongyi-chen
hongyi-chen requested a review from ianhodge July 31, 2026 17:34
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 31, 2026 11:49pm

Request Review

@oz-for-oss

oz-for-oss Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@hongyi-chen

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This docs-only PR adds a focused GCP subsection explaining Oz's best-effort automatic gcloud sign-in when Workload Identity Federation is configured. The added content matches the provided implementation context, fits the surrounding page structure, and does not introduce broken links or security concerns.

Concerns

  • No blocking concerns found.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants