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

email_safe_list #540

Merged
merged 2 commits into from
Mar 8, 2024
Merged
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
2 changes: 2 additions & 0 deletions docker/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
EMAIL_USE_TLS=True
if os.getenv("SAFE_EMAIL_RECIPIENT", None):
SAFE_EMAIL_RECIPIENT = os.getenv("SAFE_EMAIL_RECIPIENT")
SAFE_EMAIL_SAFELIST = [s.strip() for s in os.getenv(
'SAFE_EMAIL_SAFELIST', '').split(',')]
EMAIL_BACKEND = 'saferecipient.EmailBackend'
EMAIL_NOREPLY_ADDRESS = 'Service Endorsement <[email protected]>'
else:
Expand Down
14 changes: 12 additions & 2 deletions docker/test-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ environmentVariables:
value: https://test.provision.uw.edu/saml
- name: CLUSTER_CNAME
value: test.provision.uw.edu
- name: SAFE_EMAIL_RECIPIENT
value: "[email protected]"
externalSecrets:
enabled: true
secrets:
Expand All @@ -126,6 +124,10 @@ externalSecrets:
property: email-host
- name: msca-subscription-key
property: msca-subscription-key
- name: safe-email-recipient
property: safe-email-recipient
- name: safe-email-safelist
property: safe-email-safelist
- name: test.provision.uw.edu-sql-secret
externalKey: provision/test/sql-secret
data:
Expand Down Expand Up @@ -158,6 +160,14 @@ environmentVariablesSecrets:
name: MSCA_SUBSCRIPTION_KEY
secretName: test.provision.uw.edu-secrets
secretKey: msca-subscription-key
SafeEmailRecipient:
name: SAFE_EMAIL_RECIPIENT
secretName: test.provision.uw.edu-secrets
secretKey: safe-email-recipient
SafeEmailSafelist:
name: SAFE_EMAIL_SAFELIST
secretName: test.provision.uw.edu-secrets
secretKey: safe-email-safelist
SAMLServiceProviderCert:
name: SP_CERT
secretName: test.provision.uw.edu-ic-certs
Expand Down
Loading