Bug 1013396

Summary: [RFE]: Katello cmdline tool session caching
Product: Red Hat Satellite Reporter: Magnus Glantz <sudo>
Component: HammerAssignee: Adam Price <adprice>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: bkearney, mbacovsk, mmccune, sudo, xdmoon
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-29 16:45:48 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:
Bug Depends On:    
Bug Blocks: 260381    

Description Magnus Glantz 2013-09-29 22:31:04 UTC
Description of problem:
The katello cmdline tool offers no session caching, so you have to provide an username and a password each time you use it - if you don't invoke the katello shell. This makes it more difficult to work effectively via the cmdline.

Version-Release number of selected component (if applicable):
1.4.8-1.git.4.c940d43.el6

How reproducible:
N/A

Steps to Reproduce:
N/A

Actual results:
If I would want to list all the activation keys for my Organization I would have to do:
# katello -u admin -p PASSWORD activation_key list --org MYORG

Expected results:
If there already is an active session (eg. I've recently use the 'katello' cmdline tool), it should suffice to run:
# katello activation_key list --org MYORG

Additional info:
It would be a pro from a security perspective if it also would be possible to run:
# katello logout
or etc, to terminate active sessions.

Even with shorter passwords this is quite a pain, if you have a longer / more complex password you pretty quickly grow tired of typing it :)

Comment 1 Magnus Glantz 2013-09-29 22:33:32 UTC
As I'm a RHN Satellite 5 user, I'm comparing the katello cmdline tool against Spacewalks/RHN Satellite 5's spacecmd :)

Comment 2 Mike McCune 2013-10-10 17:53:21 UTC
moving to our downstream product to include this.  Our CLI is undergoing a lot of work and this may be included

Comment 5 Martin Bacovsky 2014-03-19 09:38:15 UTC
In the Satellite 6 the katello-cli tool will be replaced with hammer-cli (new CLI client). In hammer we have no similar concept to session caching you've described above. However hammer can read the credentials from configuration files, so you don't have to retype them and expose on command-line and in process list. 

For more information you can see https://github.com/theforeman/hammer-cli/blob/master/doc/installation.md#configuration

Would this be acceptable (form user and security perspective) solution for you?

Comment 6 Magnus Glantz 2014-03-19 12:55:47 UTC
Hey Martin, thanks, that's an acceptable solution.

Comment 7 Mike McCune 2015-01-29 16:45:48 UTC
Closing CURRENTRELEASE as this is now available in Satellite 6.0