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

Set the cloud-platform access scope #281

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

veram96
Copy link

@veram96 veram96 commented Dec 23, 2023

I would like to suggest the use of CLOUD_PLATFORM scope instead of the DEVSTORAGE_FULL_CONTROL scope.
I am facing a problem with Jenkins deployed in GKE and using Workload identity as the authentication method for Jenkins agents where I cannot use this plugin because of the scope requirement.

Screenshot 2023-12-22 at 7 04 54 p m

The suggestion is also motivated by this lines:

"There are many access scopes available to choose from, but a best practice is to set the cloud-platform access scope, which is an OAuth scope for Google Cloud services, and then control the service account's access by granting it IAM roles."

Found in Google documentation

This fixes #231

Testing done

I test the change manually and it seems to fix the problem described.

Screenshot 2023-12-22 at 7 10 07 p m

@veram96 veram96 requested a review from a team as a code owner December 23, 2023 01:30
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.

Plugin does not recognize "cloud-platform" scope
1 participant