I'm just trying out the new Vault UI. I'd like to be able to log in with a username and password. How do I create a new user from the command line so I can log in with a username and password?
Vault allows dynamically generated users and passwords for databases or other tools like SSH. This is a feature that's enormously beneficial to contain the sprawl of users and passwords around your organisation and to keep track of who, when and what a user is doing.
Authentication in Vault is the process by which user or machine supplied information is verified against an internal or external system. Vault supports multiple auth methods including GitHub, LDAP, AppRole, and more. Each auth method has a specific use case.
Vault trusts the platform, the platform launches and provides a credential to the application, the application provides that credential to Vault, which can be verified against the platform, completing the loop.
Create a new user like so:
vault write auth/userpass/users/<username> policies=default password=<passwd>
You have to be authenticated as root (or another user with sufficient permissions) and have enabled the userpass
auth method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With