Configuration Management
Configuration management keeps systems in known, approved states. This lesson covers provisioning, baselines, drift and automation.
Learning outcomes
After completing this lesson, you will be able to:
- Explain baselines, provisioning and configuration drift.
- Describe the benefits and risks of configuration automation.
Baselines and provisioning
Configuration management (CM) establishes and maintains consistent, approved configurations for hardware, software and infrastructure. A baseline is a documented, approved configuration for a type of system, usually derived from vendor guidance or CIS Benchmarks and tailored to the organisation. Systems are provisioned from golden images or templates that implement the baseline, so every new system starts secure.
Configuration items and their approved states are recorded, often in a configuration management database (CMDB). Regular scans compare actual configurations with the baseline to detect configuration drift, unapproved divergence that may indicate mistakes or compromise. Baselines themselves change only through change management.
Drift happens in ordinary ways. An administrator troubleshooting a problem disables the host firewall and forgets to re-enable it; a developer installs a debugging tool on a production server; a vendor's support engineer enables remote access during a call. Each change may be harmless in intent, but the server no longer matches the baseline that was assessed and approved, and its risk is now unknown. Detecting drift quickly, through scheduled compliance scans or continuous agents, turns these silent changes into findings that can be corrected or, if the change is justified, approved and added to the baseline.
A golden image needs maintenance too. If the image used to build new servers was created six months ago, every new server starts six months behind on patches. Organisations rebuild their images regularly, often monthly, so that new systems start from a current, patched baseline.
Baselines and drift
Automation
Infrastructure as code and configuration management tools define configurations in version-controlled files and apply them automatically, so deployments are identical, reviewable and reproducible. Desired-state tools detect and correct drift continuously. Automation reduces human error and speeds recovery, because systems can be rebuilt rather than repaired.
The automation itself becomes critical: its code repositories, pipelines and credentials need strict access control, review of every change and protection like any privileged account.
Infrastructure as code turns configuration into something that can be reviewed like software. Instead of an administrator clicking through a console to create a database, a file describes the database, including its encryption setting and network access. A change to that file is submitted as a pull request, reviewed by a colleague, scanned automatically for insecure settings such as public access, and applied by the pipeline only after approval. The repository history then shows exactly who changed what, when and why, which is the record that configuration management and audit require.
Automation also supports the immutable infrastructure approach, in which servers are never modified after deployment. To change or patch a system, the team builds a new version from the updated definition and replaces the old one. Drift cannot accumulate because nothing is changed in place, and a suspected compromise can be handled by replacing the system with a clean build.
The following diagram shows configuration drift and the processes that prevent it.

An infrastructure as code change
Configuration or change management
An auditor finds that 30% of web servers no longer match the approved hardening baseline, although no change requests were raised. Which process failed, and what control prevents recurrence?
Unauthorised changes caused drift, so both change management (changes bypassed it) and configuration management (drift went undetected) failed. Automated configuration management that enforces the baseline and reports drift, combined with removing administrators' ability to change servers outside the pipeline, prevents recurrence. Configuration management records what is approved; change management controls how it changes.
What is configuration drift?
Show answer
Unapproved divergence of a system's configuration from its approved baseline.
Exam Tips
Remember for the exam
- Provision from golden images that implement the baseline.
- Drift detection finds unapproved changes.
- Protect automation pipelines and their credentials.