CNTRLPLANE-3423: feat: inject centralized TLS into console operand#16804
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@ingvagabund: This pull request references CNTRLPLANE-3423 which is a valid jira issue. DetailsIn 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (11)
📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughServing configuration now accepts minimum TLS version and cipher suite settings. The bridge passes these values to the listener, which validates and applies them to ChangesTLS serving configuration
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)go.modTraceback (most recent call last): Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
go.mod (1)
18-19: 🔒 Security & Privacy | 🔵 TrivialVerify dependency integrity and supply-chain checks.
These are exact pseudo-versions, but verify matching
go.sumentries, OSV/govulncheck results, and the existing SBOM, provenance, and signing checks before merging. As per path instructions, dependency updates must be pin-checked, CVE-checked with OSV, and covered by provenance/signing controls.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@go.mod` around lines 18 - 19, Verify the pinned openshift/client-go and openshift/library-go pseudo-versions against matching go.sum entries, then run the required OSV/govulncheck vulnerability checks and confirm the existing SBOM, provenance, signing, and pin-validation controls cover both dependencies before merging.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmd/bridge/main.go`:
- Around line 834-843: Update the cipher-suite validation in the loop that calls
oscrypto.CipherSuite before assigning tlsConfig.CipherSuites to reject TLS
1.3-only cipher names, and reject any mixed list containing unsupported TLS 1.3
values. Preserve acceptance of cipher suites applicable to TLS 1.0–1.2 and
return a clear validation error identifying the unsupported name.
---
Nitpick comments:
In `@go.mod`:
- Around line 18-19: Verify the pinned openshift/client-go and
openshift/library-go pseudo-versions against matching go.sum entries, then run
the required OSV/govulncheck vulnerability checks and confirm the existing SBOM,
provenance, signing, and pin-validation controls cover both dependencies before
merging.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 839cc409-0815-4e80-b4d2-9abea68b6822
⛔ Files ignored due to path filters (11)
go.sumis excluded by!**/*.sumvendor/github.com/openshift/client-go/oauth/applyconfigurations/internal/internal.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/clusterrolescoperestriction.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/oauthaccesstoken.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/oauthauthorizetoken.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/oauthclient.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/oauthclientauthorization.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/scoperestriction.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/client-go/oauth/applyconfigurations/oauth/v1/useroauthaccesstoken.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/library-go/pkg/crypto/crypto.gois excluded by!**/vendor/**,!vendor/**vendor/modules.txtis excluded by!**/vendor/**,!vendor/**
📒 Files selected for processing (4)
cmd/bridge/main.gogo.modpkg/serverconfig/config.gopkg/serverconfig/types.go
💤 Files with no reviewable changes (1)
- pkg/serverconfig/config.go
2b94ecf to
a99bf5e
Compare
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund, jhadvig The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/verified locally |
|
@ingvagabund: The DetailsIn 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. |
|
/retest-required |
|
/label docs-approved |
|
/label px-approved |
|
/verified by @ingvagabund |
|
@ingvagabund: This PR has been marked as verified by DetailsIn 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. |
|
@ingvagabund: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
f929813
into
openshift:main
Operator part implemented in openshift/console-operator#1167.
This covers the operand side as well.
Summary by CodeRabbit
New Features
Bug Fixes
minTLSVersion,cipherSuites) are no longer incorrectly treated as unsupported fields.