Bug 1458381

Summary: Use $log.log_hashes to filter out sensitive data in Ansible Playbook service.
Product: Red Hat CloudForms Management Engine Reporter: Lucy Fu <lufu>
Component: ProvisioningAssignee: Lucy Fu <lufu>
Status: CLOSED CURRENTRELEASE QA Contact: luke couzens <lcouzens>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.8.0CC: dmisharo, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ansible_embed
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1458434 (view as bug list) Environment:
Last Closed: 2018-03-06 14:33:31 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: 1458434    

Description Lucy Fu 2017-06-02 17:39:13 UTC
Description of problem:
Use $log.log_hashes to filter out sensitive data in Ansible Playbook service.
So sensitive data would not be logged in log files.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 luke couzens 2017-11-06 11:19:18 UTC
Verified in 5.9.0.5

5.8 stream
--------------
 
[----] I, [2017-11-06T05:36:26.977725 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1]) MIQ(ServiceAnsiblePlaybook#execute) Launching Ansible Tower job with options:
[----] I, [2017-11-06T05:36:26.978793 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1])   extra_vars: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
[----] I, [2017-11-06T05:36:26.978880 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1])     test: test123
[----] I, [2017-11-06T05:36:26.978945 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1])     manageiq: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
[----] I, [2017-11-06T05:36:26.979019 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1])       api_url: https://********
[----] I, [2017-11-06T05:36:26.979107 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1])       api_token: eb892559a34f74d1f842553d92334824
[----] I, [2017-11-06T05:36:26.979188 #4782:51c3f90]  INFO -- : Q-task_id([service_template_provision_task_1])       service: services/1
 
 
5.9 latest:
------------------
[----] I, [2017-11-06T05:39:14.009451 #2006:7996b8]  INFO -- : MIQ(ServiceAnsiblePlaybook#execute) Launching Ansible Tower job with options:
[----] I, [2017-11-06T05:39:14.010556 #2006:7996b8]  INFO -- :
---
extra_vars:
  manageiq:
    api_url: https://********
    api_token: da512e98418f367117fd91a5ddc76593
    service: services/5