contabo / cntb

Contabo Command Line Interface
https://contabo.com
GNU General Public License v3.0
179 stars 24 forks source link

Config file permission 644 are too permissive #2

Closed silkentrance closed 2 years ago

silkentrance commented 2 years ago

For newly created file, these should be 600, see

https://github.com/contabo/cntb/blob/14f697c70e4f7c69b8851f69d5a95b691fd9e242/cmd/config.go#L58

For existing files the user should be warned that 600 is the recommended setting, if the current file permissions are different.

contabo commented 2 years ago

We did a patch in the last version of cntb.