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 work with Workload Identity on GKE #88

Open
viyh opened this issue Jun 24, 2020 · 7 comments
Open

Does not work with Workload Identity on GKE #88

viyh opened this issue Jun 24, 2020 · 7 comments

Comments

@viyh
Copy link

viyh commented Jun 24, 2020

When using this with a Jenkins pod running on GKE using a service account with Workload Identtiy, the plugin no longer works using the automatic metadata credentials.

@sstncr
Copy link
Contributor

sstncr commented Jul 24, 2020

I have the same issue. My Jenkins master runs in GKE and the metadata credentials used to work when my cluster had node metadata set to EXPOSED. I updated my cluster, moved to GKE Metadata Server / Workload Identity, done all the GCP and K8S service account configuration and I can confirm that my pods (including Jenkins) can access the metadata server. I can run kubectl/gcloud commands in the pods and everything works as before except for this plugin.

I've looked though the source-code for metadata endpoints accessed and the ones I found I can confirm they are accessible from my pods. Don't really understand where the plugin decides to "hide" the metadata credentials option.

@sstncr
Copy link
Contributor

sstncr commented Jul 24, 2020

Here is a pull request that fixes the issue: #91

@viyh
Copy link
Author

viyh commented Aug 13, 2020

Any update on getting this merged and released?

@sstncr
Copy link
Contributor

sstncr commented Aug 17, 2020

I'm not sure what I can do to get this merged. I guess a maintainer needs to review and merge that pull request. I've manually installed the generated hpi file from the build and running it since then. It would be nice to have this released though.

@donmccasland
Copy link
Collaborator

donmccasland commented Aug 17, 2020 via email

@sstncr
Copy link
Contributor

sstncr commented Aug 17, 2020

Thanks Don!

@jglick
Copy link
Member

jglick commented Oct 24, 2022

So should this issue be closed?

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

4 participants