-
Notifications
You must be signed in to change notification settings - Fork 161
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
Changing the default path of auth login like kubernetes #143
Comments
having a similar issue here @EZEDSEA. Did you ever find a solution? |
The solution we used was basically not use this library for auth login. We made a rest call instead to the endpoint we wanted. And then used this lib after auth. |
I might have run into this also, not sure yet (still troubleshooting). The way I interpret the documentation, it seems to indicate that this should be supported though? Edit: Got it to work by using that feature. |
This can be controlled by the param mount_point as in the example here: https://github.com/kr1sp1n/node-vault/blob/70097269d35a58bb560b5290190093def96c87b1/example/auth_kubernetes.js#L17 The other issue I have is that I would like to add a namespace to the URL as well - like here: |
ok it looks like support for namespaces have been added already: #137 |
|
Hey folks :) |
hi! where I can apply the configuration so that my Vault agent authenticates in an API request, for example at: http://vault.vault.svc:8200/v1/auth/kubernetes/myk8s/login instead of: http:// vault.vault.svc:8200/v1/auth/kubernetes/login |
As you did ? vault.kubernetesLogin |
kubernetes path can be provided in vault when creating the auth when running a multicluster setup. defaults to kubernetes.
since its quite old cannot says you can use it now but to any one new you can use the fix i did. You can download the repo in your local and run npm pack use the tarball created in your projects with entry in package.json using the tarball for node vault "node-vault": "file:<generated-in-above.tgz>" |
@pankaj-jain11 heya! |
@pjlucy can I close this issue? |
Thanks for the merge :) |
This can be closed |
I'm wondering if there's a way to change the default path of the kubernetes login.
In the documentation, the CLI allows you to do it:
https://www.vaultproject.io/docs/auth/kubernetes.html
Say for example I wanted to goto:
auth/kubernetes-rancher/login
But I noticed in the code for this library, it's based on "mount_point" of some sort. But it's not clear to me how to set this beforehand.
Is this feature missing or am I just not understanding it correctly?
The text was updated successfully, but these errors were encountered: