mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #1988] [SOLVED] Special characters in SMTP password set in "vaultwarden.env" file get ignored #1117
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#1117
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 @TheHellSite on GitHub (Sep 23, 2021).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1988
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\\.