-
Notifications
You must be signed in to change notification settings - Fork 283
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
MinIO should perform sanity checks at startup about reachability / TLS certificates #3428
Comments
MinIO server URL is an external URL and it is mostly never resolvable from the MinIO nodes themselves. This is most common style in k8s like deployments where an ingress is not routable. How would anyone sanity check such environments? It will always fail. Sanity checks cant be done in such situations. When you make custom changes like this it is beyond our control. MINIO_SERVER_URL used to be a requirement but not anymore, our docs may have not caught up - but that's the truth. This environment is mostly now just vanity and does not warrant any extensive sanity check. It is not useful, it is kept around still for backward compatibility. |
In that case then MinIO Console won't work ever? So maybe only do that sanity check when
I guess you can't sanity check everything, I was really after MinIO Console sanity checks that it can reach the MinIO server in particular .
I understand that is deprecated and it's my own fault for putting using it there by following outdated/incorrect instructions that I found on the internet, so I'm not blaming you in anyway. But if I understood right this happens often enough so having this kind of warning at startup may solve some frustration when doing the first distributed setup ,etc and maybe save some time on slack support, etc.
Yes, maybe this can be solved by changing the documentation for
Hopefully this github issue itself will improve the situation, as it will appear on searches for "Invalid Login" on MinIO.
Sure, but I didn't mean for extensive sanity check, only for a check that the MinIO console I must stress that nowhere in the logs nor in the response from MinIO console, there is any indication that MinIO console can't reach the server. Maybe addressing #3427 would be enough, but if the check is at startup then it would be easier to catch. |
We'll check how to improve our current way we are displaying the login erros, we did a change this year where we hid some errors cause we were exposing too much info and was a security vulnerability but we can definitely see which ones can have more details to let the user know how to troubleshoot. Some ideas: for the ones we can't catch too easily we can point to documentation showing how to troubleshoot login errors. For the ones we can catch we should show the proper advice on how to fix it, e.g. |
The MinIO Console currently does not warn the user if the MinIO server is not reachable. MinIO Console will just say "Invalid Login" when the MINIO_SERVER_URL is not reachable which is misleading in the sense that will make think most people that the username/password/access key is incorrect so I think it should be mentioned in the documentation that Invalid Login could be just due to connectivity between console and server. Related to minio/console#3428 and minio/console#3427 @marktheunissen --------- Co-authored-by: Ruben Laguna <[email protected]> Co-authored-by: Ravind Kumar <[email protected]>
Is your feature request related to a problem? Please describe.
I did a new setup with 2 minio servers behind an HAProxy. I misconfigured the minio servers with MINIO_SERVER_URL pointing to the "https://haproxyaddress:9000" and the MinIO console was failing to login any user (I don't know the exact reason since it's not reported by minio, that's why I'm writing this issue).
The MinIO console login failed with a (IMHO, misleading) error message of Invalid Login which I think also can be improved (see #3427).
Anyway my problem when away when I just remove the MINIO_SERVER_URL, but I feel minio could have detected that MINIO_SERVER_URL was "wrong" at startup and reported it directly or even refused to start.
Describe the solution you'd like
At startup minio should do sanity checks for
It should print the result of the checks on the startup log, or even refuse to start.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
@marktheunissen help me on Slack with my initial issue, and probably can write down more "sanity checks" that he already have in mind.
The text was updated successfully, but these errors were encountered: