Automation · Change Management
Audit Trail
Cheat sheet · https://pcornel.dk/topic.php?topic=5945
Answer
An audit trail records who changed what, when, how and with which approval — commits, pipeline runs, job logs and tickets — so every automated change can be traced afterwards.
Remember
- Link commit, pipeline run, job log and ticket.
- Keep logs immutable.
- Keep them long enough.
First checks
- Audit log (who, what, when, approval) — trail
git log --grep <CHG-ID>— commits per change- Immutable storage — integrity
Verify in this order
request → approval → commit → run → result (all linked)
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Audit Trail operational decision reference
| Boundary | Known-good signal | Suspicious signal | What it proves | Next check |
|---|---|---|---|---|
| Request | Stable change/run ID + actor + desired revision | Timestamp only or missing actor | Intent was recorded | Resolve target scope |
| Scope | Explicit target identities | Dynamic scope not persisted | Which objects were intended | Execution attempt |
| Attempt | Attempt ID + same change ID | Retry overwrites prior result | Which execution ran | Controller result |
| Target | Independent read-back/event | Controller success only | Effective local state at read-back time | Original workload test |
| Closure | Linked workload/result where applicable | “Success” without downstream check | Closure of tested boundary | Preserve trail and review gaps |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5945