You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
secrets: setup-secrets runs as unsandboxed root, and the lockdown of unlisted files skips dotfiles #25
The setup-secrets unit (#L172) runs as root with no systemd hardening, although it only needs to chown and chmod inside the secrets directory.
The pass that locks down files not declared in nix-bitcoin.secrets (#L220-L227) enumerates them with printf '%s\n' *. That glob does not match dotfiles, so a stray dotfile in the secrets directory keeps whatever owner and mode it had. The list is also passed to chown/chmod unquoted and with no --, so a file name starting with - is read as an option and one containing glob characters is expanded again.
Activity
secrets: sandbox setup-secrets, lock down all undeclared entries
secrets: sandbox setup-secrets, lock down all undeclared entries
secrets: sandbox setup-secrets, lock down all undeclared entries
secrets: sandbox setup-secrets, lock down all undeclared entries
secrets: sandbox setup-secrets, lock down all undeclared entries
secrets: sandbox setup-secrets, lock down all undeclared entries
secrets: sandbox setup-secrets and lock down every unlisted entry (bi…
secrets: sandbox setup-secrets, lock down all undeclared entries