-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support optional chart secrets auto-generation - camunda 8.3 (#2742
- Loading branch information
1 parent
910cd66
commit 653b31d
Showing
19 changed files
with
354 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
charts/camunda-platform-8.3/templates/camunda/secret-camunda.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{{- if .Values.global.secrets.autoGenerated }} | ||
# NOTE: | ||
# - This secret object is NOT managed with corresponding releases and NOR part of Helm deployment/upgrade! | ||
# It's generated once, and if it's deleted, you will lose the secrets. | ||
# - This file is only for auto-generated secrets within the chart; don't add secrets for external resources. | ||
# - The Camunda Helm chart "existingSecret" syntax will be changed in the Camunda 8.8 releases. | ||
# More details: https://github.com/camunda/camunda-platform-helm/issues/1898 | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.global.secrets.name }} | ||
labels: | ||
{{- include "camundaPlatform.labels" . | nindent 4 }} | ||
annotations: | ||
{{- include "common.tplvalues.merge" (dict | ||
"values" (list .Values.global.annotations .Values.global.secrets.annotations) | ||
"context" $) | nindent 4 }} | ||
type: Opaque | ||
data: | ||
{{- $identityAuth := dict | ||
"admin" (((.Values.global.identity.auth).admin).existingSecret).name | ||
"connectors" (.Values.global.identity.auth.connectors.existingSecret).name | ||
"console" (.Values.global.identity.auth.console.existingSecret).name | ||
"operate" (.Values.global.identity.auth.operate.existingSecret).name | ||
"optimize" (.Values.global.identity.auth.optimize.existingSecret).name | ||
"tasklist" (.Values.global.identity.auth.tasklist.existingSecret).name | ||
"zeebe" (.Values.global.identity.auth.zeebe.existingSecret).name | ||
}} | ||
{{- if or ($identityAuth.connectors) ($identityAuth.console) ($identityAuth.operate) | ||
($identityAuth.optimize) ($identityAuth.tasklist) ($identityAuth.zeebe) | ||
}} | ||
# Identity apps auth. | ||
{{- if $identityAuth.admin }} | ||
{{ .Values.global.identity.auth.admin.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- if $identityAuth.connectors }} | ||
{{ .Values.global.identity.auth.connectors.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- if $identityAuth.console }} | ||
{{ .Values.global.identity.auth.console.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- if $identityAuth.operate }} | ||
{{ .Values.global.identity.auth.operate.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- if $identityAuth.optimize }} | ||
{{ .Values.global.identity.auth.optimize.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- if $identityAuth.tasklist }} | ||
{{ .Values.global.identity.auth.tasklist.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- if $identityAuth.zeebe }} | ||
{{ .Values.global.identity.auth.zeebe.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- if .Values.identity.firstUser.existingSecret }} | ||
# Identity login. | ||
{{ .Values.identity.firstUser.existingSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
|
||
{{- if and .Values.identity.postgresql.enabled .Values.identity.postgresql.auth.existingSecret }} | ||
# Identity PostgreSQL. | ||
{{ .Values.identity.postgresql.auth.secretKeys.adminPasswordKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{ .Values.identity.postgresql.auth.secretKeys.userPasswordKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
|
||
{{- if .Values.identity.keycloak.auth.existingSecret }} | ||
# Identity Keycloak login. | ||
{{ .Values.identity.keycloak.auth.passwordSecretKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
|
||
{{- if .Values.identity.keycloak.postgresql.auth.existingSecret }} | ||
# Identity Keycloak PostgreSQL. | ||
{{ .Values.identity.keycloak.postgresql.auth.secretKeys.adminPasswordKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{ .Values.identity.keycloak.postgresql.auth.secretKeys.userPasswordKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
|
||
{{- if and .Values.postgresql.enabled .Values.postgresql.auth.existingSecret }} | ||
# WebModeler PostgreSQL. | ||
{{ .Values.postgresql.auth.secretKeys.adminPasswordKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{ .Values.postgresql.auth.secretKeys.userPasswordKey }}: "{{ randAlphaNum 16 | b64enc }}" | ||
{{- end }} | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.