mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-22 16:14:20 -05:00
[PR #4896] Allow custom umask setting #16370
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?
Original Pull Request: https://github.com/dani-garcia/vaultwarden/pull/4896
State: closed
Merged: Yes
To provide a way to add more security regarding file/folder permissions this PR adds a way to allow setting a custom
UMASKvariable.This allows people to set a more secure default like only allowing the owner the the process/container to read/write files and folders.
Examples:
UMASK=022File: 644 | Folder: 755 (Default of the containers)This means Owner read/write and group/world read-only
UMASK=027File: 640 | Folder: 750This means Owner read/write, group read-only, world no access
UMASK=077File: 600 | Folder: 700This means Owner read/write and group/world no access
resolves #4571