Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1154382 - [RFE] Ability to use tokenized authentication to hammer in lieu of username/password in configuration file.
[RFE] Ability to use tokenized authentication to hammer in lieu of username/p...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hammer (Show other bugs)
6.0.4
Unspecified Unspecified
high Severity medium (vote)
: Beta
: Unused
Assigned To: Tomas Strachota
Jitendra Yejare
http://projects.theforeman.org/issues...
: FutureFeature, PrioBumpPM, Triaged
: 1299016 1380045 (view as bug list)
Depends On:
Blocks: 1317008 1353215 1451556
  Show dependency treegraph
 
Reported: 2014-10-19 07:50 EDT by Rich Jerrido
Modified: 2018-09-06 17:24 EDT (History)
25 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-02-21 07:29:34 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 8016 None None None 2016-04-26 12:55 EDT
Red Hat Product Errata RHSA-2018:0336 normal SHIPPED_LIVE Important: Satellite 6.3 security, bug fix, and enhancement update 2018-02-21 17:43:42 EST

  None (edit)
Description Rich Jerrido 2014-10-19 07:50:45 EDT
Description of problem:
This RFE requests the ability to configure hammer with either

* a token for login that is separate from the username/pass OR
* a session based credential cache so that the user can be prompted for login once at the beginning of their CLI session. 

The goal is to keep the user from placing an administrative username/password within hammer's configuration file, in cleartext. 

Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.1.1-12.el6sat.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 RHEL Product and Program Management 2014-10-19 08:03:00 EDT
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 3 Dominic Cleal 2014-10-21 11:45:38 EDT
Created redmine issue http://projects.theforeman.org/issues/8016 from this bug
Comment 6 David O'Brien 2016-04-17 20:48:40 EDT
Reset docs contact <> daobrien
Comment 8 Thom Carlin 2016-05-16 10:23:21 EDT
This would also allow persistent authentication for the REST API?
Comment 11 Bryan Kearney 2016-09-30 06:04:35 EDT
Upstream bug assigned to tstrachota@redhat.com
Comment 12 Brad Buckingham 2016-09-30 09:26:28 EDT
When resolving this bugzilla, please refer to any associated duplicates for additional input.
Comment 13 Brad Buckingham 2016-09-30 09:26:33 EDT
*** Bug 1380045 has been marked as a duplicate of this bug. ***
Comment 14 Bryan Kearney 2016-12-09 14:01:29 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/8016 has been resolved.
Comment 20 Jitendra Yejare 2017-12-05 07:57:55 EST
Verified !

@ Satellite 6.3 snap 27

Steps:
# hammer auth login
> [Foreman] Username: admin
> [Foreman] Password for admin: 

# hammer auth status
>  Session exists, currently logged in as 'admin

# hammer domain list (That didnt prompt for passwd)
---|---------------------------
ID | NAME                      
---|---------------------------
13 | BqgPSNLeQt                
10 | FyWhgdcbSn                
11 | GbqGiKuCws                
18 | hCbPdswEni                
12 | ibNwVTpdkU                
9  | KktExDTarl                
19 | lab.bos.redhat.com        
14 | LoUVeZpkrC                
15 | nSMsOicbPH                
16 | OFKLpavbjh                
17 | xQOQIFghpj                
---|---------------------------

# hammer auth logout
> Logged out.


So the sessionized(tokenized) authentication is working as expected. Changing the state of bug to verified.

Note: This tokenized auth doesnt works with curl as mentioned in comment 9.
Comment 23 errata-xmlrpc 2018-02-21 07:29:34 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336
Comment 24 Bryan Kearney 2018-07-17 12:45:16 EDT
*** Bug 1299016 has been marked as a duplicate of this bug. ***

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