mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 09:22:30 -05:00
[GH-ISSUE #7299] Admin Token NOT Working #35622
Reference in New Issue
Block a user
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 @markwwd on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/7299
Prerequisites
Vaultwarden Support String
I’m migrating an existing self-built Vaultwarden installation to Docker on Windows.
A plain text ADMIN_TOKEN works correctly and allows access to /admin.
However, when I use a hashed Argon2 token generated with: /vaultwarden hash
the admin login always fails with: [vaultwarden::api::admin][ERROR] Invalid admin token.
What I have verified:
Example compose configuration:
environment:
ADMIN_TOKEN: $
argon2idv=19m=19456,t=2,p=1$...Inside the container the variable resolves correctly to:
$argon2id$v=19$m=19456,t=2,p=1$...
Is there anything specific required when using Argon2-hashed admin tokens in Docker Compose on Windows, or any known issues with this setup?
I’m coming from “built from source/w rust” to Docker container. I just copied the token from .env to the compose file.
Vaultwarden Build Version
Latest
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
caddy
Host/Server Operating System
Windows
Operating System Version
Windows 11
Clients
Desktop
Client Version
No response
Steps To Reproduce
Already described.
Expected Result
Already described.
Actual Result
Already described.
Logs
Screenshots or Videos
No response
Additional Context
No response