mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-18 09:52:56 -05:00
Bitwarden rs isn't finding web-vault when running as non-root #4398
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 @hoshsadiq on GitHub (Jul 25, 2020).
Hello, I'm trying to run bitwarden_rs as a non-root user docker, so I've extended the Dockerfile to add the necessary new user, fix the ownership of all relevant directories, then finally start bitwarden_rs. After a lot of trial and error, I am currently stuck where bitwarden_rs complains about not finding the web-vault. It works fine when running as root, but not as the newly created user.
I've even tried setting using
export WEB_VAULT_FOLDER=/web-vault/but to no avail. What am I doing wrong?The log entries:
Note: I've tried increasing logging, but this is all that's being returned.
The dockerfile I'm using:
@BlackDex commented on GitHub (Aug 16, 2020):
Hello @hoshsadiq i would suggest to checkout: https://github.com/dani-garcia/bitwarden_rs/wiki/Hardening-Guide#run-as-a-non-root-user
@BlackDex commented on GitHub (Nov 18, 2020):
Closing this ticket because of inactivity.
Feel free to re-open if the issue isn't resolved using the
testing/masterversion or the mentioned option in the comments above.