[GH-ISSUE #968] Dockerfiles run services as the root user #686

Closed
opened 2026-03-03 02:02:11 +03:00 by kerem · 5 comments
Owner

Originally created by @xhalo32 on GitHub (Apr 16, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/968

Subject of the issue

Shouldn't use the root user to run the services inside the containers.

https://medium.com/@mccode/processes-in-containers-should-not-run-as-root-2feae3f0df3b

Originally created by @xhalo32 on GitHub (Apr 16, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/968 <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unneccessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS adresses and especially passwords, if neccessary. --> ### Subject of the issue Shouldn't use the root user to run the services inside the containers. https://medium.com/@mccode/processes-in-containers-should-not-run-as-root-2feae3f0df3b
kerem closed this issue 2026-03-03 02:02:12 +03:00
Author
Owner

@jjlin commented on GitHub (Jun 11, 2020):

As noted in https://github.com/dani-garcia/bitwarden_rs/pull/1014#issuecomment-637965744, this probably isn't a good default for bitwarden_rs, but I've now added documentation on how to run as non-root:

https://github.com/dani-garcia/bitwarden_rs/wiki/Hardening-Guide#run-as-a-non-root-user

<!-- gh-comment-id:642459718 --> @jjlin commented on GitHub (Jun 11, 2020): As noted in https://github.com/dani-garcia/bitwarden_rs/pull/1014#issuecomment-637965744, this probably isn't a good default for bitwarden_rs, but I've now added documentation on how to run as non-root: https://github.com/dani-garcia/bitwarden_rs/wiki/Hardening-Guide#run-as-a-non-root-user
Author
Owner

@Stampede10343 commented on GitHub (Jun 11, 2020):

As noted in #1014 (comment), this probably isn't a good default for bitwarden_rs, but I've now added documentation on how to run as non-root:

https://github.com/dani-garcia/bitwarden_rs/wiki/Hardening-Guide#run-as-a-non-root-user

Should this remove the listing here, since its basically the same, and better suited in the Hardening Guide, IMO.

<!-- gh-comment-id:642835270 --> @Stampede10343 commented on GitHub (Jun 11, 2020): > As noted in [#1014 (comment)](https://github.com/dani-garcia/bitwarden_rs/pull/1014#issuecomment-637965744), this probably isn't a good default for bitwarden_rs, but I've now added documentation on how to run as non-root: > > https://github.com/dani-garcia/bitwarden_rs/wiki/Hardening-Guide#run-as-a-non-root-user Should this remove the [listing here](https://github.com/dani-garcia/bitwarden_rs/wiki/Running-the-server-with-non-root-user), since its basically the same, and better suited in the Hardening Guide, IMO.
Author
Owner

@jjlin commented on GitHub (Jun 11, 2020):

@Stampede10343 I didn't notice that page, but I think it has a few additional things that would be good to mention. I'll merge it into the hardening guide page tonight. Thanks for calling attention to that.

<!-- gh-comment-id:642839474 --> @jjlin commented on GitHub (Jun 11, 2020): @Stampede10343 I didn't notice that page, but I think it has a few additional things that would be good to mention. I'll merge it into the hardening guide page tonight. Thanks for calling attention to that.
Author
Owner

@jjlin commented on GitHub (Jun 11, 2020):

It's updated now.

<!-- gh-comment-id:642984579 --> @jjlin commented on GitHub (Jun 11, 2020): It's updated now.
Author
Owner

@BlackDex commented on GitHub (Oct 8, 2020):

Thx for the updated wiki, closing this issue.

<!-- gh-comment-id:705855846 --> @BlackDex commented on GitHub (Oct 8, 2020): Thx for the updated wiki, closing this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#686
No description provided.