Skip to content

docs(onboarding): document ADC for Vertex AI, warn against placeholder creds#1705

Open
niti-go wants to merge 1 commit into
promptdriven:mainfrom
niti-go:niti/docs-onboarding-vertex-adc
Open

docs(onboarding): document ADC for Vertex AI, warn against placeholder creds#1705
niti-go wants to merge 1 commit into
promptdriven:mainfrom
niti-go:niti/docs-onboarding-vertex-adc

Conversation

@niti-go

@niti-go niti-go commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

The Vertex AI section of the onboarding guide only documented the service-account key-file path and showed a placeholder VERTEX_CREDENTIALS=/path/to/service-account.json. Two problems:

  1. No mention of ADC. PDD authenticates to Vertex via Application Default Credentials when VERTEX_CREDENTIALS / GOOGLE_APPLICATION_CREDENTIALS is unset and a project is configured (pdd/llm_invoke.py). Anyone with gcloud can use Vertex without creating a key file — the guide never said so.
  2. The placeholder can break setup. A non-empty VERTEX_CREDENTIALS (even the example placeholder) is treated as a real credential by resolve_api_key_from_env and disables the ADC fallback, so Vertex auth fails on a missing file. Following the doc literally could break Vertex.

Changes (docs-only)

  • Lead with ADC as the simplest path: gcloud auth application-default login, give the account the Vertex AI User role, set project/location, and leave VERTEX_CREDENTIALS unset.
  • Keep the service-account key-file method as a clearly-labeled fallback.
  • Add a warning not to set VERTEX_CREDENTIALS to a placeholder path.

Why it matters

New users can set up Vertex with a login they likely already have, instead of being told to create and download a service-account key — and they avoid the placeholder trap that silently breaks auth.

Verification

Confirmed PDD reaches Vertex AI via ADC alone (no key file) at both global and us-central1 using vertex_ai/gemini-2.5-flash.


Opened as a draft for review.

…r creds

The Vertex AI section only described the service-account key-file path and
used a placeholder VERTEX_CREDENTIALS=/path/to/service-account.json. A
non-empty placeholder is treated as a real credential and disables PDD's
ADC fallback, breaking Vertex auth. Add ADC as the simplest path, keep the
key-file method as a fallback, and warn against placeholder values.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@niti-go niti-go marked this pull request as ready for review June 23, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant