Skip to content

Commit

Permalink
Task/add new vars for sre auth (#2141)
Browse files Browse the repository at this point in the history
* task: add new var for sre auth

* task(sre auth): add secret key for staging

* fix: add temporary value for prod

* chore: fix bad copy/paste

* chore: pass new env vars to the API

* fix: pass new var to the correct place

* task: add env var to dev
  • Loading branch information
andrewleith authored Nov 7, 2023
1 parent d7f2de3 commit a20cf5c
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 1 deletion.
2 changes: 2 additions & 0 deletions base/notify-api/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ spec:
value: '$(SQLALCHEMY_DATABASE_READER_URI)'
- name: SQLALCHEMY_POOL_SIZE
value: '$(SQLALCHEMY_POOL_SIZE)'
- name: SRE_CLIENT_SECRET
value: '$(SRE_CLIENT_SECRET)'
- name: STATSD_HOST
valueFrom:
fieldRef:
Expand Down
1 change: 1 addition & 0 deletions env.example
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ FF_BOUNCE_RATE_V15=
FF_BOUNCE_RATE_BACKEND=
FF_ABTEST_SERVICE_ID=
FF_EMAIL_DAILY_LIMIT=
SRE_CLIENT_SECRET=
Binary file modified env/dev/.env.zip.enc.aws
Binary file not shown.
7 changes: 7 additions & 0 deletions env/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -607,3 +607,10 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.FF_EMAIL_DAILY_LIMIT
- name: SRE_CLIENT_SECRET
objref:
kind: ConfigMap
name: application-config
apiVersion: v1
fieldref:
fieldpath: data.SRE_CLIENT_SECRET
Binary file modified env/production/.env.zip.enc.aws
Binary file not shown.
9 changes: 8 additions & 1 deletion env/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -597,4 +597,11 @@ vars:
name: application-config
apiVersion: v1
fieldref:
fieldpath: data.FF_EMAIL_DAILY_LIMIT
fieldpath: data.FF_EMAIL_DAILY_LIMIT
- name: SRE_CLIENT_SECRET
objref:
kind: ConfigMap
name: application-config
apiVersion: v1
fieldref:
fieldpath: data.FF_EMAIL_DAILY_LIMIT
7 changes: 7 additions & 0 deletions env/scratch/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,10 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.FF_EMAIL_DAILY_LIMIT
- name: SRE_CLIENT_SECRET
objref:
kind: ConfigMap
name: application-config
apiVersion: v1
fieldref:
fieldpath: data.SRE_CLIENT_SECRET
Binary file modified env/staging/.env.zip.enc.aws
Binary file not shown.
7 changes: 7 additions & 0 deletions env/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -608,3 +608,10 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.FF_EMAIL_DAILY_LIMIT
- name: SRE_CLIENT_SECRET
objref:
kind: ConfigMap
name: application-config
apiVersion: v1
fieldref:
fieldpath: data.SRE_CLIENT_SECRET

0 comments on commit a20cf5c

Please sign in to comment.