Urgent.News

What's breaking now, across thousands of outlets.

Tech

The same drift bug that breaks your Terraform state also breaks your login form

What infrastructure drift, frontend validation, and shared engineering patterns have in common. Somewhere in your infrastructure right now, a resource doesn't match what your Terraform state file claims. I'd put money on it. Maybe it's a firewall rule someone added through the portal during an incident at 2 a.m. and never ticketed. Maybe it's a tag that got renamed by a policy remediation task…

Terraform drift and frontend validation issues share a common problem. In both cases, a declared source of truth becomes outdated, leading to discrepancies between intended and actual states. This can occur when someone manually edits resources outside of the automated pipeline. While the drift may not cause immediate issues, it can lead to problems later when automated processes assume a different state.

Similar to the validation engine, where developers can introduce custom logic directly into form fields, manual infrastructure changes can create inconsistencies without being caught by review processes. To address this, scheduled drift detection should be implemented, rather than relying on ad-hoc processes. This allows for automatic identification and handling of discrepancies, ensuring that declared states remain accurate and up-to-date.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Three new stable kernels

Greg Kroah-Hartman has released the 7.2.7 , 6.18.53 , and 6.12.111 stable. As is usual these days, they are quite large; also no surprise is that they provide many important fixes throughout the…

More from Monday 21 September →