Skip to content
Open
2 changes: 1 addition & 1 deletion charts/tidepool/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart for Tidepool
name: tidepool
version: 0.25.3
version: 0.25.4
maintainers:
- name: Todd Kazakov
email: todd@tidepool.org
Expand Down
98 changes: 98 additions & 0 deletions charts/tidepool/charts/auth/templates/1-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,104 @@ spec:
name: palmtree
key: tlsKeyData
optional: true
- name: TIDEPOOL_KEYCLOAK_CLIENT_ID
valueFrom:
configMapKeyRef:
name: shoreline
key: KeycloakClientId
optional: true
- name: TIDEPOOL_KEYCLOAK_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: shoreline
key: KeycloakClientSecret
optional: true
- name: TIDEPOOL_KEYCLOAK_LONG_LIVED_CLIENT_ID
valueFrom:
configMapKeyRef:
name: shoreline
key: KeycloakLongLivedClientId
optional: true
- name: TIDEPOOL_KEYCLOAK_LONG_LIVED_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: shoreline
key: KeycloakLongLivedClientSecret
optional: true
- name: TIDEPOOL_KEYCLOAK_BACKEND_CLIENT_ID
valueFrom:
configMapKeyRef:
name: shoreline
key: KeycloakBackendClientId
optional: true
- name: TIDEPOOL_KEYCLOAK_BACKEND_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: shoreline
key: KeycloakBackendClientSecret
optional: true
- name: TIDEPOOL_KEYCLOAK_ADMIN_USERNAME
valueFrom:
configMapKeyRef:
name: shoreline
key: KeycloakAdminUsername
optional: true
- name: TIDEPOOL_KEYCLOAK_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: shoreline
key: KeycloakAdminPassword
optional: true
- name: TIDEPOOL_KEYCLOAK_BASE_URL
valueFrom:
configMapKeyRef:
name: shoreline
key: KeycloakBaseUrl
optional: true
- name: TIDEPOOL_KEYCLOAK_REALM
valueFrom:
configMapKeyRef:
name: shoreline
key: KeycloakRealm
optional: true
- name: SEAGULL_TIDEPOOL_STORE_SCHEME
valueFrom:
secretKeyRef:
name: {{ .Values.mongo.secretName }}
key: Scheme
optional: true
- name: SEAGULL_TIDEPOOL_STORE_USERNAME
valueFrom:
secretKeyRef:
name: {{ .Values.mongo.secretName }}
key: Username
optional: true
- name: SEAGULL_TIDEPOOL_STORE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.mongo.secretName }}
key: Password
optional: true
- name: SEAGULL_TIDEPOOL_STORE_ADDRESSES
valueFrom:
secretKeyRef:
name: {{ .Values.mongo.secretName }}
key: Addresses
optional: true
- name: SEAGULL_TIDEPOOL_STORE_TLS
valueFrom:
secretKeyRef:
name: {{ .Values.mongo.secretName }}
key: Tls
optional: true
- name: SEAGULL_TIDEPOOL_STORE_OPT_PARAMS
valueFrom:
secretKeyRef:
name: {{ .Values.mongo.secretName }}
key: OptParams
optional: true
- name: SEAGULL_TIDEPOOL_STORE_DATABASE
value: seagull
- name: TIDEPOOL_OURA_JOTFORM_API_KEY
valueFrom:
secretKeyRef:
Expand Down
12 changes: 11 additions & 1 deletion charts/tidepool/charts/auth/templates/4-routetable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,15 @@ spec:
single:
upstream:
name: auth

