Bug 1013396 - [RFE]: Katello cmdline tool session caching
Summary: [RFE]: Katello cmdline tool session caching
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Adam Price
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 260381
TreeView+ depends on / blocked
 
Reported: 2013-09-29 22:31 UTC by Magnus Glantz
Modified: 2019-09-26 13:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-29 16:45:48 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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