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

feat: Use generic Google creds method to support Workload Identity Federation #99

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

Parent5446
Copy link
Contributor

This switches from using google.JWTConfigFromJSON, which only supports JWT service account credentials. Instead it uses google.CredentialsFromJSONWithParams, which supports a variety of different credentials, including service accounts, gcloud user credentials, and Workflow Identity Federation configurations.

This fixes #66 and allows using Workflow Identity Federation, which allows calling from AWS to GCP without needing to provide a service account private key. This helps avoiding the need for credential rotation.

…deration

This switches from using google.JWTConfigFromJSON, which only supports JWT
service	account	credentials. Instead it uses google.CredentialsFromJSONWithParams,
which supports a variety of different credentials, including service accounts,
gcloud user credentials, and Workflow Identity Federation configurations.

This fixes slashdevops#66 and allows using	Workflow Identity Federation, which allows
calling	from AWS to GCP	without	needing	to provide a service account private key.
This helps avoiding the	need for credential rotation.

Signed-off-by: Tyler Romeo <[email protected]>
@christiangda christiangda self-assigned this Jan 13, 2023
@christiangda christiangda added this to the v0.0.17 milestone Jan 13, 2023
@christiangda christiangda added enhancement New feature or request feature New feature or request labels Jan 13, 2023
@christiangda christiangda merged commit c2b90e3 into slashdevops:main Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Possible support for Workload Identity Federation in GCP
2 participants