mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
Caddy proxy cannot login to vault when caddy heredoc respond is used #289
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 @Korel on GitHub.
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)
Show Config & Details
Config:
Vaultwarden Build Version
v1.32.7
Deployment method
Official Container Image
Custom deployment method
I deployed it using docker-compose. Here is a reproducing example (tried to keep it minimal):
compose.yaml
Caddyfile
Reverse Proxy
caddy 2.8.4
Host/Server Operating System
Linux
Operating System Version
Ubuntu 24.04
Clients
Web Vault, Browser Extension
Client Version
Firefox Version 133.0.3
Steps To Reproduce
Use the example deployment.
Create an account in vaultwarden
Try to login
Expected Result
Should be able to login succesfully
Actual Result
Cannot login, response says username or password is wrong.
If you remove the heredoc respond in Caddyfile, then reverse proxy can login this time. So below Caddyfile (just the vaultwarden proxy part) works:
Logs
No response
Screenshots or Videos
No response
Additional Context
Works on Android client for some reason...
I think it's a weird problem and I don't know if it is a caddy or vaultwarden issue. I tried to narrow the problem down from a longer Caddyfile and saw the problem happening after I readded the respond part.