mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #3871] Vaultwarden + Traefik + Custom error pages middleware broke 2FA #1701
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1701
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @Uzurka on GitHub (Sep 9, 2023).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3871
Subject of the issue
I'm using Vaultwarden for a moment now, without any problem, using traefik as reverse proxy.
Recently, i've added to my traefik configuration a service & middleware for customise error-pages (404, 500, 501, and all other errors)
I've added this middleware to my Vaultwarden container, resulting 2FA code is not prompted anymore.
Instead, i get this error :
[2023-09-08 21:12:29.267][error][ERROR] 2FA token not provided
And on the web, a red rectangle with an unknown error
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, INVITATIONS_ALLOWED, SHOW_PASSWORD_HINT, ADMIN_TOKEN, INVITATION_ORG_NAME, IP_HEADER, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD
Install method: Docker container deployed with Ansible
Reverse proxy and version: Traefik v2.10.4
MySQL/MariaDB or PostgreSQL version: MariaDB latest
Other relevant details:
Steps to reproduce
Add a middleware to the container that replaces error-pages with custom ones
Expected behaviour
2FA code is prompted
Actual behaviour
2FA code isn't prompted