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

fix: unauthenticated external elasticsearch no longer forces password… #1990

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

jessesimpson36
Copy link
Contributor

@jessesimpson36 jessesimpson36 commented Jun 13, 2024

…s to be configured

Which problem does the PR fix?

#1987

Currently external elasticsearch servers that do not require authentication, results in a camunda helm installation with CreateContainerConfigError due our helm chart thinking that credentials exist, when they do not.

What's in this PR?

For each deployment or statefulset, if there is no password defined for elasticsearch, then the env vars supplying those passwords will no longer be rendered.

Checklist

Please make sure to follow our Contributing Guide.

Before opening the PR:

  • In the repo's root dir, run make go.update-golden-only.
  • There is no other open pull request for the same update/change.
  • Tests for charts are added (if needed).
  • In-repo documentation are updated (if needed).

After opening the PR:

  • Did you sign our CLA (Contributor License Agreement)? It will show once you open the PR.
  • Did all checks/tests pass in the PR?

@jessesimpson36
Copy link
Contributor Author

This change doesn't work, as it is. turns out our authExistingSecret function never returns an empty string

@jessesimpson36
Copy link
Contributor Author

I found a solution to this one by writing a function that is effectively boolean, just leveraging whether a string is empty or nonempty.

@jessesimpson36 jessesimpson36 marked this pull request as ready for review June 14, 2024 18:45
@jessesimpson36 jessesimpson36 requested a review from a team June 14, 2024 19:15
@jessesimpson36 jessesimpson36 merged commit fc79bdb into main Jun 17, 2024
6 checks passed
@jessesimpson36 jessesimpson36 deleted the 1987-unauthenticated-external-elasticsearch branch June 17, 2024 17:18
@aabouzaid aabouzaid added the version:10.2.0 Label that represents issues released on version 10.2.0 label Jul 1, 2024
aabouzaid pushed a commit that referenced this pull request Jul 13, 2024
#1990)

* fix: unauthenticated external elasticsearch no longer forces passwords to be configured

* fix: fixup boolean expression

* test: adds operate tests for elasticsearch auth disabled
This was referenced Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/fix version:10.2.0 Label that represents issues released on version 10.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants