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

Question: Need documentation : How to use loginByGCP(), How to generate JWT token? #243

Open
vikasthange opened this issue May 19, 2021 · 1 comment

Comments

@vikasthange
Copy link

Not an issue, just question. I apologies if this is not right forum for question.

I have been struggling to find out how to actually use GCP Auth with Vault as below script example. I am unable to find out how to get JWT token. Can someone please point to documentation or link?

AuthResponse response = vault.auth().loginByGCP("role goes here", "jwt token goes here");

In my case GCP Service account is assigned to my jenkins pod which has IAM role and vault name space has already configured to use GCP Auth login. However I am not able to find any documentation on how to generate JWT token from GCP service account assigned to my jenkins pod (vm). I would highly appreciate help.

@darkedges
Copy link

Take a look at https://www.vaultproject.io/docs/auth/gcp#generating-jwts it will help you out

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

2 participants