-
Notifications
You must be signed in to change notification settings - Fork 456
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
invalid Login whenever operator provisioned tenant console is accessed #1945
Comments
Figured it myself by deploying outdated version of tenant, which showed much more verbose error messages, instead of just "Invalid login". So my k8s cluster is self-hosted cluster witrh certmanager and enabled TLS. And for tenant to work properly i need to add secret names of my ingress's certificates to tenant yaml config after tenant is created. (there's a set of yaml parameters for that in tenant chart, but nothing in the webui) |
We also faced the same issue.. Older minio version .. To fix this issue - we added below config in tenant helm values block.
and we created this secret as below. Replace names appropriately.
This fixed the issue. @harshavardhana - can we re-open this issue to fix the error message in newer version of minio? New version minio gives only very vague |
thanks for the tip!
so the cert needs to be valid for minio.cc-aep.svc.cluster.local, but there's no way to do that in my case since we're using letsencrypt |
It definitely feels like a mistake to me that this doesn't work with LetsEncrypt issued certificates. We're hitting the same issue trying to deploy a tenant through the operator and accessing the console. Interestingly though, login only fails in the console -- using the edit: We got this working by using Cloudflare as a proxy. So this may actually be a weird hairpin routing issue or similar. However, the console didn't make this clear at all because it just spits out "invalid Login". It would be helpful to have more debugging information to go on. The only reason we began suspecting a hairpin routing issue was because we enabled OIDC, and the OIDC integration in the console told us it was an i/o timeout, where regular user/pass authentication just spat out a 401 with no context. |
Expected Behavior
Tenant console allows user access with credentials set up during provisioning using operator ui
Current Behavior
Always getting invalid Login when trying to access console. mc admin works though. I've tried deploying tenant with/without TLS, tried setting MINIO_BROWSER_REDIRECT_URL, my additional domains are also always set. I even tried creating new user through mc admin app and assigning consoleAdmin policy to it - still getting 401 from console (Failed to load resource: the server responded with a status of 401 ()). One thing I can tell - my public domain resolves to local addresses, but don't think that it matters.
Possible Solution
No clue
Steps to Reproduce (for bugs)
Deploy MinIO Operator with helm, deploy tenant with setting external domains and turning off service exposure
Context
I can't login to console
Regression
No clue
Your Environment
minio-operator
): 5.0.10uname -a
): Linux 6.6.6-76060606-generic #202312111032170230614322.04~d28ffec SMP PREEMPT_DYNAMIC Mon D x86_64 x86_64 x86_64 GNU/LinuxIngresses from here: https://github.com/minio/operator/blob/master/docs/nginx-ingress.md
The text was updated successfully, but these errors were encountered: