Use this when defining the approved configuration for a system type.
Configuration Baselines
Configuration baselines define the approved configuration for a system type, versioned and used as the reference that compliance checks and drift detection compare against.
1. Configuration baselines define required settings.
2. Version them.
3. Tailor with documented exceptions.
4. Apply via CM tools.
5. Scan against them.
baseline → apply → scan
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
git diff --exit-code <baseline-ref> -- <managed-path>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Command read-back and what it shows Verify boundary
For Compliance Automation → Configuration Baselines, read back with git diff --exit-code <baseline-ref> -- <managed-path>. Success is discriminated by the intended approved revision and target are identified, the rendered comparison contains only expected/approved differences, and the compliance result matches the policy decision for that exact target; failure remains when the comparison uses an unexpected revision or target, shows unexplained material differences, or reports compliant while the effective target state still violates the approved baseline. The Git diff shows differences between two selected text states only, but it does not show that either state is deployed, approved, secure or complete.
Step 2 Verification path Verify boundary
For Compliance Automation → Configuration Baselines, the evidence must connect the control-plane result to the compliance decision, report and optionally remediated target state and explain any gap between desired, controller-reported and consumer-visible state.
Step 3 Common mistakes Narrow the fault
- Baselines that differ between environments without reason.
Step 4 Observation-driven branch and next-check logic Narrow the fault
Start Compliance Automation → Configuration Baselines from one identified target/request/artifact and timestamp. Decision path: if the baseline revision is wrong or missing, correct source selection before evaluating drift; if the revision is correct but rendered input differs unexpectedly, inspect variables and target identity; if the diff is accurate but policy status is disputed, evaluate approved exceptions and effective compliance policy.
Step 5 Where it fails Narrow the fault
Failure analysis for Compliance Automation → Configuration Baselines should follow the path through the components: policy+input → parse/load → evaluation → decision/report → optional enforcement/remediation → target → re-evaluation.
- Baselines are versioned.
- They are the reference for checks and drift.
- Review them regularly.
- Baseline definitions (CIS/STIG/vendor) in repo — as code
- Baseline versions — currency
- Exceptions documented — deviations
ReferenceWhy it matters1 section · depth on demand
Method
Configuration baselines define the minimum secure and consistent configuration for a system type. Creating and maintaining them follows a clear method.
1. Start from an industry baseline (CIS Benchmarks, vendor hardening guides, Microsoft security baselines).
2. Adapt to your environment and document every deviation with a reason.
3. Implement the baseline as code (GPO/Intune, Ansible roles, templates).
4. Write automated checks for each baseline item.
5. Version the baseline and review it at least yearly and after platform upgrades.
ReferenceHow it works1 section · depth on demand
How it works
Compliance Automation → Configuration Baselines owns baseline definition, approved revision identity, rendered configuration and the comparison scope used by the compliance job. A configuration baseline is useful only when an immutable or reviewable source revision can be rendered for a known target and compared against the target-shaped input; the comparison engine owns the delta, while policy decides whether a delta is acceptable. Keep these adjacent boundaries separate: repository access, variable rendering, target inventory, normalization of volatile fields and exception policy remain separate dependencies. A key diagnostic distinction is that a zero textual diff can still compare the wrong revision or target, while a non-zero diff can be an approved exception rather than non-compliance.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Compliance Automation → Configuration Baselines is owned at runtime by the policy engine and automation pipeline evaluating machine-readable policy against versioned input. The linked authority for bounded mechanics is Open Policy Agent Documentation; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Compliance Automation > Configuration Baselines. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.openpolicyagent.org/docs/latest/ · confidence 94%