blob: 3eeb238f05688fcce990177cd396c6a239f7eef1 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001/*
2Copyright 2014 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package authenticatorfactory
18
19type RequestHeaderConfig struct {
20 // UsernameHeaders are the headers to check (in order, case-insensitively) for an identity. The first header with a value wins.
21 UsernameHeaders []string
22 // GroupHeaders are the headers to check (case-insensitively) for a group names. All values will be used.
23 GroupHeaders []string
24 // ExtraHeaderPrefixes are the head prefixes to check (case-insentively) for filling in
25 // the user.Info.Extra. All values of all matching headers will be added.
26 ExtraHeaderPrefixes []string
27 // ClientCA points to CA bundle file which is used verify the identity of the front proxy
28 ClientCA string
29 // AllowedClientNames is a list of common names that may be presented by the authenticating front proxy. Empty means: accept any.
30 AllowedClientNames []string
31}