mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Login with device doesn't work with multiple replicas #2244
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 @denysvitali on GitHub (Apr 23, 2025).
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)
Show Config & Details
Environment settings which are overridden: DOMAIN, ADMIN_TOKEN
(The rest of the config was omitted)
Vaultwarden Build Version
v1.33.2
Deployment method
Official Container Image
Custom deployment method
Vaultwarden deployed via a
Deploymentand connected to an PostgreSQL HA cluster (via CloudNativePG).Reverse Proxy
Traefik
Host/Server Operating System
Linux
Clients
Web Vault
Steps To Reproduce
Expected Result
User is able to log-in on the first try
Actual Result
User has to be "lucky" that the accepted authentication response ends up on the same instance as the client is listening on (websocket).
Additional Context
When deployed using Kubernetes, multiple replicas and using PostgreSQL - Login With Device is partially faulty.
It looks like the implementation of the
/anonymous-hubwebsocket server doesn't consider the fact that the accepted login message doesn't come from the same instance where the client is listening on.