Skip to content

Commit 7b68f4f

Browse files
authored
[BACK-3756] Add JWKS configuration to Abbott chart (#320)
- Add JWKS configuration to abbott chart - Expose Abbott JWKS for both auth and data services - https://tidepool.atlassian.net/browse/BACK-3756
1 parent cdc8035 commit 7b68f4f

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

charts/tidepool/charts/abbott/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A Helm chart for Kubernetes
1414
| configmap.redirectURL | string | `""` | OAuth2 redirect URL |
1515
| configmap.tokenURL | string | `""` | OAuth2 token URL |
1616
| configmap.authorizeURL | string | `""` | OAuth2 authorization URL |
17+
| configmap.jwksURL | string | `""` | JWKS URL |
1718
| configmap.clientURL | string | `""` | client URL |
1819
| configmap.scopes | string | `""` | OAuth2 scopes |
1920
| configmap.partnerURL | string | `""` | partner URL |

charts/tidepool/charts/abbott/templates/0-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ data:
1414
{{ end }}
1515
TokenURL: {{ .Values.configmap.tokenURL | default "" }}
1616
AuthorizeURL: {{ .Values.configmap.authorizeURL | default "" }}
17+
JWKSURL: {{ .Values.configmap.jwksURL | default "" }}
1718
ClientURL: {{ .Values.configmap.clientURL | default "" }}
1819
Scopes: {{ .Values.configmap.scopes | default "" }}
1920
PartnerURL: {{ .Values.configmap.partnerURL | default "" }}

charts/tidepool/charts/abbott/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ configmap:
33
redirectURL: ""
44
tokenURL: ""
55
authorizeURL: ""
6+
jwksURL: ""
67
clientURL: ""
78
scopes: ""
89
partnerURL: ""

charts/tidepool/charts/auth/templates/1-deployment.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
name: auth
99
namespace: {{.Release.Namespace}}
1010
annotations:
11-
secret.reloader.stakater.com/reload: "server,{{ .Values.mongo.secretName }},abbott,dexcom,auth,twiist"
11+
secret.reloader.stakater.com/reload: "server,{{ .Values.mongo.secretName }},abbott,dexcom,twiist,auth"
1212
configmap.reloader.stakater.com/reload: "abbott,dexcom,twiist"
1313
{{ if .Values.deployment.annotations }}
1414
{{- .Values.deployment.annotations | toYaml | nindent 4 }}
@@ -74,6 +74,12 @@ spec:
7474
name: abbott
7575
key: TokenURL
7676
optional: true
77+
- name: TIDEPOOL_SERVICE_PROVIDER_ABBOTT_JWKS_URL
78+
valueFrom:
79+
configMapKeyRef:
80+
name: abbott
81+
key: JWKSURL
82+
optional: true
7783
- name: TIDEPOOL_SERVICE_PROVIDER_ABBOTT_CLIENT_ID
7884
valueFrom:
7985
secretKeyRef:

charts/tidepool/charts/data/templates/1-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ spec:
7575
name: abbott
7676
key: TokenURL
7777
optional: true
78+
- name: TIDEPOOL_SERVICE_PROVIDER_ABBOTT_JWKS_URL
79+
valueFrom:
80+
configMapKeyRef:
81+
name: abbott
82+
key: JWKSURL
83+
optional: true
7884
- name: TIDEPOOL_SERVICE_PROVIDER_ABBOTT_CLIENT_ID
7985
valueFrom:
8086
secretKeyRef:

0 commit comments

Comments
 (0)