Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document GCP auth with environment variables #1815

Closed
VenelinMartinov opened this issue Mar 11, 2024 · 2 comments · Fixed by pulumi/registry#4400
Closed

Document GCP auth with environment variables #1815

VenelinMartinov opened this issue Mar 11, 2024 · 2 comments · Fixed by pulumi/registry#4400
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@VenelinMartinov
Copy link
Contributor

VenelinMartinov commented Mar 11, 2024

What happened?

https://www.pulumi.com/registry/packages/gcp/installation-configuration/ has nothing on using GOOGLE_OAUTH_ACCESS_TOKEN for authentication. This seems to have caused some confusion on how OIDC can be configured: #1693

We support authenticating via the GOOGLE_OAUTH_ACCESS_TOKEN env var, so we should have it documented.

Example

the following ESC config should work - this avoids saving the token in the state

values:
  gcp:
    login:
      fn::open::gcp-login:
        project: -
        oidc:
          workloadPoolId:-
          providerId: -
          serviceAccount: -
  environmentVariables:
    GOOGLE_PROJECT: PROJECT
    GOOGLE_OAUTH_ACCESS_TOKEN: TOKEN

Output of pulumi about

.

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@VenelinMartinov VenelinMartinov added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 11, 2024
@iwahbe iwahbe removed the needs-triage Needs attention from the triage team label Mar 13, 2024
@iwahbe
Copy link
Member

iwahbe commented Mar 13, 2024

This feels like an instance of pulumi/pulumi-terraform-bridge#1585.

@VenelinMartinov
Copy link
Contributor Author

I believe https://www.pulumi.com/registry/packages/gcp/installation-configuration/ is hand-authored, so it'd not be fixed by the bridge issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants