Engineering reference

Software configuration management

Software configuration management (SCM) is how a team knows exactly what it built, what it shipped and what changed in between. This reference covers the four classic activities, baselines, branching, builds, environments and traceability, with a checklist to run against your own releases.

  • About 8 minutes to read
  • Sources: NIST, IEEE, NASA, DORA, Martin Fowler
  • For engineering managers and senior engineers

01 · Definition

What is software configuration management?

NIST's definition, from SP 800-128:

“A collection of activities focused on establishing and maintaining the integrity of products and systems, through control of the processes for initializing, changing, and monitoring the configurations of those products and systems throughout the system development life cycle.”

NIST SP 800-128, in the NIST glossary

The IEEE Computer Society applies it to programs, scripts and documentation. For a delivery team it answers four questions about a release: what is in it, who changed it and why, where it runs, and whether that matches the record.

Is SCM the same as version control?

No. Version control keeps the history of files. SCM decides what is under control, which versions form a release, who may change them, and how you prove what runs. Git is to SCM what a ledger is to accounting.

How is it different from change management?

Change management decides whether and when a change reaches production. Configuration management records what the system is before and after it. The two meet in change control.

02 · The model

What are the four activities of configuration management?

The classic model has four activities. IEEE 828 covers identifying configuration items, controlling changes and reporting their status, and lists configuration audit among its keywords. NIST SP 800-128 groups the work into four phases: planning, identifying and implementing configurations, controlling configuration changes, and monitoring.

Illustration: a baseline selects one version of every configuration item. Green marks what changed between 2.13 and 2.14; the numbers match the four activities below.
  1. Configuration identification

    Decide what is under control and give each item an identity. In a pipeline that is more than code: pipeline definitions, build scripts, lockfiles, base images, environment configuration, infrastructure code.

  2. Configuration change control

    Changes to a baselined item are reviewed and approved before they land. DORA found approval works best as peer review during development, with no evidence that more formal external review lowers change fail rates.

  3. Configuration status accounting

    The record of each item through baselines and releases. It should come from systems: commit history, build metadata, deploy logs. A hand-kept spreadsheet is stale by the next merge.

  4. Configuration audits

    Proof that the product matches its record. NASA's handbook names two kinds: a functional audit checks through test results that requirements are met; a physical audit checks that what was built matches its build-to baseline.

03 · Baselines

What is a baseline?

NIST defines a baseline configuration as a set of specifications for a system or configuration item, formally reviewed and agreed on at a given point in time, and changed only through change control. Every release is one.

ClearCase UCM makes it explicit: a baseline identifies one version of every element in one or more components. In Git, a commit pins every file in its repository, so the work moves outside it: dependencies, base images, pipelines and configuration.

  • Mark releases with annotated or signed tags, which Git's documentation says are meant for releases. Never move a release tag.
  • Pin dependencies with a committed lockfile, and images by digest, not by a tag such as latest.
  • Record the configuration version with each release.

04 · Branching

Which branching strategy should you use?

A branching strategy sets how long changes live apart and where a release is stabilized. Martin Fowler's rule for any branch: work out how you will merge it before you create it.

Five branching strategies compared
StrategyHow it worksFitsWatch for
Trunk-based development Small batches merged to one mainline at least daily. DORA advises three or fewer active branches, no code freezes. One version in production, fast automated tests. Unfinished work hides behind a flag until ready.
GitHub flow A short-lived branch per change, reviewed in a pull request, merged, then deleted. Services with one version in production. Branches left open for weeks become long-lived feature branches.
GitFlow Develop, feature, release and hotfix branches. Releases are tagged on the production branch. Several versions in production, such as software installed at customer sites. Its author now suggests a simpler workflow for continuous delivery.
Mainline with release branches Integration stays on the mainline. A release branch stabilizes one version and takes only fixes. Scheduled releases that need a stabilization window. Fix on the mainline first. A drifting release branch gets harder to merge back.
Environment branchesAnti-pattern One branch per environment, each with its own configuration. A temporary workaround at most. Fowler calls it a classic anti-pattern: configuration drifts and causes environment-specific bugs.

Two questions decide most cases. How many versions do you run in production? More versions need release branches. How often do you integrate? Fowler's advice: aim to double your integration frequency.

05 · Builds and artifacts

How do you make a build reproducible?

The Reproducible Builds project sets the strict bar: given the same source code, build environment and build instructions, any party can recreate bit-by-bit identical artifacts. The practical bar comes first: rebuild a release from its tag and get the same result. Both depend on pinning everything the build reads.

  • Build instructions. The pipeline definition and build scripts live in the repository. DORA puts packaging and deployment scripts in version control.
  • Dependencies. A committed lockfile. npm documents package-lock.json as the exact tree generated, so later installs produce identical trees.
  • Build environment. The builder image, pinned by digest, which Docker calls an immutable identifier. It gets no security updates until you move the pin.

Build once, promote the same artifact

Rebuilding per environment gives a different artifact each time. Fowler describes the rule many organizations adopt: once compiled, the same executable runs in every environment. Semantic Versioning forbids changing the contents of a released version. Store the artifact's digest and its provenance, which SLSA describes as verifiable information about where, when and how it was produced.

Further reading

