Originally created by @Uzurka on GitHub (Sep 9, 2023).
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Uzurka on GitHub (Sep 9, 2023).
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