LOG-8973: Enhance the log-file-metrics-exporter to be configurable with TLS Profile that includes curves#3239
LOG-8973: Enhance the log-file-metrics-exporter to be configurable with TLS Profile that includes curves#3239Clee2691 wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
@Clee2691: This pull request references LOG-8973 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.8.0" version, but no target version was set. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Clee2691 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 |
Review Summary by QodoWatch APIServer TLS profile changes to trigger LFME reconciliation
WalkthroughsDescription• Add APIServer watch to LFME controller for TLS profile changes • New IsClusterAPIServer and APIServerTLSProfileChangedPredicate helpers in TLS package • LFME resources are enqueued for reconciliation on TLS profile updates • Comprehensive tests for new TLS predicate and helper functions Diagramflowchart LR
A["APIServer Resource"] -- "TLS profile update" --> B["APIServerTLSProfileChangedPredicate"]
B -- "filters event" --> C["mapAPIServerToLogFileMetricExporters"]
C -- "lists & enqueues" --> D["LogFileMetricExporter resources"]
D -- "reconcile" --> E["DaemonSet updated with new TLS config"]
F["IsClusterAPIServer"] -- "validates name == cluster" --> B
File Changes1. internal/controller/logfilemetricsexporter/logfilemetricsexporter_controller.go
|
Code Review by Qodo
1. RBAC annotation drift risk
|
|
/hold |
|
/retest |
1 similar comment
|
/retest |
Add APIServer watch to the LFME controller so that when the cluster TLS security profile is updated, all LogFileMetricExporter resources are reconciled and the DaemonSet is updated with the new TLS settings, triggering a rolling restart of LFME pods. Added support for curves Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Added support for curves
|
@Clee2691: This pull request references LOG-8973 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.8.0" version, but no target version was set. 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. |
|
@Clee2691: 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. |
Summary
IsClusterAPIServerandAPIServerTLSProfileChangedPredicatehelpers to the TLS packageThis PR also depends on ViaQ/log-file-metric-exporter#43 so that the LFME actually honors the curves.
Fixes LOG-8973
Details
When the cluster TLS profile is updated (e.g.
oc patch apiserver cluster --type=merge -p '{"spec":{"tlsSecurityProfile":{"type":"Modern"}}}'), the LFME controller now:ReconcileDaemonsetfetches the current TLS profile and rebuilds the DaemonSet specCurves are implicitly supported through ECDHE cipher suites — Go's
crypto/tlshandles curve negotiation automatically.Test plan
go build ./...passesgo test ./internal/tls/...— new predicate/helper tests passgo test ./internal/metrics/logfilemetricexporter/...— regression tests passoc patch apiserver clusterwith a different TLS profile🤖 Generated with Claude Code