ceph-csi/internal/util
Niels de Vos 30dc83c3bb util: create ceph.conf with 0600 permissions
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>
2020-07-01 05:56:32 +00:00
..
cachepersister.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
cephcmds.go util: log error when closing temp fail fails in GetOMapValue() 2020-07-01 05:56:32 +00:00
cephconf.go util: create ceph.conf with 0600 permissions 2020-07-01 05:56:32 +00:00
conn_pool_test.go move rbdVolume connection details to utils.ClusterConnection 2020-05-04 13:21:03 +00:00
conn_pool.go move rbdVolume connection details to utils.ClusterConnection 2020-05-04 13:21:03 +00:00
connection.go rbd: add rbdVolume.open() to get access to an image 2020-05-14 18:20:15 +00:00
credentials.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
crypto.go rbd/go-ceph: add GetMetadata() and GetMetadata() functions 2020-05-04 13:21:03 +00:00
cryptsetup.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
csiconfig_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
csiconfig.go util: make util.ClusterInfo usable outside util package 2020-05-14 19:43:21 +00:00
errors.go util: add doc comments for exported functions in errors.go 2020-06-22 15:41:00 +00:00
httpserver.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
idlocker_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
idlocker.go cleanup: fix golint warnings in util, e2e 2020-05-20 13:18:41 +00:00
k8scmcache.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
log.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
nodecache.go cleanup: avoid comparing errors directly 2020-06-17 06:26:11 +00:00
pidlimit_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
pidlimit.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
stripsecrets.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
topology.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
util_test.go ci: add test for MountOptionsAdd() 2020-06-24 13:33:44 +00:00
util.go util: add MountOptionsAdd() to add mount options 2020-06-24 13:33:44 +00:00
validate.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
vault.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
volid_test.go cleanup: move pkg/ to internal/ 2020-04-23 11:00:59 +00:00
volid.go util: fix golint warnings in csiconfig, volid 2020-04-29 11:36:53 +00:00