-
-
Notifications
You must be signed in to change notification settings - Fork 12
Environment variables added for slack invites and staging. #59
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
Changes from all commits
c95bcda
d631ca3
7a7cd79
3d228bb
94eabb5
33087a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,37 +27,52 @@ spec: | |
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: airtable_api_key | ||
| - name: SLACK_LEGACY_ADMIN_TOKEN | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: slack_legacy_admin_token | ||
| - name: AIRTABLE_BASE_ID | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: airtable_base_id | ||
| optional: true | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We aren't using airtable in staging, Without this environment variable set in the config file kubernetes gets mad. Currently airtable is used as a spreadsheet database for mentor requests. |
||
| - name: GIT_HUB_CLIENT_ID | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: git_hub_client_id | ||
| optional: true | ||
| - name: GIT_HUB_CLIENT_SECRET | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: git_hub_client_secret | ||
| optional: true | ||
| - name: GIT_HUB_OAUTH_TOKEN | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: git_hub_oauth_token | ||
| optional: true | ||
| - name: PY_BOT_AUTH_KEY | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: py_bot_auth_key | ||
| optional: true | ||
| - name: POSTGRES_HOST | ||
| value: opcode-postgres | ||
| - name: REDIS_URL | ||
| value: redis://opcode-redis:6379/0 | ||
| - name: RAILS_ENV | ||
| value: production | ||
| - name: POSTGRES_USER | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: postgres_user | ||
| - name: SLACK_SUBDOMAIN | ||
| valueFrom: | ||
| secretKeyRef: | ||
|
|
@@ -96,6 +111,11 @@ spec: | |
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: postgres_password | ||
| - name: POSTGRES_USER | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: postgres_user | ||
| - name: POSTGRES_HOST | ||
| value: opcode-postgres | ||
| - name: REDIS_URL | ||
|
|
@@ -105,6 +125,11 @@ spec: | |
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: slack_subdomain | ||
| - name: SLACK_LEGACY_ADMIN_TOKEN | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR says adding |
||
| valueFrom: | ||
| secretKeyRef: | ||
| name: backend-secrets | ||
| key: slack_legacy_admin_token | ||
| - name: SLACK_TOKEN | ||
| valueFrom: | ||
| secretKeyRef: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,14 @@ metadata: | |
| type: Opaque | ||
| data: | ||
| airtable_add_user_base_id: SECRET | ||
| airtable_base_id: SECRET | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR says adding |
||
| airtable_add_user_table_name: SECRET | ||
| airtable_api_key: SECRET | ||
| jwt_secret_key: SECRET | ||
| postgres_password: SECRET | ||
| postgres_user: SECRET | ||
| secret_key_base: SECRET | ||
| slack_legacy_admin_token: SECRET | ||
| sendgrid_password: SECRET | ||
| sendgrid_username: SECRET | ||
| sendgrid_api_key: SECRET | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR says adding
POSTGRES_USER, where'd this come from?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially it was just going to be this. But these variables ended up being required to get the slack invites working. These environment variables were initially stored in a way that made it not obvious they were used. When we deactivated them we forgot they were still in use.