Bug 1980744

Summary: [ceph-ansible] Sensitive data like ceph admin key leaked in ansible.log even with no_log=true
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Randy Rubins <rrubins>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2CC: aschoen, ceph-eng-bugs, dsavinea, gmeno, nthomas, tserlin, vereddy, ykaul
Target Milestone: ---   
Target Release: 4.2z3   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-ansible-4.0.62.2-1.el8cp, ceph-ansible-4.0.62.2-1.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-27 18:26:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Randy Rubins 2021-07-09 12:27:54 UTC
Description of problem:
We notice some sensitive information leak in ansible.log due to ceph-ansible (mainly ceph admin key).

Version-Release number of selected component (if applicable):
ceph-ansible-4.0.41

How reproducible:
include no_log=true in the ansible playbooks, yet ceph admin key is recorded in the ansible.log.

Actual results:
ansible.log contains sensitive data

Expected results:
ceph admin key should not be logged in ansible log

Additional info:
Looking for adding RP#6538 into ceph-ansible to address this. 
https://github.com/ceph/ceph-ansible/pull/6538

Comment 11 Ameena Suhani S H 2021-08-16 06:39:40 UTC
Verified using 

ceph-ansible-4.0.62.2-1.el8cp.noarch
ceph-base-14.2.11-184.el8cp.x86_64

Comment 13 errata-xmlrpc 2021-09-27 18:26:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 4.2 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3670