Skip to content

Commit b5a472b

Browse files
authored
Add user consent API (#324)
* Add routes for consents api * Add configuration for sharing data with BDDP user
1 parent 795a296 commit b5a472b

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ data:
1212
AppleDeviceCheckKeyId: {{ .AppleDeviceCheckKeyId | default "" }}
1313
AppleDeviceCheckKeyIssuer: {{ .AppleDeviceCheckKeyIssuer | default "" }}
1414
AppleDeviceCheckUseDevelopment: "{{ .AppleDeviceCheckUseDevelopment | default "true" }}"
15+
BigDataDonationProjectDataRecipientUserId: "{{ .BigDataDonationProjectDataRecipientUserId | default "" }}"
16+
BigDataDonationProjectSharingDisabled: "{{ .BigDataDonationProjectSharingDisabled | default "true" }}"
1517
{{- end }}
1618
{{- end }}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,18 @@ spec:
241241
name: auth
242242
key: AppValidationChallengeSize
243243
optional: true
244+
- name: TIDEPOOL_BIG_DATA_DONATION_PROJECT_SHARING_DISABLED
245+
valueFrom:
246+
configMapKeyRef:
247+
name: auth
248+
key: BigDataDonationProjectSharingDisabled
249+
optional: false
250+
- name: TIDEPOOL_BIG_DATA_DONATION_PROJECT_DATA_RECIPIENT_USER_ID
251+
valueFrom:
252+
configMapKeyRef:
253+
name: auth
254+
key: BigDataDonationProjectDataRecipientUserId
255+
optional: true
244256
- name: COASTAL_API_KEY
245257
valueFrom:
246258
secretKeyRef:

charts/tidepool/charts/auth/templates/4-routetable.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,32 @@ spec:
152152
single:
153153
upstream:
154154
name: auth
155+
- matchers:
156+
- methods:
157+
- GET
158+
prefix: /v1/consents
159+
routeAction:
160+
single:
161+
upstream:
162+
name: auth
163+
- matchers:
164+
- methods:
165+
- GET
166+
- POST
167+
regex: /v1/users/[^/]+/consents
168+
routeAction:
169+
single:
170+
upstream:
171+
name: auth
172+
- matchers:
173+
- methods:
174+
- GET
175+
- PATCH
176+
- DELETE
177+
regex: /v1/users/[^/]+/consents/[^/]+
178+
routeAction:
179+
single:
180+
upstream:
181+
name: auth
182+
155183
{{- end }}

charts/tidepool/charts/auth/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ configmap:
1212
AppleDeviceCheckKeyIssuer: "75U4X84TEG"
1313
AppleDeviceCheckKeyId: "B542R658GF"
1414
AppleDeviceCheckUseDevelopment: "true"
15+
BigDataDonationProjectDataRecipientUserId: ""
16+
BigDataDonationProjectSharingDisabled: "true"
1517
deployment:
1618
# -- secrets used to pull images
1719
imagePullSecrets:

0 commit comments

Comments
 (0)