Hi team,
It's really really fantastic to see this project being active again.
Goal
We would like to support custom Authentication path for Vault K8s authentication, rather than the default one v1/auth/kubernetes/login as specified in official doc
Problem
public AuthResponse loginByJwt(final String provider, final String role, final String jwt)
throws VaultException {
return retry(attempt -> {
// HTTP request to Vault
final String requestJson = Json.object().add("role", role).add("jwt", jwt)
.toString();
final RestResponse restResponse = new Rest()
.url(config.getAddress() + "/v1/auth/" + provider + "/login")
- However the repo
vault-java-driver has not been maintaiend in a few years with the reply from the original author (link)
My proposed solution
Please let me know what you think David Sloan (@davidsloan). Sorry for directly tagging you as your recent activity in this repo is the only reason that motivate me to write this lengthy issue 😄
Hi team,
It's really really fantastic to see this project being active again.
Goal
We would like to support custom Authentication path for Vault K8s authentication, rather than the default one
v1/auth/kubernetes/loginas specified in official docProblem
The current way is relying on the default value when calling
loginByKubernetes()methodsecret-provider/secret-provider/src/main/scala/io/lenses/connect/secrets/providers/VaultHelper.scala
Lines 81 to 87 in 7523823
where the path is hardcoded to (source)
vault-java-driverhas not been maintaiend in a few years with the reply from the original author (link)My proposed solution
vault-java-driver, the author has mentioned a few approaches in his post. I think the least disruptive would be switching to a community fork https://github.com/jopenlibs/vault-java-driver, which was very actively developed. I could submit another PR to add that feature on their side as well.Please let me know what you think David Sloan (@davidsloan). Sorry for directly tagging you as your recent activity in this repo is the only reason that motivate me to write this lengthy issue 😄