Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/openfga/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ spec:
{{- if .Values.authn.preshared.keys }}
- name: OPENFGA_AUTHN_PRESHARED_KEYS
value: "{{ join "," .Values.authn.preshared.keys }}"
{{- else if .Values.authn.preshared.keysSecret }}
- name: OPENFGA_AUTHN_PRESHARED_KEYS
valueFrom:
secretKeyRef:
name: "{{ .Values.authn.preshared.keysSecret }}"
key: "presharedKeys"
{{- end }}

{{- if .Values.authn.oidc.audience }}
Expand Down
7 changes: 7 additions & 0 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,13 @@
"type": "string",
"minItems": 1
}
},
"keysSecret": {
"type": [
"string",
"null"
],
"description": "the secret name where to get the preshared keys, it expects a key named 'presharedKeys' to exist in the secret containing a comma-separated list of keys"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ http:
authn:
method:
preshared:
# Specify a list of preshared keys directly:
keys: []
# Or reference a secret that contains a list of preshared keys:
# Secret should have a "presharedKeys" key
# keysSecret: "my-preshared-keys-secret"
oidc:
audience:
issuer:
Expand Down