Skip to content

Commit 431b74d

Browse files
fix: define one security section in orchestration configmap (#4042)
1 parent 1f5bcb1 commit 431b74d

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

charts/camunda-platform-8.8/templates/orchestration/configmap.yaml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,9 @@ data:
2727
multipart:
2828
max-file-size: {{ .Values.global.config.requestBodySize | quote }}
2929
max-request-size: {{ .Values.global.config.requestBodySize | quote }}
30-
{{- if eq .Values.orchestration.security.authentication.method "oidc" }}
30+
{{- if or (eq .Values.orchestration.security.authentication.method "oidc") (eq .Values.orchestration.security.authentication.method "basic") }}
3131
profiles:
3232
active: "identity,tasklist,operate,broker,consolidated-auth"
33-
camunda.security:
34-
authentication:
35-
oidc:
36-
username-claim: {{ .Values.orchestration.security.authentication.oidc.usernameClaim | quote }}
37-
groups-claim: {{ .Values.orchestration.security.authentication.oidc.groupsClaim | quote }}
38-
client-id: {{ include "orchestration.authClientId" . | quote }}
39-
client-secret: ${VALUES_CAMUNDA_ORCHESTRATION_CLIENT_SECRET:}
40-
audiences:
41-
- {{ include "orchestration.authClientId" . | quote }}
42-
- {{ .Values.global.identity.auth.orchestration.audience | quote }}
43-
- {{ .Values.global.identity.auth.webModeler.clientApiAudience | quote }}
44-
- {{ .Values.global.identity.auth.webModeler.publicApiAudience | quote }}
45-
{{- $redirectURIDefault := printf "http://%s:8080" (include "orchestration.fullname" .) }}
46-
{{/*
47-
TODO: Add "camundaPlatform.authIssuerBackendUrl" when "backend-url" config is supported by the Orchestration Identity.
48-
For more details: https://github.com/camunda/camunda-platform-helm/issues/3952
49-
*/}}
50-
issuer-uri: {{ (include "camundaPlatform.authIssuerUrl" .) | quote }}
51-
redirect-uri: "{{ tpl .Values.global.identity.auth.orchestration.redirectUrl $ | default $redirectURIDefault }}/sso-callback"
52-
{{- else if eq .Values.orchestration.security.authentication.method "basic" }}
53-
profiles:
54-
active: "identity,operate,tasklist,broker,consolidated-auth"
5533
{{- else }}
5634
profiles:
5735
active: "operate,tasklist,broker,auth"
@@ -216,6 +194,25 @@ data:
216194

217195
security:
218196
authentication:
197+
{{- if eq .Values.orchestration.security.authentication.method "oidc" }}
198+
oidc:
199+
username-claim: {{ .Values.orchestration.security.authentication.oidc.usernameClaim | quote }}
200+
groups-claim: {{ .Values.orchestration.security.authentication.oidc.groupsClaim | quote }}
201+
client-id: {{ include "orchestration.authClientId" . | quote }}
202+
client-secret: ${VALUES_CAMUNDA_ORCHESTRATION_CLIENT_SECRET:}
203+
audiences:
204+
- {{ include "orchestration.authClientId" . | quote }}
205+
- {{ .Values.global.identity.auth.orchestration.audience | quote }}
206+
- {{ .Values.global.identity.auth.webModeler.clientApiAudience | quote }}
207+
- {{ .Values.global.identity.auth.webModeler.publicApiAudience | quote }}
208+
{{- $redirectURIDefault := printf "http://%s:8080" (include "orchestration.fullname" .) }}
209+
{{/*
210+
TODO: Add "camundaPlatform.authIssuerBackendUrl" when "backend-url" config is supported by the Orchestration Identity.
211+
For more details: https://github.com/camunda/camunda-platform-helm/issues/3952
212+
*/}}
213+
issuer-uri: {{ (include "camundaPlatform.authIssuerUrl" .) | quote }}
214+
redirect-uri: "{{ tpl .Values.global.identity.auth.orchestration.redirectUrl $ | default $redirectURIDefault }}/sso-callback"
215+
{{- end }}
219216
method: {{ .Values.orchestration.security.authentication.method | quote }}
220217
unprotectedApi: {{ .Values.orchestration.security.authentication.unprotectedApi }}
221218
authorizations:

charts/camunda-platform-8.8/test/unit/orchestration/golden/configmap-authorizations.golden.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
max-file-size: "10MB"
3131
max-request-size: "10MB"
3232
profiles:
33-
active: "identity,operate,tasklist,broker,consolidated-auth"
33+
active: "identity,tasklist,operate,broker,consolidated-auth"
3434
3535
management:
3636
server:

charts/camunda-platform-8.8/test/unit/orchestration/golden/configmap-log4j2.golden.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
max-file-size: "10MB"
3131
max-request-size: "10MB"
3232
profiles:
33-
active: "identity,operate,tasklist,broker,consolidated-auth"
33+
active: "identity,tasklist,operate,broker,consolidated-auth"
3434
3535
management:
3636
server:

charts/camunda-platform-8.8/test/unit/orchestration/golden/configmap.golden.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
max-file-size: "10MB"
3131
max-request-size: "10MB"
3232
profiles:
33-
active: "identity,operate,tasklist,broker,consolidated-auth"
33+
active: "identity,tasklist,operate,broker,consolidated-auth"
3434
3535
management:
3636
server:

0 commit comments

Comments
 (0)