]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi: fix ownership on iscsi-gateway.cfg
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 21 Oct 2020 12:26:57 +0000 (14:26 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 21 Oct 2020 22:27:50 +0000 (18:27 -0400)
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 <gabrioux@redhat.com>
(cherry picked from commit a822f773002a010ebedddcc2c8cd8f5a03dc786a)

roles/ceph-iscsi-gw/tasks/common.yml

index 1117f15c3541c1a740f6f9f12e945c1e22502dbe..3c672aff45f884f9ff7fbf15c87eb39adda82094 100644 (file)
@@ -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