mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[SOLVED] Special characters in SMTP password set in "vaultwarden.env" file get ignored #1115
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 @TheHellSite on GitHub (Sep 23, 2021).
Subject of the issue
My SMTP password contains special characters (f.e.
~^",.%\,'}&@|/(#}) which seem to be an issue for Vaultwarden if it is reading the password from thevaultwarden.envfile.If I set it through the admin panel it works just fine but doesn't get saved to
vaultwarden.envfile.Deployment environment
Proxmox Arch Linux LXC
vaultwarden version: 1.22.2
Install method: OS package
Steps to reproduce
Use an SMTP password that contains
\as a character.I don't know if
"and'are also causing some trouble?Expected behaviour
\character should get recognized in the password field when set using the vaultwarden.env file.Actual behaviour
\character is ignored or replaced with no character at all.@BlackDex commented on GitHub (Sep 23, 2021):
A
\is an escape parameter. If you want to use that you need to type\\.Also, Quotes, no matter if they are double or single could be needed to be escaped also.
It could depend on which type of env parsing there is used, but if you want the password you provided above you need to enter it like this for at least
docker run,docker-composeor using the.envfile:"~^\",.%\\,'}&@|/(#}"""of the password is escaped via\"\of the password is escaped via\\@TheHellSite commented on GitHub (Sep 23, 2021):
Thanks, that explained and solved it!
I only had to escape
\using\\.