Commit 410f70c
committed
ACM-30179: Use TLS configuration from the APIServer when available
OCP 4.22 indroduces a new feature in the APIServer for configuring TLS configuration, and we want our components to also use the same TLS configuration that is defined in the APIServer.
When starting a components we will attempt to get the APIServer and check its TLSAdherencePolicy (decides whether we should apply the TLS configuration) and TLSProfileSpec (the actual TLS configuration).
For our operator we also add a controller called SecurityProfileWatcher (provided by openshift/controller-runtime-common) in order to force a restart when these values change.
For our server we implement a similar behavior ourselves.
This also required updating a lot of packages including the client-go which further required setting the environment variable KUBE_FEATURE_WatchListClient to false on the operator in order to fix a known bug where controllers don't start due to a cache sync issue.1 parent 99a951c commit 410f70c
6,036 files changed
Lines changed: 689274 additions & 752778 deletions
File tree
- bundle/manifests
- cmd
- manager
- server
- config
- manager
- rbac
- controllers
- internal/tlsconfig
- vendor
- cel.dev/expr
- github.com
- AlecAivazis/survey/v2
- core
- terminal
- Azure
- azure-sdk-for-go/sdk
- azcore/to
- resourcemanager/msi/armmsi
- go-autorest
- autorest/date
- logger
- tracing
- antlr4-go/antlr/v4
- aws
- aws-sdk-go-v2
- aws
- middleware
- protocol/eventstream
- transport/http
- config
- credentials
- logincreds
- feature/ec2/imds
- internal
- configsources
- endpoints
- awsrulesfn
- v2
- ini
- v4a
- service
- cloudfront
- internal/endpoints
- types
- ec2
- internal/endpoints
- types
- efs
- internal/endpoints
- types
- elasticloadbalancingv2
- internal/endpoints
- types
- iam
- internal/endpoints
- types
- internal
- accept-encoding
- checksum
- presigned-url
- resourcegroupstaggingapi
- internal/endpoints
- types
- route53
- internal/endpoints
- types
- s3
- internal/endpoints
- types
- servicequotas
- internal/endpoints
- types
- signin
- internal/endpoints
- types
- ssooidc
- internal/endpoints
- sso
- internal/endpoints
- sts
- internal/endpoints
- types
- aws-sdk-go
- aws
- arn
- auth/bearer
- awserr
- awsutil
- client
- metadata
- corehandlers
- credentials
- ec2rolecreds
- endpointcreds
- processcreds
- ssocreds
- stscreds
- csm
- defaults
- ec2metadata
- endpoints
- request
- session
- signer/v4
- internal
- context
- ini
- sdkio
- sdkmath
- sdkrand
- sdkuri
- strings
- sync/singleflight
- private
- checksum
- protocol
- ec2query
- eventstream
- eventstreamapi
- jsonrpc
- json/jsonutil
- query
- queryutil
- restjson
- restxml
- rest
- xml/xmlutil
- service
- cloudfront
- cloudfrontiface
- ec2
- iam
- iamiface
- route53
- s3
- s3iface
- ssooidc
- sso
- ssoiface
- sts
- stsiface
- smithy-go
- metrics
- middleware
- transport/http
- cenkalti/backoff/v5
- cjlapao/common-go
- duration
- cncf/xds/go
- udpa
- annotations
- type/v1
- xds
- annotations/v3
- core/v3
- data/orca/v3
- service/orca/v3
- type
- matcher/v3
- v3
- envoyproxy
- go-control-plane/envoy
- config
- bootstrap/v3
- common/mutation_rules/v3
- core/v3
- endpoint/v3
- listener/v3
- metrics/v3
- overload/v3
- route/v3
- trace/v3
- extensions
- filters/network/http_connection_manager/v3
- load_balancing_policies
- client_side_weighted_round_robin/v3
- common/v3
- type/matcher/v3
- protoc-gen-validate/validate
- fsnotify/fsnotify
- internal
- go-playground/validator/v10
- gofrs/flock
- gogo/protobuf
- proto
- sortkeys
- google
- cel-go
- cel
- templates
- checker
- decls
- common
- ast
- containers
- debug
- decls
- env
- functions
- operators
- overloads
- runes
- stdlib
- types
- pb
- ref
- traits
- ext
- interpreter
- functions
- parser
- gen
- pprof/profile
- shlex
- gorilla/websocket
- grpc-ecosystem/grpc-gateway/v2
- internal/httprule
- runtime
- utilities
- h2non/filetype
- matchers
- isobmff
- types
- itchyny
- gojq
- timefmt-go
- jackc
- pgio
- pgtype
- microsoft
- kiota-abstractions-go
- authentication
- serialization
- store
- kiota-authentication-azure-go
- moby/spdystream
- spdy
- mxk/go-flowrate
- flowrate
- onsi
- ginkgo/v2
- ginkgo
- command
- internal
- run
- internal
- reporters
- reporters
- types
- gomega
- openshift
- api
- config
- v1alpha1
- v1alpha2
- v1
- features
- machineconfiguration
- v1alpha1
- v1
- machine
- v1beta1
- v1
- operator
- v1alpha1
- v1
- route/v1
- assisted-image-service
- internal/common
- pkg/isoeditor
- assisted-service
- api
- hiveextension/v1beta1
- v1beta1
- models
- client-go/config/applyconfigurations/config
- v1alpha1
- v1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
85 | 105 | | |
86 | 106 | | |
87 | 107 | | |
| |||
196 | 216 | | |
197 | 217 | | |
198 | 218 | | |
| 219 | + | |
| 220 | + | |
199 | 221 | | |
200 | 222 | | |
201 | 223 | | |
| |||
226 | 248 | | |
227 | 249 | | |
228 | 250 | | |
| 251 | + | |
| 252 | + | |
229 | 253 | | |
230 | 254 | | |
231 | 255 | | |
| |||
279 | 303 | | |
280 | 304 | | |
281 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
282 | 309 | | |
283 | 310 | | |
284 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
99 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
100 | 116 | | |
101 | 117 | | |
102 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
103 | 123 | | |
104 | 124 | | |
105 | 125 | | |
106 | 126 | | |
107 | 127 | | |
108 | 128 | | |
109 | 129 | | |
| 130 | + | |
110 | 131 | | |
111 | 132 | | |
112 | 133 | | |
| |||
179 | 200 | | |
180 | 201 | | |
181 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
182 | 222 | | |
183 | 223 | | |
184 | 224 | | |
| |||
197 | 237 | | |
198 | 238 | | |
199 | 239 | | |
200 | | - | |
| 240 | + | |
201 | 241 | | |
202 | 242 | | |
203 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
16 | 31 | | |
17 | 32 | | |
18 | 33 | | |
| |||
23 | 38 | | |
24 | 39 | | |
25 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
26 | 48 | | |
27 | 49 | | |
28 | 50 | | |
| |||
50 | 72 | | |
51 | 73 | | |
52 | 74 | | |
| 75 | + | |
| 76 | + | |
53 | 77 | | |
54 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
55 | 92 | | |
56 | 93 | | |
57 | 94 | | |
| |||
75 | 112 | | |
76 | 113 | | |
77 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
127 | 134 | | |
128 | 135 | | |
129 | 136 | | |
| |||
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
29 | 49 | | |
30 | 50 | | |
31 | 51 | | |
| |||
0 commit comments