[WIP]OCPBUGS-76334: Remove library-go bump from TLS 1.3 test fixes#30894
[WIP]OCPBUGS-76334: Remove library-go bump from TLS 1.3 test fixes#30894wangke19 wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@wangke19: This pull request references Jira Issue OCPBUGS-76334, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Excluded labels (none allowed) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughUpdates the OpenShift library-go dependency version and redirects Kubernetes modules to OpenShift staging equivalents in go.mod. Refactors TLS utilities by extracting version and cipher suite management into a new tlsutil package, with test code updated to use the new utilities instead of direct crypto package references. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wangke19 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
b365eb9 to
478de61
Compare
|
/unhold Fixed gofmt issue - imports are now properly sorted. |
…faults-support" This reverts commit 5c29d3af01fbee9cc0c6f748a8d2f1aac5c80a8e. Reason for revert: PR openshift#30746 is causing test instability in 4.22 payloads. Multiple test failures have been observed in periodic-ci-openshift-release-master-nightly-4.22-e2e-aws-ovn-upgrade jobs as reported in #forum-testplatform Slack channel. Example failures: - https://prow.ci.openshift.org/view/gs/test-platform-results/logs/aggregated-aws-ovn-upgrade-4.21-to-4.22-ci-openshift-release-analysis-aggregator/2033742335904321536 - https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.22-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade/2033742330044878848 - https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.22-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade/2033742330229428224 - https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.22-upgrade-from-stable-4.21-e2e-aws-ovn-upgrade/2033742330355257344 The PR bundled test logic improvements with an unnecessary library-go dependency bump, which has introduced instability. A follow-up PR (openshift#30894) will reintroduce the test improvements without the dependency changes. This revert is needed to: 1. Restore test stability in 4.22 CI 2. Separate test logic from dependency management concerns 3. Allow proper evaluation of the test improvements in isolation Related: - Original PR: openshift#30746 - Replacement PR: openshift#30894 - JIRA: OCPBUGS-76334 - Slack: #forum-testplatform discussion on 2026-03-17
|
Scheduling required tests: |
|
@wangke19: This pull request references Jira Issue OCPBUGS-76334, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
@wangke19: The following tests 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. |
…-go dependency This commit re-adds the TLS 1.3 (Modern profile) test improvements from PR openshift#30746 but uses a local tlsutil package instead of depending on library-go/pkg/crypto. Changes from original PR openshift#30746: - Add support for testing Modern TLS profile (TLS 1.3 only) - Add FIPS mode detection for ChaCha20-Poly1305 cipher handling - Add ECDSA cipher suite handling (expect failure with RSA keys) - Improve test logging and error messages Changes from original implementation: - Created test/extended/apiserver/tlsutil/ package with crypto helpers - Replaced library-go/pkg/crypto dependency with local tlsutil - No dependency on library-go version bump The test now properly validates both Intermediate (TLS 1.2+) and Modern (TLS 1.3 only) TLS profiles, with appropriate handling for FIPS mode restrictions and RSA vs ECDSA cipher compatibility.
478de61 to
36974ff
Compare
|
Rebased on latest upstream/main which now includes PR #30895 (the revert of #30746). Changes in this rebase:
The PR is now a clean addition of test improvements on top of the reverted state, with no dependency changes. |
Summary
This PR re-adds the TLS 1.3 test improvements from PR #30746 (which was reverted in #30895) but uses a local
tlsutilpackage instead of depending on library-go/pkg/crypto. This provides the test enhancements without the dependency issues that caused the original revert.Background
PR #30746 introduced valuable TLS 1.3 (Modern profile) test support but bundled it with a library-go dependency bump that caused test instability in 4.22 payloads. PR #30895 reverted #30746 to restore stability. This PR reintroduces only the test improvements without the problematic dependency changes.
What This PR Does
1. Re-adds TLS 1.3 test improvements from #30746
2. Creates local crypto helper package (
test/extended/apiserver/tlsutil/)Extracted six simple utility functions into a local package:
DefaultTLSVersion()- Returnstls.VersionTLS12ValidTLSVersions()- Returns list of TLS version namesTLSVersionOrDie(name)- Converts version name to uint16DefaultCiphers()- Returns list of default cipher suitesValidCipherSuites()- Returns list of cipher suite namesCipherSuite(name)- Converts cipher suite name to uint16These are all simple lookup/conversion functions with no transitive dependencies beyond
crypto/tls.3. No library-go dependency bump
Benefits
✅ Restores TLS 1.3 test coverage - Modern profile validation is back
✅ Removes dependency coupling - Test logic no longer tied to library-go versions
✅ Avoids supply chain risk - No dependency updates in test improvements
✅ Maintains stability - Based on #30895 revert, adds only test logic
✅ Better separation of concerns - Test improvements isolated from dependency management
Testing
go build ./test/extended/apiserver/...passesgofmtformatting verifiedRelated
Commit Structure
Single commit that:
Note: This PR is now based on upstream/main which includes the revert (#30895), so the library-go dependency revert is no longer needed as a separate commit.