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

Parameterized loginByJwt method #304

Open
ns-jlizarraga opened this issue Mar 28, 2023 · 2 comments
Open

Parameterized loginByJwt method #304

ns-jlizarraga opened this issue Mar 28, 2023 · 2 comments

Comments

@ns-jlizarraga
Copy link

What feature do you want to see added?

The loginByJwt method doesn't support a parameter to specify a different endpoint when sending the request to Vault after getting the JWT token, it always goes to a hardcoded endpoint:

"/v1/auth/" + provider + "/login")

https://github.com/BetterCloud/vault-java-driver/blob/900ffe9a47dced88484588b315803210e17b349a/src/main/java/com/bettercloud/vault/api/Auth.java#L1030-L1039

This means, that the plugin is expecting to have any Vault auth methods to be mounted or configured at the default location.

In our scenario, we use the GCP method, but the mount point is configured to auth/gcp/company_name/login, therefore when using the plugin we always get a 403 response from Vault, as the request goes to auth/gcp/login.

Upstream changes

No response

@gfdsa
Copy link

gfdsa commented Feb 21, 2024

some people forked the abandoned original and implemented this there
https://github.com/jopenlibs/vault-java-driver/pull/27/files

@jetersen
Copy link
Member

Would welcome a PR that uses https://github.com/jopenlibs/vault-java-driver at least is seems well maintain 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants