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

Does not support executable sourced credential configurations #691

Open
apvd opened this issue Dec 28, 2023 · 0 comments
Open

Does not support executable sourced credential configurations #691

apvd opened this issue Dec 28, 2023 · 0 comments

Comments

@apvd
Copy link

apvd commented Dec 28, 2023

The Application Default Credential system allows for cred config json files which specify a few types of credential sources. This file, URL, and executable sources for external workload and workforce identity credentials. The go implementation of oauth2 does not currently support executable sources, so cred configs which are valid for gcloud auth application-default print-access-token will produce an error with go applications requesting tokens from the same source.

For example, using the docker helper docker-credential-gcr

docker-credential-gcr/helper: could not retrieve GCR's access token: oauth2/google: unable to generate access token: Post "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken": oauth2/google: unable to parse credential source

https://cloud.google.com/sdk/gcloud/reference/iam/workload-identity-pools/create-cred-config#--executable-command
https://cloud.google.com/iam/docs/workforce-obtaining-short-lived-credentials#oidc-non-int-exec

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

No branches or pull requests

1 participant