Drift management
Drift is any observed provider state that differs from the approved proposal,
Terraform state, or policy baseline. The implemented workflow is manual and
read-only (terraform plan -detailed-exitcode); it is not scheduled and has
not been run. It uses the plan identity/runtime variables from the separately
protected platform-drift Environment.
- acquire the state/backend read lock and verify provider identity;
- run a refresh/plan without apply;
- classify changes as expected, unauthorized, security-relevant, or unknown;
- create an audit event and notify the owner/security/operations route;
- reconcile through a new proposal, or isolate and roll back an unauthorized change; and
- update the baseline only after review.
Never overwrite drift by blindly applying an old proposal. If state and provider observations disagree, preserve both artifacts, block mutation, and resolve the state-integrity incident first.