Skip to content

Commit

Permalink
pkg/authn: fix k8s bump issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ibihim committed Aug 30, 2024
1 parent fad3619 commit 5e77859
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/authn/delegating.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"net/http"
"time"

"k8s.io/apiserver/pkg/apis/apiserver"
"k8s.io/apiserver/pkg/authentication/authenticator"
"k8s.io/apiserver/pkg/authentication/authenticatorfactory"
"k8s.io/apiserver/pkg/server/dynamiccertificates"
Expand Down Expand Up @@ -50,7 +51,9 @@ func NewDelegatingAuthenticator(client authenticationclient.AuthenticationV1Inte
)

authenticatorConfig := authenticatorfactory.DelegatingAuthenticatorConfig{
Anonymous: false, // always require authentication
Anonymous: &apiserver.AnonymousAuthConfig{
Enabled: false, // always require authentication
},
// Better defaults would be here: apiserver/pkg/server/options/authentication.go.
CacheTTL: 2 * time.Minute,
TokenAccessReviewClient: client,
Expand Down

0 comments on commit 5e77859

Please sign in to comment.