06 · Environments

Where should environment configuration live?

Environment configuration is what differs between test, staging and production: endpoints, sizes, feature switches, credentials. Two rules govern it.

Keep it out of the build. Fowler's rule of thumb: you should be able to check out any version of the product and run it in any environment, with the differences in configuration files or environment variables.

Keep it under change control. DORA puts infrastructure and application configuration in version control, so any environment can be provisioned automatically and its history queried. In practice: a configuration repository or inventory, reviewed like code and applied by a pipeline, as with infrastructure as code. Secrets stay in a secrets manager; the configuration only references them.

How do you detect configuration drift?

Drift is the gap between declared and running configuration. NIST SP 800-128 gives monitoring its own phase, to catch misconfigurations and unauthorized changes. Ansible's check mode reports what a playbook would change without changing anything; diff mode shows before and after.

# Show drift, change nothing
ansible-playbook site.yml \
  --check --diff \
  --limit production

Modules without check-mode support report nothing, so a clean run is a signal, not proof. Schedule it and treat findings as defects. GitOps goes further and reconciles continuously.

07 · Traceability

How do you trace a change from request to release?

Traceability is status accounting you can query: from a running version back to its request, and from a request forward to where it runs. Each step must record the ID of the step before it.

Forward: where does this request run?

  1. RequestPROJ-412

    Its key goes in the branch name or commit message.

  2. Commit9f3c2e1

    Reviewed in a pull request that records the approver.

  3. Buildbuild 418

    Records the commit, builder image digest and lockfile.

  4. Artifactsha256:7d2ae91c

    Immutable, stored with its SBOM and provenance.

  5. Deploymentdeploy 1093

    Records which artifact went where, who approved, and when.

  6. Running systemv2.14.0

    Reports its version, to compare with the deploy record.

Back: why is this version running?

Illustration: the IDs that link a request to a running release.

A quick test: take a release from last quarter and time four answers. Which commits? Who approved? Which tests passed? Which artifact runs now? If that takes a meeting, a link is missing.

08 · In practice

What does configuration management look like at scale?

At Nike, Windows server upgrades for 900+ retail stores ran by hand across five teams: 6 to 8 hours per server, two servers at a time. One self-service pipeline brought that to about 3 hours per server, with 8 in parallel, as the Nike case describes.

In configuration terms, a fleet upgrade is one change applied hundreds of times. Five teams with a checklist keep five partial records; one pipeline keeps one definition and one run history. Repeated repairs are a signal too: at Nike, a device-profile repair that ran 80 times a week, about 35 minutes each, became a single click.

At ASML, self-service CI for the Stage Position Measurement domain ran on Linux across Git and ClearCase environments, standardized for multiple teams and proprietary test environments: the same four activities over two very different version stores. The ASML case has more.

09 · Tools

Which tools does software configuration management need?

No single tool does SCM. Each activity above leans on a different kind of tool, and most teams already have them:

Tools for each configuration management activity
ActivityTool typeExamples
Identification Version control Git, hosted on GitHub, GitLab or Bitbucket
Change control Reviews and required checks before a merge Protected branches in GitHub or GitLab; change records in Jira or ServiceNow
Builds and baselines Artifact repository JFrog Artifactory, Sonatype Nexus Repository, a container registry
Environment configuration Configuration as code and a secrets manager Terraform or OpenTofu, Ansible; HashiCorp Vault or your cloud's secrets manager
Status accounting and audits The records the tools above already keep Pull request history, pipeline logs, artifact metadata

The tools matter less than the links between them: a ticket key in every commit, a commit in every build, a build in every deployment record.

10 · Self-check

Is your configuration management audit-ready?

Run these against one recent production release. Each line is a yes or a no.

Identification

  • Code, pipelines, infrastructure code and environment configuration are versioned, each with an owner.
  • Dependencies are pinned by lockfile, images by digest.

Change control

  • Every production change was reviewed, with the approval recorded.
  • Emergency changes use the same pipeline as normal ones.
  • One artifact serves every environment.

Status accounting

  • Changes since the last release can be listed in minutes, from systems.
  • Every artifact carries its version, commit and build, and its digest is recorded.

Audits

  • Production provably runs the artifact that passed testing.
  • Drift is checked on a schedule, and findings are defects.
  • Last quarter's release can be rebuilt from its tag.

Where to start

Pick one release flow. Tag releases with annotated tags, record the artifact digest at deploy, and let the pipeline write the change record. That covers identification, status accounting and most audit evidence, before any tool decision.

11 · Terms

Glossary

Baseline
An agreed set of versions at a point in time, changed only through change control.
Change control board
The group that approves high-impact changes.
Configuration item
Anything managed as one entity: a service, a library, a pipeline, a settings file.
Digest
A content hash naming one exact artifact. Unlike a tag, it cannot move.
Drift
The gap between the declared configuration and the one actually running.
Functional configuration audit
Checks through test results that the product meets its requirements.
Physical configuration audit
Checks that the built product matches its build-to baseline.
Promotion
Moving the same artifact to the next environment without rebuilding it.

Next step

Put a number on the gaps you found

The free Release Check takes under five minutes and needs no call. It shows what releases cost a year across your applications and where they wait, with up to three fixes for your answers.