Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Fix KEDA scaling with SASL auth for brokers #4253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Feb 5, 2025

TriggerAuthentication is misconfigured when Broker is configured to connect to Kafka with SASL since it was using only the legacy secret format.

Fixes #

Proposed Changes

  • Fix KEDA scaling with SASL auth for brokers
  • Add e2e tests

Release Note

Fix KEDA scaling with SASL auth for brokers.

Docs

TriggerAuthentication is misconfigured when Broker is configured
to connect to Kafka with SASL since it was using only the legacy
secret format.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/control-plane area/test labels Feb 5, 2025
Copy link

knative-prow bot commented Feb 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 5, 2025
@knative-prow knative-prow bot requested review from aliok and creydr February 5, 2025 09:50
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 45.35%. Comparing base (93b8dde) to head (a4e3d90).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
control-plane/pkg/autoscaler/keda/keda.go 0.00% 21 Missing ⚠️
...security/secrets_provider_legacy_channel_secret.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4253      +/-   ##
==========================================
+ Coverage   45.32%   45.35%   +0.02%     
==========================================
  Files         290      290              
  Lines       19869    19863       -6     
==========================================
+ Hits         9005     9008       +3     
+ Misses      10151    10143       -8     
+ Partials      713      712       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

knative-prow bot commented Feb 5, 2025

@pierDipi: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
upgrade-tests_eventing-kafka-broker_main a4e3d90 link true /test upgrade-tests
reconciler-tests-keda_eventing-kafka-broker_main a4e3d90 link true /test reconciler-tests-keda
reconciler-tests-namespaced-broker_eventing-kafka-broker_main a4e3d90 link true /test reconciler-tests-namespaced-broker

Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

virtualSecret.Data[SaslMechanismKey] = v
}
if v, ok := virtualSecret.Data["saslType"]; ok {
if v, ok := virtualSecret.Data[SaslTypeLegacy]; ok {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when can we remove this legacy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane area/test do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants