{
  "id": 20856893,
  "title": "Terraform: an email contract for CI",
  "url": "https://urgent.news/2026/11/20/terraform-un-contrato-de-email-para-ci",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-20T05:25:41.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/alexcarteruk/terraform-un-contrato-de-email-para-ci-1mhd"
  },
  "original_language": "es",
  "account": "The article discusses the challenges of testing email functionality in Continuous Integration (CI) pipelines. When a test creates an email account, sends a message, and checks the inbox, it may pass, but issues can arise when multiple executions share the same mailbox or when old messages are mistaken for new ones. To solve this, the author suggests defining a small contract for test emails using Terraform, which includes isolated identities, short-lived credentials, explicit retention, and signals to explain failures. This approach ensures that each execution has a unique mailbox, and evidence is preserved to diagnose issues. The author also emphasizes the importance of separating identity, secrets, and mailbox information, and of measuring and logging events to provide useful alerts.",
  "summary": "In the CI pipeline, a small contract for email testing can help prevent issues where multiple test runs use the same mailbox and evidence is lost. Terraform helps define a clear contract for test mailboxes by allowing variables for environment and retention time, creating isolated identities, and providing output for sensitive data. This approach ensures that each test run has a distinguishable identity, the retention period is defined, and sensitive output is not printed as plain text. By separating identity, secrets, and environment labels, the implementation avoids common pitfalls such as using the same message for multiple test runs or leaving evidence for investigation.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}