]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Sensitive key data now hidden in output log v4.0.61
authorNeelaksh Singh <neelaksh48@gmail.com>
Thu, 20 May 2021 06:04:02 +0000 (02:04 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 12 Jul 2021 07:43:12 +0000 (09:43 +0200)
Fixes: #6529
Signed-off-by: Neelaksh Singh <neelaksh48@gmail.com>
(cherry picked from commit d18a9860cde2981bcd71198f152924cc6cf05932)

13 files changed:
roles/ceph-client/tasks/create_users_keys.yml
roles/ceph-client/tasks/pre_requisite.yml
roles/ceph-crash/tasks/main.yml
roles/ceph-iscsi-gw/tasks/common.yml
roles/ceph-mds/tasks/common.yml
roles/ceph-mgr/tasks/common.yml
roles/ceph-nfs/tasks/main.yml
roles/ceph-nfs/tasks/pre_requisite_container.yml
roles/ceph-nfs/tasks/pre_requisite_non_container.yml
roles/ceph-osd/tasks/common.yml
roles/ceph-osd/tasks/openstack_config.yml
roles/ceph-rbd-mirror/tasks/common.yml
roles/ceph-rgw/tasks/common.yml

index 7af9abe549e06dc12aa78d28151858868c7862bd..0c99fbb50b933ad5c3f77f3f0f46b4a67c3fd499 100644 (file)
@@ -52,6 +52,7 @@
     - cephx | bool
     - keys | length > 0
     - inventory_hostname == groups.get('_filtered_clients') | first
+  no_log: true
 
 - name: slurp client cephx key(s)
   slurp:
@@ -63,6 +64,7 @@
     - cephx | bool
     - keys | length > 0
     - inventory_hostname == groups.get('_filtered_clients') | first
+  no_log: true
 
 - name: pool related tasks
   when:
     group: "{{ ceph_uid }}"
   with_items: "{{ hostvars[groups['_filtered_clients'][0]]['slurp_client_keys']['results'] }}"
   when: not item.get('skipped', False)
+  no_log: true
+
index 69735237735047975c6b19a62b556d1a688ec8e0..1f144f7766ebeb68adf77f48fb2df281729d56f7 100644 (file)
@@ -22,4 +22,5 @@
       with_items: "{{ _client_keys.results }}"
       when:
         - item.item.copy_key | bool
+      no_log: true
   when: cephx | bool
index 97f126c71873b8ac62ae47a89a708c22b35f364f..89536f4d575f285b8d86546741ac89d8a8be2203 100644 (file)
@@ -50,6 +50,7 @@
         owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
         group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
         mode: "{{ ceph_keyring_permissions }}"
+      no_log: true
 
 - name: start ceph-crash daemon
   when: containerized_deployment | bool
index 292903e35315dcd01382e2d3a8b38fb572d7ee62..c5f94ed02c5fdf745bd131a8773a982d3815ad93 100644 (file)
@@ -21,6 +21,7 @@
   when:
     - cephx | bool
     - item.item.copy_key | bool
+  no_log: true
 
 - name: add mgr ip address to trusted list with dashboard - ipv4
   set_fact:
index c9df2017dd6caa8eac65b9ba7fc38d2c8f96953c..7d5f9c2811c20e9f8f9ee9ed322607b6b917ead0 100644 (file)
@@ -33,3 +33,5 @@
   when:
     - cephx | bool
     - item.item.copy_key | bool
+  no_log: true
+
index 9d2d82ec47d1032c5fbc1d091db011683264cc8e..0c8ae8a04e42249099b07f60dcd5d27daf4a96e1 100644 (file)
@@ -74,6 +74,7 @@
         - cephx | bool
         - item is not skipped
         - item.item.copy_key | bool
+      no_log: true
 
 - name: set mgr key permissions
   file:
index b788826e434fcf3cde5f0372ef453c2b17bab6b3..186fb0f529684d3249a2434b39317f8217e515d8 100644 (file)
@@ -75,6 +75,7 @@
       when:
         - not item.0.get('skipped', False)
         - item.0.item.name == 'client.' + ceph_nfs_ceph_user or item.0.item.name == rgw_client_name
+      no_log: true
 
 - name: include start_nfs.yml
   import_tasks: start_nfs.yml
index 54010dfb776bf541b67162fc60da1aabeca453fc..24d3121f90c3fd86a1f9d856ee67b8502eee9cd4 100644 (file)
@@ -32,6 +32,7 @@
       when:
         - cephx | bool
         - item.item.copy_key | bool
+      no_log: true
   when: groups.get(mon_group_name, []) | length > 0
 
 - name: dbus related tasks
index 0bf796a0570c9bd7164f8dfadf1ea15c6d816fa6..4bf1b59be8b89b14468d8cb42bf7a41993731b45 100644 (file)
@@ -69,6 +69,7 @@
       when:
         - cephx | bool
         - item.item.copy_key | bool
+      no_log: true
 
     - name: nfs object gateway related tasks
       when: nfs_obj_gw | bool
index 989830952f0bdd92043353c4e919c87994b7bcf5..40f01b6c23e30f2a5cd157406d002708ac87d6e6 100644 (file)
@@ -35,3 +35,5 @@
     - cephx | bool
     - item is not skipped
     - item.item.copy_key | bool
+  no_log: true
+
index 2adf3ed90aa9d9f105990d470ae27b434f1a081c..1b8c8d2be6f3f28ccf55ac7e9d42a66882fb4b13 100644 (file)
         - "{{ _osp_keys.results }}"
         - "{{ groups[mon_group_name] }}"
       delegate_to: "{{ item.1 }}"
+      no_log: true
   when:
     - cephx | bool
     - openstack_config | bool
index 5fee414d548a7960a0678299624569e0d3ebbcab..4de1bc7d1957fa3f898ebc21ac90b76dd7c43e21 100644 (file)
@@ -22,6 +22,7 @@
   when:
     - cephx | bool
     - item.item.copy_key | bool
+  no_log: true
 
 - name: create rbd-mirror keyring
   command: >
index 50e4a6f275ec9e30a6d744f3b7c52b7d6edecc87..e325ede5b999e7f2ca56c67b554d2fe66c91c7b5 100644 (file)
@@ -32,3 +32,4 @@
     - cephx | bool
     - item is not skipped
     - item.item.copy_key | bool
+  no_log: true