Use this when the source of truth records intended configuration.
Desired State · Source of Truth
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.
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.
SoT intent → generated config → device
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 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 · 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.
- The source of truth records intent, not observed state.
- Automation renders config from it.
- Changes start in the source.
- 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.
| Example | Desired (source of truth) | Actual (device) |
|---|---|---|
| Interface Gi1/0/10 | VLAN 120, description AP-12 | VLAN 1, no description |
| Device status | Active | Unreachable |
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.
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
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 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%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.
| Layer | Source of Truth → Desired State operational reference |
|---|---|
| Context identity | OpenGitOps 1.0 principles/current glossary + exact revision/input/target identity |
| Persistent intent | Versioned contract/configuration with explicit ownership and prerequisites |
| Verification | Validate inputs/read current state → exercise bounded operation → independent target read-back |
| Output contract | Preserve structured status/IDs/properties before human formatting |
| Failure boundary | Separate source/input/engine/controller execution from downstream target outcome |
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.