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

gcp: Modify GCP provider to fallback to ADC if gcp_service_account_key is not set [#531] #532

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

mark-adams
Copy link
Contributor

@mark-adams mark-adams commented Jun 21, 2024

This change updates the authentication logic in the GCP provider to fallback and use application default credentials when authenticating with GCP instead of requiring that gcp_service_account_key be set in the provider configuration. Using ADC by default is the default behavior for the Google Cloud SDK and most applications that call GCP APIs.

Using ADC also allows cloudlist to authenticate with GCP using temporary credentials when running on workloads in GCP instead of using static credentials (something Google recommends against).

…ey` is not set [projectdiscovery#531]

This change updates the authentication logic in the GCP provider to fallback and use [application default credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc) when authenticating with GCP instead of requiring that `gcp_service_account_key` be set in the provider configuration. Using ADC by default is the default behavior for the Google Cloud SDK and most applications that call GCP APIs.
@ehsandeep ehsandeep changed the base branch from main to dev June 21, 2024 23:12
@ehsandeep ehsandeep merged commit ccc9006 into projectdiscovery:dev Jun 25, 2024
7 checks passed
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.

[feature] Allow the GCP provider to use application default credentials (ADC)
4 participants