Skip to content

OCPCLOUD-3347: tls: use centralized TLS profile - #286

Merged
openshift-merge-bot[bot] merged 3 commits into
openshift:mainfrom
damdo:use-centralized-tls-profile
Feb 25, 2026
Merged

openshift-merge-bot[bot] merged 3 commits into
openshift:mainfrom
damdo:use-centralized-tls-profile

Conversation

@damdo

@damdo damdo commented Jan 20, 2026

Copy link
Copy Markdown
Member

Start using centralized TLS profile fetched from the APIServer configuration.
Remove kube-rbac-proxy

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 20, 2026
@openshift-ci-robot

openshift-ci-robot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

@damdo: This pull request references OCPCLOUD-3347 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot

openshift-ci-robot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

@damdo: This pull request references OCPCLOUD-3347 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Start using centralized TLS profile fetched from the APIServer configuration.
Remove kube-rbac-proxy

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
openshift-ci Bot requested review from chrischdi and nrb January 20, 2026 14:42
@damdo
damdo force-pushed the use-centralized-tls-profile branch from 1739832 to 4011872 Compare January 20, 2026 16:27
@damdo

damdo commented Jan 20, 2026

Copy link
Copy Markdown
Member Author

Units will be fixed by #287

@damdo
damdo force-pushed the use-centralized-tls-profile branch from 4011872 to 9349d48 Compare January 20, 2026 20:35
@damdo

damdo commented Jan 21, 2026

Copy link
Copy Markdown
Member Author

/retest

@damdo

damdo commented Jan 22, 2026

Copy link
Copy Markdown
Member Author

/hold

until we sort the main library

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 22, 2026
@damdo
damdo force-pushed the use-centralized-tls-profile branch from 9349d48 to 056043e Compare February 3, 2026 18:29
@damdo

damdo commented Feb 4, 2026

Copy link
Copy Markdown
Member Author

/retest

@damdo
damdo force-pushed the use-centralized-tls-profile branch 2 times, most recently from df73dbb to bc9c1ce Compare February 4, 2026 21:49
@damdo

damdo commented Feb 5, 2026

Copy link
Copy Markdown
Member Author

/test e2e-aws-operator

@damdo

damdo commented Feb 5, 2026

Copy link
Copy Markdown
Member Author

/test e2e-aws-capi-techpreview

@damdo

damdo commented Feb 5, 2026

Copy link
Copy Markdown
Member Author

/assign @RadekManak

@damdo

damdo commented Feb 6, 2026

Copy link
Copy Markdown
Member Author

/test e2e-aws-capi-techpreview

@damdo
damdo force-pushed the use-centralized-tls-profile branch 3 times, most recently from a05cbe0 to b556534 Compare February 8, 2026 16:37
@RadekManak

Copy link
Copy Markdown
Contributor

/lgtm
/hold cancel

@openshift-ci openshift-ci Bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Feb 9, 2026
@damdo
damdo force-pushed the use-centralized-tls-profile branch from b556534 to 74d6739 Compare February 14, 2026 09:08
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2026
@damdo
damdo force-pushed the use-centralized-tls-profile branch from 74d6739 to 8e3a98f Compare February 14, 2026 09:11
@damdo

damdo commented Feb 24, 2026

Copy link
Copy Markdown
Member Author

/test e2e-aws-capi-techpreview

1 similar comment
@damdo

damdo commented Feb 24, 2026

Copy link
Copy Markdown
Member Author

/test e2e-aws-capi-techpreview

@sunzhaohua2

Copy link
Copy Markdown

kubelet terminates kube-apiserver gracefully extended failed due to bug https://issues.redhat.com/browse/OCPBUGS-75200

@damdo

damdo commented Feb 25, 2026

Copy link
Copy Markdown
Member Author

Thanks @sunzhaohua2
I'm overriding it then

/override ci/prow/e2e-aws-capi-techpreview

@openshift-ci

openshift-ci Bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

@damdo: Overrode contexts on behalf of damdo: ci/prow/e2e-aws-capi-techpreview

Details

In response to this:

Thanks @sunzhaohua2
I'm overriding it then

