Automation · Compliance Automation
Configuration Baselines
Cheat sheet · https://pcornel.dk/topic.php?topic=6014
Answer
Configuration baselines define the approved configuration for a system type, versioned and used as the reference that compliance checks and drift detection compare against.
Remember
- Baselines are versioned.
- They are the reference for checks and drift.
- Review them regularly.
First checks
- Baseline definitions (CIS/STIG/vendor) in repo — as code
- Baseline versions — currency
- Exceptions documented — deviations
Commands
git diff --exit-code <baseline-ref> -- <managed-path>- Read-only/validation observation for the exact managed-path delta relative to an approved Git baseline reference.
ip ssh version 2
Verify in this order
baseline → apply → scan
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.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6014