Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployed stack successfully but Admin password is not being recognized #42

Open
1 of 3 tasks
jp15310 opened this issue May 13, 2022 · 0 comments
Open
1 of 3 tasks

Comments

@jp15310
Copy link

jp15310 commented May 13, 2022

Summary

Once the stack is deployed and Conjur web page show green, I am able to initialize Conjur but I am unable to login in as admin.

Steps to Reproduce

  1. Executed successfully> conjur -d init -u https://myvault.xxxxxxxxxxxxxx.com/ -a myorg
  2. It generated the following files: ~/.conjurrc, ~/conjur-server.pem
  3. Then tried to login using > conjur -d login -i admin -p 'M!P@ssw0rd2020'
  4. got this error: Failed to log in to Conjur. Unable to authenticate with Conjur. Reason: 401 Client Error: Unauthorized for url: https://myvault.xxxxxxxxxxxxx.com/authn/myvault/login. Check your credentials and try again

Expected Results

user logged in

Actual Results

A clear and concise description of what actually did happen. Include logs and
screens shots, whenever possible

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

v0.1.0

Environment setup

  • MacOS
  • Command Line

Additional Information

*2022-05-13 14:23:56,235 DEBUG: Attempting to fetch 'admin' API key from Conjur...
2022-05-13 14:23:56,275 DEBUG: Starting new HTTPS connection (1): myvault.xxxxxxxxxxx.com:443
2022-05-13 14:23:56,594 DEBUG: https://myvault.xxxxxxxxxxxxx.com:443 "GET /authn/myvault/login HTTP/1.1" 401 None
2022-05-13 14:23:56,601 DEBUG: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/conjur/cli.py", line 546, in run
Cli.run_action(resource, args)
File "/usr/local/lib/python3.9/site-packages/conjur/cli.py", line 735, in run_action
Cli.handle_login_logic(credential_provider, args.identifier, args.password, args.ssl_verify)
File "/usr/local/lib/python3.9/site-packages/conjur/cli.py", line 614, in handle_login_logic
login_controller.load()
File "/usr/local/lib/python3.9/site-packages/conjur/controller/login_controller.py", line 47, in load
self.get_api_key(conjurrc)
File "/usr/local/lib/python3.9/site-packages/conjur/controller/login_controller.py", line 87, in get_api_key
self.credential_data.password = self.login_logic.get_api_key(self.ssl_verify,
File "/usr/local/lib/python3.9/site-packages/conjur/logic/login_logic.py", line 53, in get_api_key
api_key = invoke_endpoint(HttpVerb.GET,
File "/usr/local/lib/python3.9/site-packages/conjur/wrapper/http_wrapper.py", line 86, in invoke_endpoint
raise http_error
File "/usr/local/lib/python3.9/site-packages/conjur/wrapper/http_wrapper.py", line 80, in invoke_endpoint
response.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 953, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://myvault.xxxxxxxxxxx.com/authn/myvault/login
*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants