Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #163 from neicnordic/Add_resignJwt_option_to_auth
Browse files Browse the repository at this point in the history
add resignJwt option to auth
  • Loading branch information
kostas-kou authored Jun 12, 2023
2 parents 5a06089 + c41a63e commit 71e4bf3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sda-svc/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: sda-svc
version: "0.18.8"
version: "0.18.9"
kubeVersion: ">= 1.19.0-0"
description: Components for Sensitive Data Archive (SDA) installation
home: https://neic-sda.readthedocs.io
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Parameter | Description | Default
`global.auth.jwtAlg` | Key type to sign the JWT, available options are RS265 & ES256, Must match the key type |`"ES256"`
`global.auth.jwtKey` | Private key used to sign the JWT. |`""`
`global.auth.jwtPub` | Public key ues to verify the JWT. |`""`
`global.auth.resignJWT` | Resign the LS-AAI JWTs. |`true`
`global.auth.useTLS` | Run a TLS secured server. |`true`
`global.auth.corsOrigins` | Domain name allowed for cross-domain requests. |`""`
`global.auth.corsMethods` | Allowed cross-domain request methods. |`""`
Expand Down
2 changes: 2 additions & 0 deletions charts/sda-svc/templates/auth-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ spec:
value: "{{ template "jwtPath" . }}/{{ .Values.global.auth.jwtKey }}"
- name: JWTSIGNATUREALG
value: {{ .Values.global.auth.jwtAlg }}
- name: RESIGNJWT
value: {{ .Values.global.auth.resignJwt | quote }}
{{- if .Values.global.tls.enabled}}
- name: SERVER_CERT
value: {{ template "tlsPath" . }}/tls.crt
Expand Down
2 changes: 2 additions & 0 deletions charts/sda-svc/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ global:
jwtKey:
# @param jwtPub, name of the public signing key
jwtPub:
# @param resignJwt, if true (or empty) the jwt will be resigned with the jwtKey
resignJwt: true
# @param corsOrigins, domain name of allowed origin for cross-domain requests
corsOrigins: ""
# @param corsMethods, allowed methods for cross-domain requests
Expand Down

0 comments on commit 71e4bf3

Please sign in to comment.