Skip to content

Commit 0e8ff5e

Browse files
committed
fix: add constraints for ES and Basic auth in noSecondaryStorage mode
1 parent 1e6d9ae commit 0e8ff5e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

charts/camunda-platform-8.8/templates/common/constraints.tpl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,23 @@ Multi-Tenancy requirements: https://docs.camunda.io/docs/self-managed/concepts/m
2929
Fail with a message if noSecondaryStorage is enabled but Elasticsearch or OpenSearch are still enabled.
3030
*/}}
3131
{{- if .Values.global.noSecondaryStorage }}
32-
{{- if or .Values.global.elasticsearch.enabled .Values.global.opensearch.enabled }}
32+
{{- if or .Values.global.elasticsearch.enabled .Values.global.opensearch.enabled .Values.elasticsearch.enabled }}
3333
{{- $errorMessage := printf "[camunda][error] %s %s %s %s"
3434
"When \"global.noSecondaryStorage\" is enabled, both Elasticsearch and OpenSearch must be disabled."
35-
"Please ensure that \"global.elasticsearch.enabled: false\" and \"global.opensearch.enabled: false\""
35+
"Please ensure that \"global.elasticsearch.enabled: false\", \"global.opensearch.enabled: false\", and \"elasticsearch.enabled: false\""
3636
"are set when using \"global.noSecondaryStorage: true\"."
3737
"Secondary storage components cannot be enabled when noSecondaryStorage is true."
3838
-}}
3939
{{ printf "\n%s" $errorMessage | trimSuffix "\n"| fail }}
4040
{{- end }}
41+
{{- if .Values.orchestration.security.authentication.method "basic" }}
42+
{{- $errorMessage := printf "[camunda][error] %s %s %s"
43+
"When \"global.noSecondaryStorage\" is enabled, basic authentication for Orchestration is not supported."
44+
"Please set \"orchestration.security.authentication.method\" to \"oidc\" and configure OIDC authentication"
45+
"when using \"global.noSecondaryStorage: true\"."
46+
-}}
47+
{{ printf "\n%s" $errorMessage | trimSuffix "\n"| fail }}
48+
{{- end }}
4149
{{- end }}
4250

4351
{{/*

0 commit comments

Comments
 (0)