-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Context
Notifications have a per-service-env configuration for a "display name" on emails. This is used by the identity provider module (by default at least, projects could override the setting on a per-service basis if the identity provider is desired to show a different name).
Some goals:
- It's not entirely clear what the intention/scope of this variable is. That should be defined.
- Does it make sense to have a singular "display name" for a service in the first place?
Options
A) sender_display_name overrides
If an application infra config has sender_display_name set, the service (and any connected resources) should be assumed to just always use it.
Possibly add restrictions on the IAM policy around this.
In a highly-regulated environment this might be desirable.
B) sender_display_name is a default
Applications are expected to override/use other display names as desired.
Update default service env vars to include the "sender email" in addition to the existing full "from email":
| AWS_SES_FROM_EMAIL = module.notifications[0].from_email |
Open questions:
- Should the identity provider use a different default?
C) Remove sender_display_name
Determine that in typical use cases an application will want multiple display names for different contexts and a single variable does not make sense.
Possibly provide a config item in app-config/env-config/identity_provider.tf or other default for account emails.
Success criteria
- Update comments and docs to represent decision
- Application templates provide a utility function implementing default logic
- For rails maybe utilize https://api.rubyonrails.org/classes/ActionMailer/Base.html#method-c-email_address_with_name