Bug 1070849

Summary: [Setup] on reinstall password appears in clear text in the log.
Product: Red Hat Enterprise Virtualization Manager Reporter: Yaniv Lavi <ylavi>
Component: ovirt-engine-dwhAssignee: Yedidyah Bar David <didi>
Status: CLOSED DUPLICATE QA Contact: Barak Dagan <bdagan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, alonbl, gklein, iheim, pstehlik, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-04 16:54:14 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:
Attachments:
Description Flags
Logs none

Description Yaniv Lavi 2014-02-27 15:23:31 UTC
Description of problem:
After local engine-cleanup hitory db is cleaned, but not used in reinstall.
The conf file containing the db credentials is removed in the cleanup.
When the new user is created, password appears in clear text.

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

How reproducible:
always

Steps to Reproduce:
1. run otopi setup with dwh plugin
2. run cleanup
3. reinstall.

Actual results:
new user is created, password appears in clear text.

Expected results:
if new user is created, password should not appear in clear text.

Additional info:
2014-02-27 13:55:00 DEBUG otopi.ovirt_engine_setup.database database.execute:132 Database: 'template1', Statement: '
                    create role ovirt_engine_history_20140227135500
                    with
                        login
                        encrypted password %(password)s
                ', args: {'password': 'n8rwkK7J'}

Comment 1 Yaniv Lavi 2014-02-27 15:25:58 UTC
Created attachment 868583 [details]
Logs

Comment 2 Alon Bar-Lev 2014-03-04 16:54:14 UTC

*** This bug has been marked as a duplicate of bug 1072476 ***