-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
clarify error message for root user credential #20043
clarify error message for root user credential #20043
Conversation
This PR needs to be simplified its changing too many things. |
d5ec965
to
38dd31c
Compare
Sorry I'm new to this project. I just pushed another version which only changes the error displayed when |
cmd/common-main.go
Outdated
@@ -851,6 +852,7 @@ func loadRootCredentials() { | |||
} else if env.IsSet(config.EnvAccessKey) && env.IsSet(config.EnvSecretKey) { | |||
user = env.Get(config.EnvAccessKey, "") | |||
password = env.Get(config.EnvSecretKey, "") | |||
isUsingKeys = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isUsingKeys = true | |
legacyCredentials = true |
the new PR looks good. |
MINIO_ACCESS_KEY and MINIO_SECRET_KEY is prompted as deprecated when set in enviroment variables. The error message on failure of credential check still shows "access key" and "secret key", which confuses users. This patch clarifies error messages for these cases so that it matches the actual failure reason. Signed-off-by: Austin Chang <austin880625@gmail.com>
38dd31c
to
a047302
Compare
I've just updated the naming. Thank for the review |
Oops sorry I was using the phone and touched the "merge master" button unintentionally, should we restart the pipeline or I need to force push again? |
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
Clarifies error messages for root user credential environment variables so that it matches the actual failure reason.
Motivation and Context
MINIO_ACCESS_KEY and MINIO_SECRET_KEY is prompted as deprecated when set in enviroment variables. The error message on failure of credential check still shows "access key" and "secret key", which confuses users.
How to test this PR?
start minio server with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD set and violate the length requirements
Types of changes
Checklist:
commit-id
orPR #
here)