mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-22 16:14:20 -05:00
[PR #4896] [MERGED] Allow custom umask setting #7164
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?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/4896
Author: @BlackDex
Created: 8/26/2024
Status: ✅ Merged
Merged: 8/27/2024
Merged by: @dani-garcia
Base:
main← Head:allow-custom-umask📝 Commits (1)
6f7d7a6Allow custom umask setting📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
docker/start.sh(+4 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.