mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-28 09:46:40 +00:00
The generated ceph.conf does not need readable by the group, there is only one (system) user consuming the configurations file. This addresses the following gosec warning: [/go/src/github.com/ceph/ceph-csi/internal/util/cephconf.go:52] - G306 (CWE-): Expect WriteFile permissions to be 0600 or less (Confidence: HIGH, Severity: MEDIUM) > ioutil.WriteFile(CephConfigPath, cephConfig, 0640) Signed-off-by: Niels de Vos <ndevos@redhat.com>