- matchers:
- methods:
- GET
- POST
- PUT
- DELETE
regex: /v1/users/(legacy/)?[^/]+/profile
routeAction:
single:
upstream:
name: auth
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- name: TIDEPOOL_AUTH_CLIENT_ADDRESS
value: "http://shoreline:{{.Values.global.ports.shoreline}}"
- name: TIDEPOOL_SEAGULL_CLIENT_ADDRESS
value: "http://seagull:{{.Values.global.ports.seagull}}"
value: "http://auth:{{.Values.global.ports.auth}}/metadata"
- name: TIDEPOOL_GATEKEEPER_CLIENT_ADDRESS
value: "http://gatekeeper:{{.Values.global.ports.gatekeeper}}"
- name: TIDEPOOL_CLINIC_CLIENT_ADDRESS
Expand Down
2 changes: 1 addition & 1 deletion charts/tidepool/charts/clinic/templates/1-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- name: TIDEPOOL_SHORELINE_CLIENT_ADDRESS
value: "http://shoreline:{{.Values.global.ports.shoreline}}"
- name: TIDEPOOL_SEAGULL_CLIENT_ADDRESS
value: "http://seagull:{{.Values.global.ports.seagull}}"
value: "http://auth:{{.Values.global.ports.auth}}/metadata"
- name: TIDEPOOL_GATEKEEPER_CLIENT_ADDRESS
value: "http://gatekeeper:{{.Values.global.ports.gatekeeper}}"
- name: TIDEPOOL_REDOX_VERIFICATION_TOKEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
- name: TIDEPOOL_DATA_CLIENT_ADDRESS
value: "http://data:{{.Values.global.ports.data}}"
- name: TIDEPOOL_SEAGULL_CLIENT_ADDRESS
value: "http://seagull:{{.Values.global.ports.seagull}}"
value: "http://auth:{{.Values.global.ports.auth}}/metadata"
- name: TIDEPOOL_PERMISSION_CLIENT_ADDRESS
value: "http://gatekeeper:{{.Values.global.ports.gatekeeper}}"
- name: TIDEPOOL_METRICS_CLIENT_ADDRESS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
- name: TIDEPOOL_AUTH_CLIENT_ADDRESS
value: "shoreline:{{.Values.global.ports.shoreline}}"
- name: TIDEPOOL_SEAGULL_CLIENT_ADDRESS
value: "seagull:{{.Values.global.ports.seagull}}"
value: "auth:{{.Values.global.ports.auth}}/metadata"
- name: TIDEPOOL_PERMISSION_CLIENT_ADDRESS
value: "gatekeeper:{{.Values.global.ports.gatekeeper}}"
image: "{{ .Values.deployment.image }}"
Expand Down
30 changes: 30 additions & 0 deletions charts/tidepool/charts/seagull/templates/4-routetable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,36 @@ spec:
options:
extauth:
disable: true
- matchers:
- regex: '/metadata/[^/]+/profile'
routeAction:
single:
upstream:
name: auth
options:
regexRewrite:
pattern:
regex: '/metadata/'
substitution: '/v1/users/legacy/'
retries:
retryOn: '5xx'
numRetries: 3
perTryTimeout: '15s'
- matchers:
- regex: '/metadata/users/[^/]+/users'
routeAction:
single:
upstream:
name: auth
options:
regexRewrite:
pattern:
regex: '/metadata/users/'
substitution: '/v1/users/'
retries:
retryOn: '5xx'
numRetries: 3
perTryTimeout: '15s'
- matchers:
- prefix: /metadata/
routeAction:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ spec:
- name: TIDEPOOL_AUTH_CLIENT_ADDRESS
value: "http://shoreline:{{.Values.global.ports.shoreline}}"
- name: TIDEPOOL_SEAGULL_CLIENT_ADDRESS
value: "http://seagull:{{.Values.global.ports.seagull}}"
value: "http://auth:{{.Values.global.ports.auth}}/metadata"
- name: TIDEPOOL_PERMISSION_CLIENT_ADDRESS
value: "http://gatekeeper:{{.Values.global.ports.gatekeeper}}"
- name: TIDEPOOL_METRICS_CLIENT_ADDRESS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
"host": "hakken",
"skipHakken": true
},
"seagull": {"serviceSpec": {"type": "static", "hosts": ["http://seagull:{{.Values.global.ports.seagull}}"]}},
"seagull": {"serviceSpec": {"type": "static", "hosts": ["http://auth:{{.Values.global.ports.auth}}/metadata"]}},
"shoreline": {
"name": "tide-whisperer",
"serviceSpec": {"type": "static", "hosts": ["http://shoreline:{{.Values.global.ports.shoreline}}"]},
Expand Down