Skip to content

Commit

Permalink
feat: switch secret generator to base64url
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Jun 25, 2024
1 parent 8ffde44 commit c36e7db
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/secret-keycloak-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
{{- if .Values.operator.secretgenerator.enabled }}
{{- if .Values.operator.keycloak.client.secret.generator.enabled }}
secret-generator.v1.mittwald.de/autogenerate: secret
secret-generator.v1.mittwald.de/encoding: {{ .Values.operator.keycloak.client.secret.generator.encoding }}
{{- end }}
{{- end }}
labels:
Expand Down
13 changes: 13 additions & 0 deletions tests/oidc-client-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# global:
# oidc:
# client:
# url: "http://google.sk"
# oidc:
# client:
# url: "http://google.com"
operator:
secretgenerator:
enabled: true
keycloak:
client:
enabled: true
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ operator:
generator:
# enabled or disable secret generator annotation for kc client resource
enabled: true
# secret generator encoding base64 | base64url | base32 | hex
encoding: base64url

# definition
spec:
Expand Down

0 comments on commit c36e7db

Please sign in to comment.