Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Configuration Baselines

Direct 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.

When to use this

Use this when defining the approved configuration for a system type.

First 30 seconds

1. Configuration baselines define required settings.

2. Version them.

3. Tailor with documented exceptions.

4. Apply via CM tools.

5. Scan against them.

Operational verification

baseline → apply → scan

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
policy-as-code and compliance automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformpolicy-as-code and compliance automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior. · Git
Key commandgit diff --exit-code <baseline-ref> -- <managed-path>
Scope / prerequisiteUse this when defining the approved configuration for a system type.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Key points
  • Baselines are versioned.
  • They are the reference for checks and drift.
  • Review them regularly.
Key checks
  • 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.

Baseline item exampleCheck
SSH protocol 2 onlyip ssh version 2 present
No HTTP managementno ip http server
Logging to central serverlogging host configured
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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docpolicy-as-code and compliance automation current

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%
Confirmation

Confirm action

Continue?