gswauth cli should be able to accept password/key as user input like ssh

Registered by pushpesh

Steps:-
Currently gswauth is able to accept password/key only as CLI parameters or as env variables.It would be good if it could accept passwords as a user input like ssh and other utilities does.

# swauth-prep -K gswauthkey
# swauth-prep -K
Usage: swauth-prep [options]

swauth-prep: error: -K option requires an argument
# swauth-prep
Usage: swauth-prep [options]

Options:
  -h, --help show this help message and exit
  -A ADMIN_URL, --admin-url=ADMIN_URL
                        The URL to the auth subsystem (default:
                        http://127.0.0.1:8080/auth/
  -U ADMIN_USER, --admin-user=ADMIN_USER
                        The user with admin rights to add users (default:
                        .super_admin).
  -K ADMIN_KEY, --admin-key=ADMIN_KEY
                        The key for the user with admin rights to add users.

################ This is what i am looking for:-

# ssh root@localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is 0e:6c:ef:a4:d5:c8:d2:21:f4:85:9b:bf:7e:fa:04:6c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:

Version Info :-

glusterfs-openstack-swift-1.10.0-0.24.fc19.noarch

Blueprint information

Status:
Not started
Approver:
Luis Pabón
Priority:
Low
Drafter:
pushpesh
Direction:
Approved
Assignee:
Thiago da Silva
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

I think the requirement would be if no password is given, to then ask the user for the password.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.