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

Add userinfo-email scope to VM service account #476

Open
minhluantran017 opened this issue Oct 13, 2024 · 0 comments
Open

Add userinfo-email scope to VM service account #476

minhluantran017 opened this issue Oct 13, 2024 · 0 comments

Comments

@minhluantran017
Copy link

What feature do you want to see added?

I'm using GCE plugin to provision Jenkins agents and trying to configure RBAC for them against my GKE cluster following docs on https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control.

The document points out that it needs userinfo-email scope so that the RoleBinding (and/or ClusterRoleBinding) can use the service account email instead of a numeric string of service account ID for its definition)

This feature request is to add the userinfo-email scope to the scopes of VM service account when provisioning Jenkins agent.

The userinfo-email scope is a read-only scope top get primary Google Account email address so it should be safe to add to this plugin.

Scope URL: https://www.googleapis.com/auth/userinfo.email
GKE docs: https://cloud.google.com/kubernetes-engine/docs/how-to/role-based-access-control#forbidden_error_for_service_accounts_on_vm_instances

Upstream changes

No response

Are you interested in contributing this feature?

I'm happy to make this change.

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