Skip to content

Conversation

@majiayu000
Copy link

Fixes #6976

Changes

  • Add TLS configuration options (tls, cert, key, keyPassword, ca) to MongoDB scaler metadata
  • Add validation to ensure cert/key are provided together when using client certificates
  • Add comprehensive test cases for TLS configuration scenarios

Add TLS configuration options to MongoDB scaler, allowing users to
specify CA certificate, client certificate, client key, and key password
for secure connections, similar to other scalers like Kafka and Cassandra.

Fixes: kedacore#6976
Signed-off-by: majiayu000 <[email protected]>
@majiayu000 majiayu000 requested a review from a team as a code owner January 1, 2026 15:06
@github-actions
Copy link

github-actions bot commented Jan 1, 2026

Thank you for your contribution! 🙏

Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected.

While you are waiting, make sure to:

  • Add an entry in our changelog in alphabetical order and link related issue
  • Update the documentation, if needed
  • Add unit & e2e tests for your changes
  • GitHub checks are passing
  • Is the DCO check failing? Here is how you can fix DCO issues

Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient.

Learn more about our contribution guide.

@keda-automation keda-automation requested a review from a team January 1, 2026 15:06
@snyk-io
Copy link

snyk-io bot commented Jan 1, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

LGTM! Could you open a PR to docs repo adding these fields?

@JorTurFer JorTurFer mentioned this pull request Jan 11, 2026
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow MongoDB scaler to use tlsCAFile and tlsCertificateKeyFile

2 participants