-
Notifications
You must be signed in to change notification settings - Fork 160
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
Basic auth disabled for /status
endpoint
#652
Comments
Have you considered using the |
No. Sorry I didn't. I don't get it though. You mean to use it for a liveness probe over gRPC? Something like this?
|
Yes. I don't have a great knowledge of kubernetes so I can't offer much help with that side of things, but maybe the discussion in #522 is helpful? This gRPC service is supposed to always be reachable (as long as you haven't disabled gRPC support in bazel-remote) regardless of authentication status. |
That's great. Thanks for getting back so fast |
No problem. There's also a brief mention of this in the kubernetes notes section of the README.md - suggestions for how to improve that are weclome, if you have any. |
Hi @mostynb, just to help anyone else dealing with the same issue, this deployment works fine with k8s >= 1.24:
|
Thanks to @bu3 for providing this. Relates to buchgr#652.
Thanks for following up- I'll close this issue now, and we can move documentation discussion into #653. |
Thanks to @bu3 for providing this. Relates to buchgr#652.
This config seems to be buggy?
|
Hi @CareF, I've just tried to deploy it again and it seems to be working fine. From my running pod description:
Tested with K8s 1.25 |
Thank you for the reply. My fault. Our k8s cluster is too old for |
kubernetes does not support TLS in grpcProbe.
Therefore, grpcProbe cannot be used in bazel-remote with TLS enabled. Is there any good workaround? |
That's weird. I see that someone filed a kubernetes issue recently about not supporting gRPC health checks with TLS: kubernetes/kubernetes#128365 As a workaround maybe you could define a command probe and use something like https://github.com/grpc-ecosystem/grpc-health-probe which does support TLS. |
Hi,
I'm having an issue deploying
bazel-remote
in a K8s cluster using/status
as liveness probe with basic authentication enabled.I cannot enable
allow_unauthenticated_reads
because of some internal security requirement but that means that/status
returns 401 and K8s kills my deployment.Is there any way to disable authentication for
/status
only?The text was updated successfully, but these errors were encountered: