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

Use tenant host and name as default email sender #5034

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

javierm
Copy link
Member

@javierm javierm commented Nov 24, 2022

References

Background

We were using consul.dev as default, which might be fine for the development environment, but it's something that definitely needs to be changed on production.

On these environments, using the same domain which is used to generate URLs in emails is a better default option. This also makes it easier to configure new tenants, since the setting will default to whatever host the new tenant is using.

Objectives

  • Make it easier to configure new CONSUL installations
  • Make it easier to configure new tenants in multitenant installations

@javierm javierm self-assigned this Nov 24, 2022
@javierm javierm added this to Reviewing in Consul Democracy Nov 24, 2022
@javierm javierm force-pushed the default_mailer_from_address branch 3 times, most recently from 5bdfeeb to 132a004 Compare November 25, 2022 14:15
@javierm javierm changed the title Use current host as default email address domain Use tenant host and name as default email sender Nov 25, 2022
@javierm javierm force-pushed the default_mailer_from_address branch 2 times, most recently from 0690e71 to 1cd217e Compare November 26, 2022 12:53
@taitus taitus self-assigned this Nov 28, 2022
@javierm javierm force-pushed the default_mailer_from_address branch 2 times, most recently from b978ca2 to 07a0839 Compare November 28, 2022 15:06
We were using `consul.dev` as default, which might be fine for the
development environment, but it's something that definitely needs to be
changed on production.

Now we're providing a better default setting: using the same domain
which is used to generate URLs in emails. This also makes it easier to
configure new tenants, since the setting will default to whatever host
the new tenant is using.

The `|| "consul.dev"` part might not be needed; I'm keeping it because
I'm not sure production environents would not experience any new issues
if we don't add it, but we might remove it in the future.
This way we'll avoid having all tenant organizations named "CONSUL" by
default, and we'll also use different email senders per tenant, which
will reduce the change of the emails being marked as spam.
Consul Democracy automation moved this from Reviewing to Testing Nov 28, 2022
@javierm javierm merged commit 1922b90 into master Nov 28, 2022
Consul Democracy automation moved this from Testing to Release 2.0.0 Nov 28, 2022
@javierm javierm deleted the default_mailer_from_address branch November 28, 2022 16:07
@javierm javierm removed the 2.0 label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants