Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Desired State · Source of Truth

Direct answer

Desired state in a source of truth is the intended configuration recorded there, such as which VLANs a port should carry, which automation turns into actual device configuration.

When to use this

Use this when the source of truth records intended configuration.

First 30 seconds

1. SoT stores desired network intent (IPs, VLANs, devices, roles).

2. Configs generated from it.

3. Differences with reality are drift.

4. Update SoT first, then deploy.

5. Never edit devices directly.

Operational verification

SoT intent → generated config → device

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
OpenGitOps 1.0 principles/current glossary
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.

PlatformOpenGitOps 1.0 principles/current glossary · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when the source of truth records intended configuration.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

3 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 Verification path Verify boundary

Verification has to show both authority and consumption. First identify the exact desired-state revision—commit, version, document digest or equivalent—and confirm it passed the required review/protection rules. Next verify which controller/reconciler read that revision and which target/resource identity it applied. Finally read current state from the target and compare the properties owned by this source. A clean repository alone does not show deployment, and a healthy target does not show it matches the approved revision. When debugging, record repository URL, branch/ref, immutable revision, controller-observed revision and target read-back separately. This makes stale-controller, wrong-environment and manual-drift failures visible instead of collapsing them into 'Git says the config is correct'.

Step 2 Common mistakes Narrow the fault
  • Desired state mixed with observed state.
Step 3 Where it fails Narrow the fault

Separate authority from availability, propagation and runtime correctness. A source can be authoritative yet temporarily unreachable; a controller can be healthy yet pinned to the wrong branch; a target can match the controller's cached desired state while differing from the latest approved revision. State stores and inventories are not automatically sources of truth if they are derived from another system. The first troubleshooting question is 'which system owns this property?', followed by 'which immutable revision should apply?', then 'which revision did the controller actually consume?', and only then 'what does the target report?'. Do not resolve conflicts by updating every copy. Correct the responsible source or the propagation/reconciliation path and verify the downstream layers converge from that authority.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • The source of truth records intent, not observed state.
  • Automation renders config from it.
  • Changes start in the source.
Key checks
  • Intended config/state stored in SoT/git — intent
  • Render configs from SoT — generation
  • Compare intent with actual — drift
ReferenceWhy it matters1 section · depth on demand

In depth

In a source of truth, desired state is the intended network or infrastructure described as data — devices, interfaces, VLANs, IP assignments — from which configuration is generated. It is distinct from the actual state discovered from devices.

ExampleDesired (source of truth)Actual (device)
Interface Gi1/0/10VLAN 120, description AP-12VLAN 1, no description
Device statusActiveUnreachable

Comparing the two highlights both configuration drift and data errors in the source of truth; both need an owner to resolve them.

ReferenceImportant terms & boundaries1 section · depth on demand

Mechanics

A source of truth is authoritative because the operating process chooses it as the durable record of intent, not because every runtime component continuously equals it. Desired state stored there describes what managed systems should become; controllers, inventories, state files and live resources are downstream representations that may lag or drift. The useful model is authority → immutable/versioned revision → controller consumption → reconciliation → current-state observation. If multiple repositories or databases can independently declare the same property, there is no single source of truth for that property and conflicts become operationally ambiguous. Scope matters: one repository can be authoritative for network policy while a CMDB is authoritative for ownership metadata and a secret manager for credentials. Desired state should reference or compose those inputs without silently copying ownership away from their authoritative systems.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Lifecycle

Make authority explicit through repository ownership, review policy, protected change paths and revision history. Desired-state changes should be proposed and reviewed at the source, then consumed through a deterministic deployment/reconciliation path; emergency out-of-band changes need a documented follow-up decision to adopt them into intent or revert them. Avoid generated files becoming accidental authorities when they can be rebuilt from a more primary source. Record schema/version and external references so a historic revision remains interpretable. If the source of truth moves, migrate ownership deliberately and define a cutover point rather than letting old and new controllers write concurrently. Regularly verify that active controllers are following the expected repository/branch/revision and that stale cached copies cannot silently continue enforcement.

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 docOpenGitOps 1.0 principles/current glossary 1.0/current

Authoritative/upstream documentation reviewed for bounded claims in Source of Truth > Desired State. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://github.com/open-gitops/documents/blob/main/GLOSSARY.md · confidence 94%
Embedded reference data

Quick lookup tables

Source of Truth → Desired State · operational reference

Context-specific ownership, verification, output and failure-boundary lookup for Source of Truth → Desired State.

LayerSource of Truth → Desired State operational reference
Context identityOpenGitOps 1.0 principles/current glossary + exact revision/input/target identity
Persistent intentVersioned contract/configuration with explicit ownership and prerequisites
VerificationValidate inputs/read current state → exercise bounded operation → independent target read-back
Output contractPreserve structured status/IDs/properties before human formatting
Failure boundarySeparate source/input/engine/controller execution from downstream target outcome
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

Source-of-truth output should emphasize identity and lineage: authoritative system, immutable revision, object path/key, schema version, controller-consumed revision and target reconciliation status. Human-readable file content is useful context but insufficient when multiple branches or generated artifacts exist. Prefer commit IDs/digests and resource IDs so two observers can show they are discussing the same intent. A controller status that says 'synced' should be tied to a specific revision; otherwise it may describe a stale cache. Do not log raw secret material merely because the desired state references secret-backed values—record secret identifiers/versions instead. For closure evidence, keep the approved revision plus downstream read-back so later investigation can reconstruct whether the source, controller or runtime diverged.

Confirmation

Confirm action

Continue?