Bug 1315255

Summary: hammer template dump does not request password when output redirected to a file
Product: Red Hat Satellite Reporter: Stuart Auchterlonie <sauchter>
Component: Provisioning TemplatesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.7CC: bkearney, mhulan, mschwabe, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 17:57:25 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: 1317008    

Description Stuart Auchterlonie 2016-03-07 11:38:47 UTC
Description of problem:

Using hammer to dump templates out, it will not prompt
for the password when redirecting the output to a file,
resulting in an error.

Passing the --password option to hammer does work but
is not acceptable as this leaves the password in clear
text in the users history.

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

6.1.7

How reproducible:

100%

Steps to Reproduce:
1. # hammer --username admin template dump --name epel > snippet-epel.erb
2.
3.

Actual results:

# hammer --username admin template dump --name epel > snippet-epel.erb
Invalid username or password


Expected results:

As per when hammer is run without redirecting to a file

# hammer --username admin template dump --name epel
[Foreman] Password for admin: 


Additional info:

Customer has suggested that dump should have a switch to send
the output to a file, in the same way as the create has a switch 
to import from a file.

Comment 5 Bryan Kearney 2016-04-26 17:56:12 UTC
Created redmine issue http://projects.theforeman.org/issues/14832 from this bug

Comment 12 Bryan Kearney 2018-09-04 17:57:25 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.