Skip to content

fix(influxdb): make authToken optional for unauthenticated instances#7678

Merged
rickbrouwer merged 1 commit into
kedacore:mainfrom
alliasgher:fix/influxdb-optional-auth-token
Apr 26, 2026
Merged

fix(influxdb): make authToken optional for unauthenticated instances#7678
rickbrouwer merged 1 commit into
kedacore:mainfrom
alliasgher:fix/influxdb-optional-auth-token

Conversation

@alliasgher

@alliasgher alliasgher commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

The InfluxDB scaler's Validate() rejects an empty authToken even though the documentation marks it as optional, and the struct already tags it as optional. This breaks use against InfluxDB 3 Core (OSS), which runs without auth by default.

Drop the unconditional authToken is required check and update the matching test case (#8) so empty tokens are accepted for unauthenticated instances.

Checklist

  • I have verified that my change is according to the deprecations & breaking changes policy
  • Tests have been added (if applicable)
  • Ensure make generate-scalers-schema has been run to update any outdated generated files
  • Changelog has been updated and is aligned with our changelog requirements, only when the change impacts end users
  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #7616

The docs mark authToken as Optional, but Validate() rejected empty
tokens unconditionally. InfluxDB 3 Core (OSS) runs without auth by
default, and the struct already tags authToken as optional, so the
hard-required check was inconsistent.

Remove the check and update the test case that asserted empty-token
was an error.

Fixes kedacore#7616

Signed-off-by: Ali <[email protected]>
@alliasgher alliasgher requested a review from a team as a code owner April 22, 2026 22:07
@keda-automation keda-automation requested a review from a team April 22, 2026 22:07
@github-actions

Copy link
Copy Markdown

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.

@snyk-io

snyk-io Bot commented Apr 22, 2026

Copy link
Copy Markdown

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

Status Scan Engine 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.

@rickbrouwer

rickbrouwer commented Apr 23, 2026

Copy link
Copy Markdown
Member

/run-e2e influxdb
Update: You can check the progress here

@rickbrouwer rickbrouwer added the Awaiting/2nd-approval This PR needs one more approval review label Apr 25, 2026
@rickbrouwer rickbrouwer removed the Awaiting/2nd-approval This PR needs one more approval review label Apr 26, 2026
@rickbrouwer rickbrouwer merged commit 97ebb77 into kedacore:main Apr 26, 2026
27 checks passed
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.

InfluxDB scaler: authToken should be optional for unauthenticated instances

3 participants