Urgent.News

What's breaking now, across thousands of outlets.

Tech

Terraform: an email contract for CI

CI can end in green and still leave a doubt: did the mail arrive in the correct mailbox and is there evidence to investigate? In infrastructure teams, this problem usually appears as an intermittent failure. One job creates an account, waits for a message, and works. Another reuses the address, receives an old message, and also passes. Days later, several runs share the same mailbox without anyone…

Translated from Spanish Read in Spanish

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.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Friday 20 November →