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

Without proxy enabled, could console.minio-operator.cluster.svc.local:9090 be accessed? #2068

Closed
Clara12062 opened this issue Apr 12, 2024 · 3 comments

Comments

@Clara12062
Copy link

When I visit http://operator.minio-operator.svc.cluster.local:4221/tenants, returning 404 page not found.
I want to call api.OperatorAPIListTenantsHandler for tenants, should how to call the minio-operator-svc.

Your Environment

  • Version used (minio-operator): 5.0.12
  • Environment name and version (e.g. kubernetes v1.17.2):
  • Server type and version:
  • Operating System and version (uname -a):
  • Link to your deployment file:
@jiuker
Copy link
Contributor

jiuker commented Apr 12, 2024

Why not http://console.minio-operator.svc.clus.....

@Clara12062
Copy link
Author

Clara12062 commented Apr 13, 2024

@jiuker hello! If I don't call the webUI to get the tenants info, could I also use http://console.minio-operator.svc.cluster.local:9090 to access? I didn't execute kubectl minio proxy -n minio-operator.
I try curl -v -k http://console.minio-operator.svc.cluster.local:9090/tenants

bash-4.4$ curl -v -k http://console.minio-operator.svc.cluster.local:9090/api/v1/tenants
*   Trying 10.192.223.75...
* TCP_NODELAY set
* Connected to console.minio-operator.svc.cluster.local (10.192.223.75) port 9090 (#0)
> GET /api/v1/tenants HTTP/1.1
> Host: console.minio-operator.svc.cluster.local:9090
> User-Agent: curl/7.61.1
> Accept: */*
> 
< HTTP/1.1 401 Unauthorized
< Content-Type: application/json
< Server: MinIO Operator
< Vary: Accept-Encoding
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< X-Xss-Protection: 1; mode=block
< Date: Sat, 13 Apr 2024 00:47:57 GMT
< Content-Length: 47
< 
* Connection #0 to host console.minio-operator.svc.cluster.local left intact
{"code":401,"message":"incorrect api key auth"}

@Clara12062 Clara12062 changed the title Could I have direct access to "operator.minio-operator.svc.cluster.local:4221" to obtain tenant information? Without proxy enabled, could console.minio-operator.cluster.svc.local:9090 be accessed? Apr 15, 2024
@jiuker
Copy link
Contributor

jiuker commented Apr 16, 2024

http://console.minio-operator.svc.cluster.local:9090 You cannot use this address without logging in

@jiuker jiuker closed this as completed Apr 16, 2024
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