unauthenticated requests is not denied, neither api-server fail to run with anonymous-auth=false and AuthenticationConfiguration.Anonymous is non-nil in api-server #130318
Labels
sig/auth
Categorizes an issue or PR as relevant to SIG Auth.
triage/needs-information
Indicates an issue needs more information in order to work on it.
triage/not-reproducible
Indicates an issue can not be reproduced as described.
test env:
kubernetes version: 1.32.2
when i was trying the function of https://github.com/kubernetes/enhancements/tree/master/keps/sig-auth/4633-anonymous-auth-configurable-endpoints with following setup.
set anonymous-auth=false in apiserver.
while enable Anonymous Auth in the AuthenticationConfiguration.
with "anonymous-auth=false" and AuthenticationConfiguration, i would expect api-server fail to start, or at least unauthenticated requests will be denied, but in this case, i observed api-server is running up and i could get response with anonymouse user.
it's inconsistent with below description in the documentation:
If AuthenticationConfiguration.Anonymous is non-nil and --anonymous-auth flag is set then kube-apiserver should fail to start with an appropriate error guiding the user to either use --anonymous-auth or use AuthenticationConfiguration.Anonymous.
The text was updated successfully, but these errors were encountered: