Feature #10346

hammer doesn't prompt for password when using -u

Added by Justin Garrison about 3 years ago. Updated 10 months ago.

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


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


#1 Updated by Tomáš Strachota almost 3 years ago

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

  • Target version set to hammer-cli 0.6.0

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

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

#4 Updated by Tomáš Strachota 10 months ago

  • Target version deleted (hammer-cli 0.7.0)

#5 Updated by Tomáš Strachota 10 months 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