Skip to content

Commit 02cd960

Browse files
weltekialexellis
authored andcommitted
Add paremeter for signing key secret used by dashboard
Allows users to select the secret with the signing keys or leave blank to have the keys generated automatically by the dashboard. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent f7e65e9 commit 02cd960

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

chart/openfaas/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ yaml) |
546546
| `dashboard.publicURL` | URL used to expose the dashboard. Needs to be a fully qualified domain name (FQDN) | `https://dashboard.example.com` |
547547
| `dashboard.replicas` | Replicas of the dashboard | `1` |
548548
| `dashboard.resources` | Resource limits and requests for the dashboard pods | See [values.yaml](./values.yaml) |
549+
| `dashboard.signingKeySecret` | Name of signing key secret for sessions. Can be left blank for development, see https://docs.openfaas.com/openfaas-pro/dashboard/ for production and staging. | `""` |
549550

550551
### OIDC / SSO (OpenFaaS Pro)
551552

chart/openfaas/templates/dashboard-dep.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ spec:
3232
- name: license
3333
secret:
3434
secretName: openfaas-license
35+
{{- if .Values.dashboard.signingKeySecret }}
3536
- name: dashboard-jwt
3637
secret:
37-
secretName: dashboard-jwt
38+
secretName: {{ .Values.dashboard.signingKeySecret }}
39+
{{- end }}
3840
containers:
3941
- name: dashboard
4042
resources:
@@ -79,13 +81,14 @@ spec:
7981
readOnly: true
8082
mountPath: "/var/secrets/gateway"
8183
{{- end }}
82-
8384
- name: license
8485
readOnly: true
8586
mountPath: "/var/secrets/license"
87+
{{- if .Values.dashboard.signingKeySecret }}
8688
- name: dashboard-jwt
8789
readOnly: true
8890
mountPath: "/var/secrets/dashboard-jwt"
91+
{{- end }}
8992

9093
{{- with .Values.nodeSelector }}
9194
nodeSelector:

chart/openfaas/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ autoscaler:
4949
## To use with port-forwarding, set publicURL to
5050
## http://127.0.0.1
5151
dashboard:
52-
image: ghcr.io/openfaasltd/openfaas-dashboard:0.1.1
52+
image: ghcr.io/openfaasltd/openfaas-dashboard:0.2.0
5353
publicURL: https://dashboard.example.com
54+
# Name of signing key secret for sessions.
55+
# Leave blank for development, see https://docs.openfaas.com/openfaas-pro/dashboard/ for production and staging.
56+
signingKeySecret: ""
5457
replicas: 1
5558
enabled: false
5659
resources:

0 commit comments

Comments
 (0)