diff --git a/charts/tidepool/charts/auth/templates/0-configmap.yaml b/charts/tidepool/charts/auth/templates/0-configmap.yaml index 4c3be0fa..518bd614 100644 --- a/charts/tidepool/charts/auth/templates/0-configmap.yaml +++ b/charts/tidepool/charts/auth/templates/0-configmap.yaml @@ -12,5 +12,7 @@ data: AppleDeviceCheckKeyId: {{ .AppleDeviceCheckKeyId | default "" }} AppleDeviceCheckKeyIssuer: {{ .AppleDeviceCheckKeyIssuer | default "" }} AppleDeviceCheckUseDevelopment: "{{ .AppleDeviceCheckUseDevelopment | default "true" }}" + BigDataDonationProjectDataRecipientUserId: "{{ .BigDataDonationProjectDataRecipientUserId | default "" }}" + BigDataDonationProjectSharingDisabled: "{{ .BigDataDonationProjectSharingDisabled | default "true" }}" {{- end }} {{- end }} diff --git a/charts/tidepool/charts/auth/templates/1-deployment.yaml b/charts/tidepool/charts/auth/templates/1-deployment.yaml index e7609cfb..388db0d3 100644 --- a/charts/tidepool/charts/auth/templates/1-deployment.yaml +++ b/charts/tidepool/charts/auth/templates/1-deployment.yaml @@ -241,6 +241,18 @@ spec: name: auth key: AppValidationChallengeSize optional: true + - name: TIDEPOOL_BIG_DATA_DONATION_PROJECT_SHARING_DISABLED + valueFrom: + configMapKeyRef: + name: auth + key: BigDataDonationProjectSharingDisabled + optional: false + - name: TIDEPOOL_BIG_DATA_DONATION_PROJECT_DATA_RECIPIENT_USER_ID + valueFrom: + configMapKeyRef: + name: auth + key: BigDataDonationProjectDataRecipientUserId + optional: true - name: COASTAL_API_KEY valueFrom: secretKeyRef: diff --git a/charts/tidepool/charts/auth/templates/4-routetable.yaml b/charts/tidepool/charts/auth/templates/4-routetable.yaml index 558ac218..d0ed03e9 100644 --- a/charts/tidepool/charts/auth/templates/4-routetable.yaml +++ b/charts/tidepool/charts/auth/templates/4-routetable.yaml @@ -152,4 +152,32 @@ spec: single: upstream: name: auth + - matchers: + - methods: + - GET + prefix: /v1/consents + routeAction: + single: + upstream: + name: auth + - matchers: + - methods: + - GET + - POST + regex: /v1/users/[^/]+/consents + routeAction: + single: + upstream: + name: auth + - matchers: + - methods: + - GET + - PATCH + - DELETE + regex: /v1/users/[^/]+/consents/[^/]+ + routeAction: + single: + upstream: + name: auth + {{- end }} diff --git a/charts/tidepool/charts/auth/values.yaml b/charts/tidepool/charts/auth/values.yaml index c8e55c75..ad240264 100644 --- a/charts/tidepool/charts/auth/values.yaml +++ b/charts/tidepool/charts/auth/values.yaml @@ -12,6 +12,8 @@ configmap: AppleDeviceCheckKeyIssuer: "75U4X84TEG" AppleDeviceCheckKeyId: "B542R658GF" AppleDeviceCheckUseDevelopment: "true" + BigDataDonationProjectDataRecipientUserId: "" + BigDataDonationProjectSharingDisabled: "true" deployment: # -- secrets used to pull images imagePullSecrets: