requestheaders: add a "requestheader-uid-headers" flag and wire it up

This commit is contained in:
Stanislav Láznička
2023-02-16 11:28:50 +01:00
parent 3b86da0c0c
commit 7fabd06c2b
15 changed files with 187 additions and 19 deletions

View File

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