Replies: 1 comment 2 replies
-
Have you used |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - I'm running the latest deb package on Debian 12 and have generated an argon2 admin token as per the instructions on the wiki. I then pasted the hash to /etc/vaultwarden/config.env as per:-
Token for the admin interface, preferably use a long random string
One option is to use 'openssl rand -base64 48'
If not set, the admin panel is disabled
ADMIN_TOKEN='$argon2id$v=19$m=19456,t=2,p=1$UUlqa1RONktWU2VyRWM2NmkwNVI4VWlZYm8weE5JWnA4aDZ2NlBZUzEvRT0$Pnwqjn/Q1gDOz9G0GXz8TyNCwZ/w2TA0VLS4C6Uz0Vo'
However after saving config.env and temmpting to login to the admin portal with the generated hash I receive "Error: Invalid admin token, please try again."
The logs show
[2024-04-08 10:39:05.873][request][INFO] POST /admin
[2024-04-08 10:39:06.054][vaultwarden::api::admin][ERROR] Invalid admin token. IP: someip
[2024-04-08 10:39:06.055][response][INFO] (post_admin_login) POST /admin/ => 401 Unauthorized
I presume the hash needs single quotes in config.env? - I've tried with or without.
I ran this to generate the hash with argon2
echo -n "somepass" | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions