Skip to content

Commit

Permalink
Added charts for mailpit, update for using SecretStr with login
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Feb 14, 2024
1 parent f3210bf commit 56bf30b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mailpit_chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ spec:
value: "0"
- name: MP_SMTP_AUTH_ALLOW_INSECURE
value: "1"
- name: MP_SMTP_AUTH
value: "$(SMTP_USERNAME):$(SMTP_PASSWORD)"
- name: SMTP_USERNAME
valueFrom:
secretKeyRef:
Expand All @@ -48,6 +46,8 @@ spec:
secretKeyRef:
name: mailing-api-secrets
key: SMTP_PASSWORD
- name: MP_SMTP_AUTH
value: "$(SMTP_USERNAME):$(SMTP_PASSWORD)"
ports:
- containerPort: 8025
- containerPort: 1025
Expand Down
2 changes: 1 addition & 1 deletion mailpit_chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mapping:
enabled: true
host: mailpit-devpub-cd-eval.dev-public.aws.cfpb.gov
host: mailpit-eks.dev-public.aws.cfpb.gov
prefix: /

4 changes: 2 additions & 2 deletions regtech_mail_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
mailer = SmtpMailer(
settings.smtp_host, # type: ignore
settings.smtp_port,
settings.smtp_username, # type: ignore
settings.smtp_password, # type: ignore
settings.smtp_username.get_secret_value(), # type: ignore
settings.smtp_password.get_secret_value(), # type: ignore
settings.smtp_use_tls,
)
case EmailMailerType.MOCK:
Expand Down

0 comments on commit 56bf30b

Please sign in to comment.