The policy check stopped two risky settings before they existed. Dax's console change never went through the pipeline, so only the scheduled drift check could find it, 15 minutes later.
Example. Templates: Cluster, node role, bucket, uplink-status and its load balancer. Pipeline rules: No privileged or host network pod, no wildcard action. Drift check: A scheduled terraform plan every 15 minutes. Events in order: 09:42, The pipeline plans Kael's first commit. 09:43, The policy check reads the plan. 11:12, The fixed templates are applied. 16:10, Dax changes a load balancer setting in the console. 16:25, The scheduled plan runs.
- At 09:42 the plan shows that Kael's first templates would put back s3:* and the privileged pod. Now: 09:42, The pipeline plans Kael's first commit. Plan would undo both hand fixes (caution).
- At 09:43 the policy check fails the plan twice, so the pipeline stops and the account does not change. Now: 09:43, The policy check reads the plan. 2 failures, nothing applied (good).
- At 11:12 the fixed templates are applied, and the account matches its code. Now: 11:12, The fixed templates are applied. Account matches the code (good).
- At 16:10 Dax raises a health check threshold in the console. No pipeline and no policy check sees it. Now: 16:10, Dax changes a load balancer setting in the console. Account differs from the code (caution).
- At 16:25 the scheduled plan finds the load balancer changed outside the code and reports it as drift. Now: 16:25, The scheduled plan runs. Drift reported on uplink-status (good).
Spacing is even, not to scale. The fix and review between 09:43 and 11:12 are not drawn, and drift detection sees only what the code manages.