/override ci/prow/e2e-aws-capi-techpreview

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci

openshift-ci Bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

@damdo: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot
openshift-merge-bot Bot merged commit a7b1baf into openshift:main Feb 25, 2026
9 checks passed
@damdo

damdo commented Feb 25, 2026

Copy link
Copy Markdown
Member Author

/test ?

Comment thread main.go
klog.Fatalf("Can't set client configs: %v", err)
}

k8sClient, err := client.New(managementConfig, client.Options{Scheme: scheme})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been workloadConfig

mergify Bot pushed a commit to ogx-ai/ogx-k8s-operator that referenced this pull request Jul 16, 2026
## Summary

- Integrate `controller-runtime-common/pkg/tls` for TLS profile support
- Fetch the cluster APIServer TLS profile at startup with 10s context timeout (OpenShift only, fail closed on unexpected errors)
- Handle transient API errors (ServiceUnavailable, Timeout, TooManyRequests) gracefully by falling back to Intermediate profile
- Apply profile-driven cipher suites and TLS version to webhook and metrics servers
- Set explicit `MinVersion=TLS12` fallback for non-OpenShift clusters via the Intermediate profile
- Register `SecurityProfileWatcher` to restart on profile changes
- Set NextProtos (ALPN) for HTTP/2 support on all TLS endpoints
- Add RBAC for `config.openshift.io/apiservers` (get/list/watch)
- Bump controller-runtime to v0.23.3 and adapt webhook to generic `admission.Validator[T]` interface

## Motivation

OCP 5.0 (GA October 2026) requires all components to honor the centralized TLS profile ([OCPSTRAT-2611](https://redhat.atlassian.net/browse/OCPSTRAT-2611)).

Reference: [openshift/cluster-machine-approver #286](openshift/cluster-machine-approver#286)

Supersedes #308 (closed due to shallow clone force-push issue).
Moved from opendatahub-io#128 per reviewer request.

## Test plan

- [x] `go build ./...` passes
- [x] `gofmt` clean
- [x] RBAC manifests regenerated and committed
- [ ] Existing unit tests pass
- [ ] CI green

Ref: [RHOAIENG-67674](https://redhat.atlassian.net/browse/RHOAIENG-67674)


Approved-by: VaishnaviHire

Approved-by: derekhiggins
VaishnaviHire pushed a commit to opendatahub-io/ogx-k8s-operator that referenced this pull request Jul 20, 2026
- Integrate `controller-runtime-common/pkg/tls` for TLS profile support
- Fetch the cluster APIServer TLS profile at startup with 10s context timeout (OpenShift only, fail closed on unexpected errors)
- Handle transient API errors (ServiceUnavailable, Timeout, TooManyRequests) gracefully by falling back to Intermediate profile
- Apply profile-driven cipher suites and TLS version to webhook and metrics servers
- Set explicit `MinVersion=TLS12` fallback for non-OpenShift clusters via the Intermediate profile
- Register `SecurityProfileWatcher` to restart on profile changes
- Set NextProtos (ALPN) for HTTP/2 support on all TLS endpoints
- Add RBAC for `config.openshift.io/apiservers` (get/list/watch)
- Bump controller-runtime to v0.23.3 and adapt webhook to generic `admission.Validator[T]` interface

OCP 5.0 (GA October 2026) requires all components to honor the centralized TLS profile ([OCPSTRAT-2611](https://redhat.atlassian.net/browse/OCPSTRAT-2611)).

Reference: [openshift/cluster-machine-approver ogx-ai#286](openshift/cluster-machine-approver#286)

Supersedes ogx-ai#308 (closed due to shallow clone force-push issue).
Moved from #128 per reviewer request.

- [x] `go build ./...` passes
- [x] `gofmt` clean
- [x] RBAC manifests regenerated and committed
- [ ] Existing unit tests pass
- [ ] CI green

Ref: [RHOAIENG-67674](https://redhat.atlassian.net/browse/RHOAIENG-67674)

Approved-by: VaishnaviHire

Approved-by: derekhiggins
(cherry picked from commit 70becbf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants