-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace kube-rbac-proxy with controller-runtime metrics authenticatio…
…n/authorization This commit removes the use of the kube-rbac-proxy image and replaces it with metrics authentication/authorization provided by controller-runtime. The kube-rbac-proxy image is deprecated and will no longer be maintained, which introduces risks to production environments. For more details, see: kubernetes-sigs/kubebuilder#3907 Key changes: - Updated to configure metrics server options with secure authentication/authorization using controller-runtime filters. - Added support for disabling HTTP/2 by default to mitigate vulnerabilities (e.g., HTTP/2 Stream Cancellation CVE). - Removed the kube-rbac-proxy container from deployment configurations.
- Loading branch information
1 parent
55689e8
commit 0d9cd88
Showing
9 changed files
with
102 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 24 additions & 4 deletions
28
config/components/ca/patches/manager_deployment_cacerts.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
- op: add | ||
path: /spec/template/spec/volumes/- | ||
value: {"name":"olmv1-certificate", "secret":{"secretName":"catalogd-service-cert-git-version", "optional": false, "items": [{"key": "ca.crt", "path": "olm-ca.crt"}]}} | ||
value: | ||
name: "olmv1-certificate" | ||
secret: | ||
secretName: "catalogd-service-cert-git-version" | ||
optional: false | ||
items: | ||
- key: "ca.crt" | ||
path: "olm-ca.crt" | ||
- key: "tls.crt" | ||
path: "olm-tls.crt" | ||
- key: "tls.key" | ||
path: "olm-tls.key" | ||
- op: add | ||
path: /spec/template/spec/containers/1/volumeMounts/- | ||
value: {"name":"olmv1-certificate", "readOnly": true, "mountPath":"/var/ca-certs/"} | ||
path: /spec/template/spec/containers/0/volumeMounts/- | ||
value: | ||
name: "olmv1-certificate" | ||
readOnly: true | ||
mountPath: "/var/ca-certs/" | ||
- op: add | ||
path: /spec/template/spec/containers/1/args/- | ||
path: /spec/template/spec/containers/0/args/- | ||
value: "--ca-certs-dir=/var/ca-certs" | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: "--tls-cert=/var/ca-certs/olm-tls.crt" | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: "--tls-key=/var/ca-certs/olm-tls.key" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters