fix: refactor tls secrets to use new pattern #4599
Open
+930
−140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which problem does the PR fix?
Closes: #4240
Closes: #4048
Refactors global.elasticsearch.tls, global.opensearch.tls, and console.tls to use the new grouped secret object pattern for consistency with other components like global.license.secret and identity.firstUser.secret.
What's in this PR?
This PR migrates TLS secret configurations from the legacy flat structure (existingSecret) to the new grouped pattern with secret.existingSecret and secret.existingSecretKey, bringing consistency across the Helm chart's secret management. The implementation adds helper functions in _helpers.tpl to handle both patterns for backwards compatibility, updates Orchestration and Optimize templates to use these helpers instead of hardcoded "externaldb.jks" references, and refactors Console to use the new secret.existingSecret pattern. The inlineSecret field is intentionally omitted from TLS configurations because certificates must be properly signed and managed externally rather than defined inline in values files. Console retains certKeyFilename instead of using existingSecretKey because it mounts the entire certificate directory rather than individual files with subPath. All changes are validated by unit tests.
Docs PR: camunda/camunda-docs#7216
Checklist
Please make sure to follow our Contributing Guide.
Before opening the PR:
make go.update-golden-only.After opening the PR: