mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #3411] Allow noninteractive and silent usage (or stderr) for vaultwarden hash #1558
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1558
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dionysius on GitHub (Apr 3, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3411
Subject of the issue
vaultwarden hashcurrently ask interactively for the password and there is no option to be silent. In my packaging environment there is a way to interactively ask the admin for a password at the right time of the installation. And I would like use this input to generate the argon2 hash and automatically place it in the right place of the config file.Suggestion: I'd like to pass in the password via STDIN and get only the hash out via STDOUT. (Although prefixed with
ADMIN_TOKEN=is also fine, to make life easier for you)Deployment environment
@BlackDex commented on GitHub (Apr 3, 2023):
I'm not a big fan of piping passwords actually.
While it maybe would be fine for your use case, people tend to use the easy stuff and then passwords end up in the history.
Not sure if you can depend on the argon2 cli tool and use that? That does support what you want.
@dionysius commented on GitHub (Apr 3, 2023):
I totally understand you have different goals with the command, just asking. Using vaultwarden would've saved me declaring this dependency and maintaining the recommended settings, but it's not a big deal.