Skip to content

How to generate a secure Argon2 PHC string to access the admin page? #290

@xplosionmind

Description

@xplosionmind

Immediately after installing this app (thank you for packaging it, by the way 🌻), the YunoHost installer provides a token to access Vaultwarden’s /admin page.

Once accessed, the following warning appears:

Banner reciting “You are using a plain text ADMIN_TOKEN which is insecure. Please generate a secure Argon2 PHC string by using vaultwarden hash or argon2. See: Enabling admin page - Secure the ADMIN_TOKEN (https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page#secure-the-admin_token)”

I click on the banner’s link, and I try to perform the following:

tommi@nebuchadnezzar:~$ sudo yunohost app shell vaultwarden
vaultwarden@nebuchadnezzar:~/live$ vaultwarden hash
bash: vaultwarden: command not found
vaultwarden@nebuchadnezzar:~/live$ echo -n "MySecretPassword" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4
bash: argon2: command not found
vaultwarden@nebuchadnezzar:~/live$ exit

Nevertheless, it doesn’t seem to be working… Any advice on how to generate a secure Argon2 PHC string?

Thank you! 💕

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions