Skip to content

runtime: limit statefile permissions to 0600 - #493

Open
npry wants to merge 1 commit into
mainfrom
npry/rt.statefile-perms
Open

npry wants to merge 1 commit into
mainfrom
npry/rt.statefile-perms

Conversation

@npry

@npry npry commented Nov 17, 2026

Copy link
Copy Markdown
Member

This is a unix-only fix which sets the permission bits to 0600 by default and emits a tracing::warn! if they're otherwise configured on an existing file.

Implements basic tests for config file loading as well, including one which verifies this permission behavior on unix platforms.

Closes #449

This is a unix-only fix which sets the permission bits to 0600 by default
and emits a `tracing::warn!` if they're otherwise configured on an
existing file.

Implements basic tests for config file loading as well, including one
which verifies this permission behavior on unix platforms.

Closes #449

Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: Ieb06fd8ca92ddbcf37379311c7449ba06a6a6964
@npry
npry force-pushed the npry/rt.statefile-perms branch from 6a6a596 to fefe658 Compare November 17, 2026 21:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

config: key file is created with the process umask (0644) instead of 0600

1 participant