-
Notifications
You must be signed in to change notification settings - Fork 44
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
Setting CREDHUB_SERVER environment variable causes successful logins to be ignored. #98
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/173204360 The labels on this github issue will be updated when the story is started. |
We're seeing this behaviour as well (also 2.6.2 of the Credhub CLI, in our case with 2.6.0 of the Credhub bosh release).
|
By contrast I have no problems at all when exporting |
The CLI now returns warnings that two auth methods were detected when:
It would still be valuable to resolve the case in the issue where the user only set the SERVER variable and used a username/password flow, but we have not addressed that in this yet. We do plan to address this with a more comprehensive fix. It will likely wind up being a breaking change and are evaluating our options. |
What version of the credhub server you are using?
2.5.9
What version of the credhub cli you are using?
2.6.2
If you were attempting to accomplish a task, what was it you were attempting to do?
Log in to Credhub with
credhub login
and run auth-required commands with theCREDHUB_SERVER
environment variable set.What did you expect to happen?
Commands run successfully after logging in via
credhub login
, regardless of whetherCREDHUB_SERVER
is set or not..What was the actual behavior?
Auth-required commands run after logging in failed with
You are not currently authenticated. Please log in to continue.
Please confirm where necessary:
Steps to Repro
export CREDHUB_SERVER=<ip>
. Don't set any of the other magic variables (CREDHUB_CLIENT
, etc).credhub login -s <server> -u <user> -p <pass>
credhub find -n /
.unset CREDHUB_SERVER
The text was updated successfully, but these errors were encountered: