When running the conjur login command without passing the username and password via command line arguments, the CLI prompts the user to enter a username and password. The text for the password prompt is currently: Enter your password or API key. This is misleading when using LDAP to login because the API key cannot be used to login via authn-ldap. The prompt text should be accurate for both regular authn (default Conjur authentication) and authn-ldap modes.
Implemented Changes
Set the prompt text based on the authentication strategy configured in conjur init and saved in the .conjurrc file.
Authn: Enter your Conjur password or API key
LDAP: Enter your LDAP password
Connected Issue/Story
N/A
Changelog
[ ] The CHANGELOG has been updated, or
[x] This PR does not include user-facing changes and doesn't require a
CHANGELOG update
Test coverage
[ ] This PR includes new unit and integration tests to go with the code
changes, or
[x] The changes in this PR do not require tests
Documentation
[ ] Docs (e.g. READMEs) were updated in this PR
[ ] A follow-up issue to update official docs has been filed here: [insert issue ID]()
[x] This PR does not require updating any documentation
Behavior
[ ] This PR changes product behavior and has been reviewed by a PO, or
[ ] These changes are part of a larger initiative that will be reviewed later, or
[ ] No behavior was changed with this PR
Security
[ ] Security architect has reviewed the changes in this PR,
[ ] These changes are part of a larger initiative with a separate security review, or
[x] There are no security aspects to these changes
Desired Outcome
When running the
conjur login
command without passing the username and password via command line arguments, the CLI prompts the user to enter a username and password. The text for the password prompt is currently:Enter your password or API key
. This is misleading when using LDAP to login because the API key cannot be used to login via authn-ldap. The prompt text should be accurate for both regular authn (default Conjur authentication) and authn-ldap modes.Implemented Changes
conjur init
and saved in the.conjurrc
file.Enter your Conjur password or API key
Enter your LDAP password
Connected Issue/Story
N/A
Changelog
Test coverage
Documentation
README
s) were updated in this PRBehavior
Security