Skip to content

Commit

Permalink
Add keycloak token endpoint to clinic service (#287)
Browse files Browse the repository at this point in the history
* Add keycloak token endpoint to clinic service

* Update chart lock

* Allow all device_logs endpoints to go to blob upstream.

---------

Co-authored-by: lostlevels <lostlevels@users.noreply.github.com>
  • Loading branch information
toddkazakov and lostlevels authored Jun 26, 2024
1 parent dd9c009 commit a50351f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions charts/tidepool/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: keycloak
repository: file://../keycloak
version: 0.4.0
digest: sha256:45ca043092d026181796efd3428c4f3127545c4f7b61bd4ddc296e32b13ab1c3
generated: "2023-12-07T13:29:14.699087-08:00"
version: 0.4.2
digest: sha256:bea169e688dc10efdcf259b8c30ee2f90e0ca6e519464bd957f9e1be0a5b8564
generated: "2024-06-25T11:24:28.447782+03:00"
2 changes: 1 addition & 1 deletion charts/tidepool/charts/blob/templates/4-routetable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
- methods:
- GET
- POST
regex: /v1/users/[^/]+/device_logs
regex: /v1/users/[^/]+/device_logs.*
routeAction:
single:
upstream:
Expand Down
1 change: 1 addition & 0 deletions charts/tidepool/charts/clinic/templates/0-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ data:
XealthServerBaseUrl: {{ .Values.configmap.data.XealthServerBaseUrl | quote }}
KafkaTopicPrefix: {{ .Values.configmap.data.KafkaTopicPrefix | quote }}
KafkaTopic: {{ .Values.configmap.data.KafkaTopic | quote }}
KeycloakTokenEndpoint: {{ .Values.configmap.data.KeycloakTokenEndpoint | quote }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/tidepool/charts/clinic/templates/1-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ spec:
{{ include "charts.platform.env.mongo" .}}
{{ include "charts.platform.env.clients" .}}
{{ include "charts.tracing.common" .}}
- name: TIDEPOOL_AUTH_SERVICE_TOKEN_ENDPOINT
valueFrom:
configMapKeyRef:
name: clinic
key: KeycloakTokenEndpoint
optional: true
- name: CLINIC_DEMO_PATIENT_USER_ID
valueFrom:
configMapKeyRef:
Expand Down
1 change: 1 addition & 0 deletions charts/tidepool/charts/clinic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ configmap:
XealthBearerToken: ''
XealthTokenUrl: 'https://auth-staging.xealth.io/oauth2/token'
XealthServerBaseUrl: 'https://provider-staging.xealth.io/v2'
KeycloakTokenEndpoint: 'http://keycloak-http.default.svc.cluster.local/realms/dev/protocol/openid-connect/token'
deployment:
# -- Docker image
image: tidepool/clinic:master-latest
Expand Down

0 comments on commit a50351f

Please sign in to comment.