mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
[security] Does the private key need 0644 #47
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?
Originally created by @LaurenceJJones on GitHub (Aug 11, 2025).
Originally assigned to: @oschwartz10612 on GitHub.
151d0e38e6/wg/wg.go (L173)151d0e38e6/wgnetstack/wgnetstack.go (L199)As the title states 0644 open read access to public/guest which a secret key should primarily be 0600 so only the user or 0640 for user/group has read access. I dont see why a external none defined user should have read access to the private key file unless newt drops permissions to a lower user.
@oschwartz10612 commented on GitHub (Aug 11, 2025):
Good point I think you are right we should make it 0600 as is customary! I dont see a reason not to right now. Docker might get funny but it should always be the same user inside of docker.
@LaurenceJJones commented on GitHub (Aug 11, 2025):
Note you may want to also check gerbil as I think it has the same
0644writes.Also thanks for quick response! ❤️