RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1424892 - Password written in clear text in heat-api.log with DEBUG mode [openstack-rdo]
Summary: Password written in clear text in heat-api.log with DEBUG mode [openstack-rdo]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: RDO
Classification: Community
Component: openstack-heat
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: trunk
Assignee: Amit Ugol
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-20 02:52 UTC by Summer Long
Modified: 2017-08-14 13:51 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Release Note
Doc Text:
Clone Of: 1424889
Environment:
Last Closed: 2017-08-14 13:51:37 UTC
Embargoed:


Attachments (Terms of Use)

Description Summer Long 2017-02-20 02:52:20 UTC
+++ This bug was initially created as a clone of Bug #1424879 +++

Description of problem:
Reported by Hans Feldt, Ericsson

Password written in clear text in heat-api.log with DEBUG mode
Because this is debug, it is a hardening issue; no CVE is attached.

Upstream bug: https://bugs.launchpad.net/heat/+bug/1664792

Affected code:
heat/common/serializers.py:
 31 class JSONResponseSerializer(object):
 32
 33 def to_json(self, data):
 34 def sanitizer(obj):
 35 if isinstance(obj, datetime.datetime):
 36 return obj.isoformat()
 37 return six.text_type(obj)
 38
 39 response = jsonutils.dumps(data, default=sanitizer)
 40 LOG.debug("JSON response : %s" % response) # <- HERE

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

Steps to Reproduce:
1. Create overcloud
2. View /var/log/heat/heat-api.log
3. Grep for AdminPassword

Actual results:
Plain text is used for passwords

Expected results:
Plain text should never be used for passwords

Comment 1 Zane Bitter 2017-03-16 14:29:51 UTC
Fix merged upstream.


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