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

Support for custom K8s authentication path #46

Closed
dttung2905 opened this issue Mar 15, 2023 · 2 comments
Closed

Support for custom K8s authentication path #46

dttung2905 opened this issue Mar 15, 2023 · 2 comments

Comments

@dttung2905
Copy link
Contributor

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 @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 😄

@davidsloan
Copy link
Contributor

Hi @dttung2905 . We at Lenses are happy to be back working on our open source projects!

Thanks for the detailed write-up of the issue.

The reliance the unmaintained vault lib is indeed an issue and we are looking into ways of addressing this. Switching to the new fork is definitely an option we are evaluating, and as you say the least disruptive.

Please feel free to submit a PR to address your needs 🥇 . Let me know if you need any support. Thank you!

@dttung2905
Copy link
Contributor Author

Hi @davidsloan,

Thanks so much for the support !. Let me find some time submit the changes on the fork of the Vault library first https://github.com/jopenlibs/vault-java-driver first, before making another changes on this repo 🙏

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