From: Guillaume Abrioux Date: Wed, 21 Oct 2020 12:26:57 +0000 (+0200) Subject: iscsi: fix ownership on iscsi-gateway.cfg X-Git-Tag: v5.0.3~45 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3eed44907b0befc3962432f14c048fdeeaf69adb;p=ceph-ansible.git iscsi: fix ownership on iscsi-gateway.cfg This file is currently deployed with '0644' ownership making this file readable by any user on the system. Since it contains sensitive information it should be readable by the owner only. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1890119 Signed-off-by: Guillaume Abrioux (cherry picked from commit a822f773002a010ebedddcc2c8cd8f5a03dc786a) --- diff --git a/roles/ceph-iscsi-gw/tasks/common.yml b/roles/ceph-iscsi-gw/tasks/common.yml index 1117f15c3..3c672aff4 100644 --- a/roles/ceph-iscsi-gw/tasks/common.yml +++ b/roles/ceph-iscsi-gw/tasks/common.yml @@ -44,6 +44,7 @@ dest: /etc/ceph/iscsi-gateway.cfg config_type: ini config_overrides: '{{ iscsi_conf_overrides }}' + mode: "0600" notify: restart ceph rbd-target-api-gw - name: set_fact container_exec_cmd