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

Add support for secure tracking x509 certificate (re)generation #57

Open
Szasza opened this issue Sep 24, 2024 · 0 comments
Open

Add support for secure tracking x509 certificate (re)generation #57

Szasza opened this issue Sep 24, 2024 · 0 comments

Comments

@Szasza
Copy link
Collaborator

Szasza commented Sep 24, 2024

Terraform Version

All.

Affected Resource(s)

  • mailgun_secure_tracking (new)

Example Terraform Configuration Files

resource "mailgun_domain" "default" {
  name           = "test.example.com"
  region         = "us"
  open_tracking  = "yes"
  click_tracking = "yes"
  web_scheme     = "https"
}

resource "mailgun_secure_tracking" "default" {
  domain = "email.test.example.com"

  depends_on = [mailgun_domain.default]
}

Expected Behavior

A secure tracking certificate is getting generated. Regeneration can be achieved by either tainting the mailgun_secure_tracking resource, or deleting and re-adding it, or potentially by adding an extra boolean flag as an argument.

Important Factoids

  • The reason why this resource is needed is that the Mailgun API doesn't generate an SSL certificate for the tracking domain when web_scheme = "https" is provided via the API. It works however if https is selected via the UI.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant