Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variables related to Apple App Attestation. #224

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ local/*
.helm
tilt_modules/
.idea/
.DS_Store
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.14.5
version: 0.14.6
maintainers:
- name: Todd Kazakov
email: [email protected]
Expand Down
3 changes: 3 additions & 0 deletions charts/tidepool/charts/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Helm chart for the Tidepool auth service
| configmap.data_.AppleDeviceCheckKeyId | string | `"B542R658GF"` | |
| configmap.data_.AppleDeviceCheckKeyIssuer | string | `"75U4X84TEG"` | used for checking generating jwts, which are required for checking the validity of apple device tokens during the insulet authorization flow. |
| configmap.data_.AppleDeviceCheckUseDevelopment | string | `"true"` | |
| configmap.data_.AppValidationUseDevelopment | string | `"true"` | |
| configmap.data_.AppValidationAppleAppIDs | string | `"75U4X84TEG.org.tidepool.coastal.Loop,75U4X84TEG.org.tidepool.Loop"` | |
| configmap.data_.AppValidationChallengeSize | string | `"16"` | |
| deployment.image | string | `"tidepool/platform-auth:master-latest"` | auth Docker image |
| deployment.replicas | int | `1` | number of replicas to deploy |
| hpa.enabled | bool | `false` | whether to create a horizontal pod autoscalers for all pods of given deployment |
Expand Down
3 changes: 3 additions & 0 deletions charts/tidepool/charts/auth/templates/0-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ data:
AppleDeviceCheckKeyId: {{ .AppleDeviceCheckKeyId | default "" }}
AppleDeviceCheckKeyIssuer: {{ .AppleDeviceCheckKeyIssuer | default "" }}
AppleDeviceCheckUseDevelopment: "{{ .AppleDeviceCheckUseDevelopment | default "true" }}"
AppValidationUseDevelopment: "{{ .AppValidationUseDevelopment | default "true" }}"
AppValidationAppleAppIDs: "{{ .AppValidationAppleAppIDs | default "" }}"
AppValidationChallengeSize: "{{ .AppValidationChallengeSize | default "16" }}"
{{- end }}
18 changes: 18 additions & 0 deletions charts/tidepool/charts/auth/templates/1-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,24 @@ spec:
name: auth
key: AppleDeviceCheckUseDevelopment
optional: true
- name: TIDEPOOL_APPVALIDATION_USE_DEVELOPMENT
valueFrom:
configMapKeyRef:
name: auth
key: AppValidationUseDevelopment
optional: true
- name: TIDEPOOL_APPVALIDATION_APPLE_APP_IDS
valueFrom:
configMapKeyRef:
name: auth
key: AppValidationAppleAppIDs
optional: true
- name: TIDEPOOL_APPVALIDATION_CHALLENGE_SIZE
valueFrom:
configMapKeyRef:
name: auth
key: AppValidationChallengeSize
optional: true
image: "{{ .Values.deployment.image }}"
securityContext:
{{- .Values.podSecurityContext | toYaml | nindent 10 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/tidepool/charts/auth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ configmap:
AppleDeviceCheckKeyIssuer: "75U4X84TEG"
AppleDeviceCheckKeyId: "B542R658GF"
AppleDeviceCheckUseDevelopment: "true"
# -- used for app attestation to determine if an app is a valid instance of an IOS app.
AppValidationUseDevelopment: "true"
AppValidationAppleAppIDs: "75U4X84TEG.org.tidepool.coastal.Loop,75U4X84TEG.org.tidepool.Loop"
AppValidationChallengeSize: "16"
deployment:
# -- auth Docker image
image: tidepool/platform-auth:master-latest
Expand Down