Skip to content

Define the intention of sender_display_name notification config #975

@doshitan

Description

@doshitan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions