Skip to content

Commit

Permalink
fix keycloak secrets drift (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps authored Dec 4, 2024
1 parent d43b8fd commit 6272cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/system/keycloak/templates/sts.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
{{- $host := index $cozyConfig.data "root-host" }}

{{- $existingPassword := lookup "v1" "Secret" "cozy-keycloak" "{{ .Release.Name }}-credentials" }}
{{- $existingPassword := lookup "v1" "Secret" "cozy-keycloak" (printf "%s-credentials" .Release.Name) }}
{{- $password := randAlphaNum 16 -}}
{{- if $existingPassword }}
{{- $password = index $existingPassword.data "password" | b64dec }}
Expand Down

0 comments on commit 6272cd7

Please sign in to comment.