mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Request guard Headers failed: "Invalid claim" and session expired directly after login
#1646
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 @Marcel-Lambacher on GitHub (Jul 19, 2023).
Subject of the issue
When trying to login into the web portal, I see for a split second the management page
and then get redirected to the login page due to HTTP 401.
I also see a notification banner that tells my that my session got expired.
The registration was successful but the login isn't working.
Deployment environment
Install method: Docker image hosted within K8S
Clients used: Web Vault
Reverse proxy and version: Traefik
MySQL/MariaDB or PostgreSQL version: N/A
Other relevant details: hosted under vaultwarden.domain.com
Steps to reproduce
Expected behaviour
Once I'm entering my credentials I should see my vault.
Actual behaviour
I don't see me vault and get redirected to the login page again.
Troubleshooting data
Container logs:
JWT token:
Ingress
@BlackDex commented on GitHub (Jul 19, 2023):
You are probably running Vaultwarden with more then one pod. If that is the case, that isn't fully supported.
I think the reason is that you have two (or more) pods running, and both pods now have different RSA keys.
This key is used to generate and validate the JWT.
So, to solve this, you need to create a configmap or something which stores those key files and makes sure they are the same on all the pods.
Also, attachments and send files could end up on different PV's when uploaded and could cause issues during downloading them.
So, you need to somehow create a shared storage for at least the attachments if you didn't do that already.