RHOAIENG-61067: integrate with cluster TLS security profile #214
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 336 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #214"
general
weight: 0.35
kryanbeane
Why are these changes needed?
OCP 5.0 (GA October 2026) requires all components to honor the centralized TLS
profile (OCPSTRAT-2611).
This adds TLS profile integration to kuberay-operator so the metrics server
respects the cluster-wide MinVersion, CipherSuites, and ALPN settings.
On non-OpenShift clusters or when the API is temporarily unavailable (transient
errors: ServiceUnavailable, Timeout, TooManyRequests), the operator falls back
to hardened Intermediate defaults (TLS 1.2, modern cipher suite, h2/http1.1 ALPN).
Replaces #200 (closed due to broken branch ancestry from shallow clone).
Changes
ray-operator/pkg/tls/tls.go: reusable TLS profile resolution from theapiservers.config.openshift.io/clusterCRray-operator/pkg/tls/tls_test.go: table-driven tests for all profile types(nil, Intermediate, Modern, Old, Custom with valid/invalid ciphers)
ray-operator/main.go: 10-second bootstrap context, fetch TLS profile beforemanager creation, apply TLSOpts to metrics server
ray-operator/controllers/ray/authentication_controller.go: kubebuilder RBACmarker for apiservers
ray-operator/config/rbac/role.yaml: apiservers permission addedray-operator/Dockerfile: COPY pkg/tlshelm-chart/kuberay-operator/templates/_helpers.tpl: helm RBAC alignmentReference: openshift/cluster-machine-approver #286
Related issue number
RHOAIENG-61067
Checks
- [x] Unit tests
- [ ] Manual tests
- [ ] This PR is not tested :(
[OCPSTRAT-2611]: https://redhat.atlassian.net/browse/OCPSTRAT-2611?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[RHOAIENG-61067]: https://redhat.atlassian.net/browse/RHOAIENG-61067?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Apply the cluster’s OpenShift TLS security profile to the operator’s metrics server when available.
Added OpenShift-specific permissions to read API server TLS profile information.
Bug Fixes
Improved TLS configuration resilience with hardened defaults when TLS profile resolution fails or is unavailable.
Tests
* Added unit tests for TLS security profile parsing, including custom cipher mapping and unsupported-cipher behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->