Repository navigation
(WIP) OCPBUGS-141912 Remove dead TLS propagation code from controller - #6785
isabella-janssen wants to merge 1 commit into
Conversation
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. WalkthroughThe metrics listener no longer accepts TLS settings or configures a TLS server. The machine-config controller, machine-config daemon, and machine OS builder call it with the reduced argument list. Their deployment manifests no longer pass the removed TLS settings. ChangesMetrics listener configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Suggested reviewers: Merge Risk:
|
|
/test tls-pqc-readiness |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
4bcfae6 to
c3f8dbe
Compare
|
/test tls-pqc-readiness |
|
Chai risk assessment for Tier: Moderate Reason: The PR removes the --tls-cipher-suites, --tls-min-version and --tls-curve-preferences flags from the machine-config-controller, machine-config-daemon and machine-os-builder binaries. It also drops those args from the MCC Deployment and MCD DaemonSet container specs and simplifies StartMetricsListener. The metrics endpoint should behave the same. The server already ran plain ListenAndServe, which never applied its TLSConfig. On main, the kube-rbac-proxy sidecars in both manifests use --upstream=http://127.0.0.1:8797 and keep their own TLS-profile flags, so TLS on the exposed port 9001 is unchanged. Clearing TLSNextProto does nothing for plain HTTP. This is still not Low. Changing the pod templates restarts the MCC once and rolls the MCD DaemonSet on every node; a restart only, with no drain or reboot. The new binaries also reject the removed flags. If anything still passes them, the MCD would crashloop on every node. A search of main found the flags only in the manifests this PR edits; the machine-config-server and criometricsproxy uses are separate flag sets. The tls-min-version check in the extended security test reads every container's args, so the rbac-proxy sidecar still satisfies it. No rendered MachineConfig templates, API types or CRDs change. That makes this a contained, one-time, non-disruptive restart of controllers and daemons rather than a node-disruptive change. The repository has no AGENTS.md on main. Change it with /label chai-risk-assessment/moderate |
|
@isabella-janssen: 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. |
Closes: OCPBUGS-141912
- What I did
This removes the dead TLS propagation code from
StartMetricsListenerin the controller. Because we are usingListenAndServeinstead ofListenAndServeTLS, the TLS config was never used. See MCO-2644 for details on why the decision was to remove the code path instead of rework the functionality to allow for the use ofListenAndServeTLS.- How to verify it
The existing test suites should continue passing to ensure no functionality was unintentionally broken. The
tls-pqc-readinesstest, specifically, should continue passing to ensure we are still compliant with the TLS expectations.- Description for the changelog
OCPBUGS-141912 Remove dead TLS propagation code from controller
Summary by CodeRabbit
Summary