delegate authn: don't default the ReqHeaders UID header

This commit is contained in:
Stanislav Láznička
2024-05-20 13:43:22 +02:00
parent dcc6cf9280
commit 26902de531
5 changed files with 42 additions and 12 deletions

View File

@@ -430,7 +430,7 @@ func TestAddFlags(t *testing.T) {
ClientCert: apiserveroptions.ClientCertAuthenticationOptions{},
RequestHeader: apiserveroptions.RequestHeaderAuthenticationOptions{
UsernameHeaders: []string{"x-remote-user"},
UIDHeaders: []string{"x-remote-uid"},
UIDHeaders: nil,
GroupHeaders: []string{"x-remote-group"},
ExtraHeaderPrefixes: []string{"x-remote-extra-"},
},