Skip to content

Support ADC discovery for GCP OIDC auth#394

Open
tonywok wants to merge 2 commits into
mainfrom
ts/fix-googleapplicationcredentials
Open

Support ADC discovery for GCP OIDC auth#394
tonywok wants to merge 2 commits into
mainfrom
ts/fix-googleapplicationcredentials

Conversation

@tonywok
Copy link
Copy Markdown
Member

@tonywok tonywok commented Jun 1, 2026

Summary

  • Add a regression test for google-cloud/auth-oidc that exercises Application Default Credentials from the task command process.
  • Verify ADC is available through Google's well-known credentials file at $HOME/.config/gcloud/application_default_credentials.json.
  • Write the generated external account credentials JSON to that well-known ADC file during the before hook so Terraform/Google SDK clients can discover credentials without relying on same-task env propagation.
  • Remove the ADC file in the after hook while preserving the existing GOOGLE_APPLICATION_CREDENTIALS output for dependent tasks.

Testing

  • Observed the new ADC regression test fail before the implementation change.
  • Validated YAML locally.
  • Validated the generated before hook with bash -n.

@tonywok tonywok force-pushed the ts/fix-googleapplicationcredentials branch 2 times, most recently from a57f268 to f8fb81d Compare June 1, 2026 21:29
@tonywok tonywok force-pushed the ts/fix-googleapplicationcredentials branch 2 times, most recently from 205df59 to 87230f8 Compare June 1, 2026 21:52
@tonywok tonywok force-pushed the ts/fix-googleapplicationcredentials branch from 87230f8 to 03a942c Compare June 1, 2026 21:57
@tonywok tonywok marked this pull request as ready for review June 1, 2026 22:05
@tonywok tonywok changed the title Add GCP ADC regression test for auth-oidc Support ADC discovery for GCP OIDC auth Jun 1, 2026
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.

2 participants