XasCode
English
IaC guides

Detect Runtime Configuration Drift

Configuration drift occurs when an instance's observed configuration differs from the version expected for its deployment binding. Compare evidence for the same instance and time before deciding what changed.

Establish the expected version

Find the instance's deployment binding in the relevant environment and time window. Read the expected configuration snapshot or revision recorded for that binding. Keep the application artifact and configuration version as separate fields.

During a rolling deployment, older and newer replicas may have different expectations. Resolve each replica's binding independently. The deployment traceability guide shows where those links come from.

Compare a matching observation

Use an observation that covers the same binding and effective time. The Commerce replay contains one Auth observation with these values.

EvidenceSimulated Auth value
Application versionv2.4.1
Binding's expected configurationconfig-12
Configuration observed at 16:30 UTCconfig-13

The configuration version differs for the same binding, so the sample shows configuration drift. A missing, expired, or conflicting observation leaves the result uncertain.

Find the changed setting and its source

Compare the mounted configuration digest with the deployment manifest. Inspect the field values and check deployment and audit logs for the change around the observation. The sample establishes the version mismatch. Identifying the actor and the changed fields requires these additional records.

Trace any affected service paths using IaC change impact analysis before you decide the priority of a fix.

Start with one service

Connect the declarations, dependencies, and deployment records for a service you own.