This is drift. In Infrastructure as Code (IaC), drift detection is not optional. It’s the difference between confident changes and silent, creeping misconfigurations. In environments using Twingate, drift can go unnoticed until a critical connection breaks or a security gap opens.
IaC drift detection for Twingate means continuously comparing your declared state with the real-world configuration in production. It is not a one-time audit. It is a feedback loop that catches changes made outside the Terraform files or CI/CD pipelines — manual edits in the Twingate admin console, emergency tweaks, accidental deletions, or API changes by another automation process.
When drift is detected, your code says one thing and the Twingate environment runs another. This introduces unpredictable behavior. Security rules might not match policy. Remote access paths could be wider than intended or vanish without warning. Left unchecked, drift forces engineers to debug ghosts.