-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Closed
Copy link
Labels
0.kind: bugSomething is brokenSomething is broken
Description
Describe the bug
The secrets in the generated config files are world-readable (though NOT from /nix/store).
Steps To Reproduce
Steps to reproduce the behavior:
- configure the netbird module and try to run it
systemctl cat netbird-management.service- Notice that the
ExecStartcontains"management" "--config" "/var/lib/netbird-mgmt/management.json" ls -l /var/lib/netbird-mgmt/management.jsonshows-rw-r--r--, i.e. it's world-readablecat /var/lib/netbird-mgmt/management.jsoncontains the secrets exposed: ClientSecret, DataStoreEncryptionKey, etc.
Expected behavior
It seems reasonable that secrets shouldn't be world-readable despite their location in the file system.
Metadata
- system: `"x86_64-linux"`
- host os: `Linux 6.12.8, NixOS, 24.11 (Vicuna), 24.11.20250104.8f1fa8d`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.11`
- nixpkgs: `/nix/store/bxgbwjm05kmrzvrfg59f3dzpxyvvhrx5-source`Notify maintainers
Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken