Bug 1612881 - [OSP10] Heat in DEBUG logs private keys when a template creates a keypair
Summary: [OSP10] Heat in DEBUG logs private keys when a template creates a keypair
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-oslo-utils
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: async
: 10.0 (Newton)
Assignee: Hervé Beraud
QA Contact: pkomarov
URL:
Whiteboard: Triaged
Depends On: 1612890
Blocks: 1578346
TreeView+ depends on / blocked
 
Reported: 2018-08-06 13:11 UTC by Damien Ciabrini
Modified: 2022-08-16 08:37 UTC (History)
27 users (show)

Fixed In Version: python-oslo-utils-3.16.0-2.el7ost
Doc Type: Bug Fix
Doc Text:
With this update, oslo.utils now hides private keys in logs. Prior to this update, if Nova or Heat was configured to log at the DEBUG log level, private keys were logged as clear text when a keypair was created.
Clone Of: 1578346
Environment:
Last Closed: 2019-01-16 17:09:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1770683 0 None None None 2018-08-06 13:11:37 UTC
OpenStack gerrit 567887 0 None MERGED Add private_key to the list of sanitized keys 2020-09-21 10:39:52 UTC
Red Hat Issue Tracker OSP-5120 0 None None None 2022-08-16 08:37:14 UTC
Red Hat Product Errata RHBA-2019:0075 0 None None None 2019-01-16 17:09:28 UTC

Comment 17 pkomarov 2019-01-07 11:55:43 UTC
[stack@undercloud-0 ~]$ rhos-release -L
Installed repositories (rhel-7.6):
  10
  ceph-2
  ceph-osd-2
  rhel-7.6


[stack@undercloud-0 ~]$ python -c 'from oslo_utils import strutils; print(strutils.mask_password({"keypair": {"private_key": "secret"}}))'
{'keypair': {'private_key': '***'}}


[stack@undercloud-0 ~]$ rpm -qa|grep python-oslo-utils
python-oslo-utils-3.16.0-2.el7ost.noarch
python-oslo-utils-lang-3.16.0-2.el7ost.noarch
[stack@undercloud-0 ~]$ ansible overcloud -b -mshell -a'rpm -qa|grep python-oslo-utils'
 [WARNING]: Found both group and host with same name: undercloud

 [WARNING]: Consider using yum, dnf or zypper module rather than running rpm

compute-1 | SUCCESS | rc=0 >>
python-oslo-utils-lang-3.16.0-2.el7ost.noarch
python-oslo-utils-3.16.0-2.el7ost.noarch

compute-0 | SUCCESS | rc=0 >>
python-oslo-utils-lang-3.16.0-2.el7ost.noarch
python-oslo-utils-3.16.0-2.el7ost.noarch

controller-1 | SUCCESS | rc=0 >>
python-oslo-utils-lang-3.16.0-2.el7ost.noarch
python-oslo-utils-3.16.0-2.el7ost.noarch

controller-0 | SUCCESS | rc=0 >>
python-oslo-utils-lang-3.16.0-2.el7ost.noarch
python-oslo-utils-3.16.0-2.el7ost.noarch

controller-2 | SUCCESS | rc=0 >>
python-oslo-utils-lang-3.16.0-2.el7ost.noarch
python-oslo-utils-3.16.0-2.el7ost.noarch

Comment 19 errata-xmlrpc 2019-01-16 17:09:07 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, 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-2019:0075


Note You need to log in before you can comment on or make changes to this bug.