-
Notifications
You must be signed in to change notification settings - Fork 95
feat(vault): added userpass auth method #798
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
Conversation
90ccdd0 to
1bc2f5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for HashiCorp Vault's userpass authentication method to the vals configuration tool. The implementation allows users to authenticate using username/password credentials instead of the existing token, approle, or kubernetes methods.
- Adds userpass as a new authentication method option
- Implements username/password credential handling via environment variables
- Supports configurable mount points for the userpass auth endpoint
46c1ca8 to
5482747
Compare
5482747 to
c7a5bc7
Compare
PrerequisitesStart server in Terminal 1: Enable KV engine and userpass in Terminal 2: TestsPassword from env: Password from file: |
c7a5bc7 to
e62935a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Signed-off-by: Philipp Reusch (pdrd) <philipp.reusch@stackit.cloud>
e62935a to
c3427da
Compare
We are using a custom implementation, that is HashiCorp Vault compatible, but requires the Userpass auth method.
This PR implements a new
VAULT_AUTH_METHODwith nameuserpassand allows to authenticate against the Vault instance by passing the user credentialsVAULT_USERNAMEand a password fromVAULT_PASSWORD_ENVorVAULT_PASSWORD_FILE. It additionally respects theVAULT_LOGIN_MOUNT_POINT.