ACM-37203: Add support for configurable TLS profiles #372
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 498 lines diff across 6 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.372
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #372"
general
weight: 0.35
ibihim
Summary
This PR adds command-line flags to configure TLS minimum version and cipher suites, allowing oauth-proxy to honor cluster-wide TLS security profiles from the OpenShift API server.
Fixes #352
Jira https://redhat.atlassian.net/browse/ACM-37203
Changes
--tls-min-versionflag to configure minimum TLS version--tls-cipher-suitesflag to configure allowed cipher suitesk8s.io/component-base/cli/flagpackage for TLS parsing (same as kube-rbac-proxy, kube-apiserver, and other core components)SecureTLSConfig()Motivation
Currently, oauth-proxy uses hardcoded TLS settings from
library-go/pkg/crypto.SecureTLSConfig(). While these defaults are secure (TLS 1.2+, strong ciphers), they cannot be dynamically configured to match cluster-wide TLS security profiles.This prevents components using oauth-proxy from achieving TLS profile compliance when the cluster is configured with Modern or Custom TLS profiles.
Impact
This change enables operators like multicluster-observability-operator to dynamically inject cluster TLS profile settings, achieving compliance with OpenShift TLS security profiles (Intermediate, Modern, Custom).
Example usage:
Implementation Details
This implementation follows the same pattern as MCO's rbac-query-proxy (stolostron/multicluster-observability-operator#2540):
Operators can use the existing
SetTLSSecurityConfiguration()utility to inject cluster TLS settings:Testing
--helpoutputRelated Work
Checklist
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added configurable minimum TLS version and cipher suites for HTTPS.
Added command-line and configuration options for TLS settings.
HTTPS now uses secure TLS defaults and supports HTTP/1.1.
Bug Fixes
Invalid TLS versions and cipher suites are rejected during configuration validation.
Configuration warnings are shown when TLS settings are used without HTTPS enabled.
Tests
* Added coverage for default and custom TLS configuration values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->