Chapter 5
1 min read
The Fog in the Valley
Environment Drift
In software, environment drift happens when systems that should behave the same start behaving differently — small inconsistencies that quietly accumulate in...
In software, environment drift happens when systems that should behave the same start behaving differently — small inconsistencies that quietly accumulate into major failures.
Just like the valley's shifting fog:
- One node has a slightly different package version,
- One kubelet is misconfigured,
- One container has an outdated base image,
- One VM has an old kernel.
Each deviation is subtle. Together, they warp the entire system.
To minimize drift:
- Use immutable images and rebuild instead of patching in place.
- Enforce IaC to keep environments consistent.
- Run regular configuration audits.
- Pin versions and avoid
latest.
Small inconsistencies create big shadows — and attackers hide in both.
Exercise
- Audit your current environments for inconsistencies. Are there any nodes, containers, or VMs that differ from the standard configuration?
- Implement a process to regularly check for and correct drift in your infrastructure.

