Feature #10346

hammer doesn't prompt for password when using -u

Added by Justin Garrison over 2 years ago. Updated about 1 month ago.

Status:Closed
Priority:Normal
Assigned To:-
Category:Hammer core
Target version:-
Difficulty: Bugzilla link:
Found in release: Pull request:
Story points-
Velocity based estimate-

Description

When specifying a username for hammer (overriding yml config file) hammer does not prompt for a password and instead errors with "invalid username or password" This causes bash history to contain sensitive information that should be secured.

When -u is specified or -p with no argument hammer should prompt for a password.


Related issues

Related to Hammer CLI - Tracker #2823: Tracker for usability issues New 07/24/2013

History

#1 Updated by Tomáš Strachota about 2 years ago

#2 Updated by Tomáš Strachota almost 2 years ago

  • Target version set to hammer-cli 0.6.0

#3 Updated by Tomáš Strachota over 1 year ago

  • Target version changed from hammer-cli 0.6.0 to hammer-cli 0.7.0

#4 Updated by Tomáš Strachota about 1 month ago

  • Target version deleted (hammer-cli 0.7.0)

#5 Updated by Tomáš Strachota about 1 month ago

  • Category set to Hammer core
  • Status changed from New to Closed

This issue has been fixed as part of https://github.com/theforeman/hammer-cli-foreman/commit/0de9a76f32087f03681d6a50ae8b42c8f3a729a2

Hammer now checks whether the username provided via -u is the same as the one stored in the config file and prompts for a password when they differ.

Also available in: Atom PDF