Support --anonymous-auth Flag in kube-apiserver to fully disable Anonymous Authentication #862
5th0
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
We attempted to harden API access for Tenant Control Planes by setting the
--anonymous-auth=falseflag to thekube-apiserver.However, the TCP deployment fails due to unauthorized health probes:
Startup probe failed: HTTP probe failed with statuscode: 401Since Kubernetes v1.32, it is possible to selectively enable anonymous authentication for specific API paths, as described in the official documentation:
https://kubernetes.io/docs/reference/access-authn-authz/authentication/#anonymous-authenticator-configuration
We would like this functionality to be fully supported and configurable within Tenant Control Plane environments as well.
Proposal
Benefits
This approach preserves flexibility and maintains backward compatibility for workloads that rely on anonymous access to health or metrics endpoints, while improving the overall security posture.
Beta Was this translation helpful? Give feedback.
All reactions