Back to Developer reading

Zero-downtime credential rotation in OpenTofu: the two-phase pattern (and the two bugs it taught me)

Rotating a long-lived credential sounds trivial: create a new one, hand it out, delete the old one. In practice "hand it out" is never instant. A pipeline that started five minutes ago still has the old token in its environment. A service read its config at startup and caches it. A deployment that…

Read it on dev.to

A summary from a public feed. The full text is on the site that published it.