Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1511757

Summary: [OSP12] callback_plugins/validation_output.py doesn't sanitize input
Product: Red Hat OpenStack Reporter: Summer Long <slong>
Component: openstack-tripleo-validationsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WONTFIX QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 11.0 (Ocata)CC: beth.white, jjoyce, jschluet, mburns, sclewis, slinaber, tvignaud
Target Milestone: betaKeywords: Security, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-9.1.1-0.20180706135914.d21e7fa.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1511758 1511759 (view as bug list) Environment:
Last Closed: 2019-01-18 17:03:00 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:
Bug Depends On:    
Bug Blocks: 1511758, 1511759    

Description Summer Long 2017-11-10 03:25:52 UTC
Description of problem:
Callback plugins should use the CallbackBase._dump_results() method for no_log to take effect (and not just use raw results).  

However, there are two lines in: 
/usr/share/openstack-tripleo-validations/validations/callback_plugins/validation_output.py
which use raw results, and which could be an issue if those results are expected to hold secrets.

def v2_runner_on_ok
        results = result._result  # A dict of the module name etc.
def v2_runner_on_failed
        result_dict = result._result  # A dict of the module name etc.

Unless results in these two lines are expected to hold secrets, this should just be a hardening bug.

Version-Release number of selected component (if applicable):
openstack-tripleo-validations-5.5.0-2.el7ost

Expected results:
Should do something like: self._dump_results(result._result)