Skip to content
Snippets Groups Projects
Commit 19fba917 authored by kaiyou's avatar kaiyou
Browse files

Properly publish the requestheader CA and authentication info

parent 69e3e2a8
No related branches found
No related tags found
1 merge request!6Enable proxy authentication to the apiserver
Pipeline #29713 failed
...@@ -363,7 +363,15 @@ func buildApiConfig(c *Cluster, config server.Config, clients *k8s.Clients) (*co ...@@ -363,7 +363,15 @@ func buildApiConfig(c *Cluster, config server.Config, clients *k8s.Clients) (*co
APIResourceConfigSource: generic.MergedResourceConfig, APIResourceConfigSource: generic.MergedResourceConfig,
StorageFactory: restOptionsGetter.StorageFactory, StorageFactory: restOptionsGetter.StorageFactory,
ClusterAuthenticationInfo: clusterauthenticationtrust.ClusterAuthenticationInfo{ ClusterAuthenticationInfo: clusterauthenticationtrust.ClusterAuthenticationInfo{
ClientCA: config.SecureServing.ClientCA, // This is duplicated information from the authentication layer, so that
// the start-cluster-authentication-info-controller controller properly
// populates the extension-apiserver-authentication ConfigMap with
// authentication info
ClientCA: config.SecureServing.ClientCA,
RequestHeaderCA: config.Authentication.RequestHeaderConfig.CAContentProvider,
RequestHeaderUsernameHeaders: config.Authentication.RequestHeaderConfig.ExtraHeaderPrefixes,
RequestHeaderGroupHeaders: config.Authentication.RequestHeaderConfig.GroupHeaders,
RequestHeaderExtraHeaderPrefixes: config.Authentication.RequestHeaderConfig.ExtraHeaderPrefixes,
}, },
}, },
}, nil }, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment