Version (kind: version)
Pinned tool/image/chart/remote versions with rationale. The single place an operator changes to
perform an upgrade — every other document declares what it needs; this one declares which
version of it. A pin’s reason is schema, not a comment, so tooling that rewrites version/
available can never silently erase why a pin is held.
Only ported the one shape a real census found actually used — v1’s version/version-lock
promotion/rollback/canary/floating-pin machinery is not carried over (zero real usage found).
Schema
spec.pins.images— replaces a module service’s wholeimage, keyed by the service name. The value is a whole image reference with a tag, a digest or both (docker.io/library/postgres:16-alpine,postgres@sha256:<hex>), never a tag alone:db: 16-alpinewould run the image16-alpine. Another value is an error (image_pin_invalid), andstrata version setrefuses to write it.availableis free textspec.pins.charts— Helm chart version pins, keyed by chart/module namespec.pins.remotes— overrides a solution.md remote’sreference(only valid when that remote isfetch: strata— anfetch: externalremote is placed by CI before strata runs, so pinning it can’t do anything)spec.pins.artifacts— overrides anartifactdocument’simage_tag: a tag, a digest (sha256:<hex>) or both (1.4.2@sha256:<hex>, see Tag and digest). Another shape is an error (artifact_tag_invalid), andstrata version setrefuses to write itspec.pins.assets— overrides the gitreferenceof anassetthat declares its ownspec.location, keyed by the asset’s name (only valid when itslocation.fetchisstrata; an asset using a manifest remote is pinned underremotes)
Each pin is either a bare string (shorthand — nothing held back) or structured:
version— the pinned valuestatus—current(default),held, orunverified— the latter two requirereasonavailable— the version known to be available upstream (refresh tooling may rewrite this freely)reason— why the pin is held/unverified — never rewritten by toolingreviewed— date the pin was last looked at
Example
apiVersion: strata.huybrechts.xyz/v2
kind: version
meta:
name: prd
spec:
pins:
images:
# Shorthand: nothing is held back. Keyed by the module service's name.
portainer: portainer/portainer-ce:2.39.3-alpine
db:
version: docker.io/library/postgres:16-alpine
status: held
available: 18.6-alpine
reason: "postgres majors need pg_upgrade/dump-restore; plan as its own migration task"
reviewed: 2026-09-08
charts:
# Keyed by the chart module's document name.
authentik:
version: 2026.5.2
status: unverified
reason: "chart version could not be confirmed upstream; re-verify before bumping"
reviewed: 2026-09-08
artifacts:
# Overrides `image_tag` of the artifact named example-api.
example-api: 1.4.2
remotes:
infra: v1.0.0
assets:
contoso-api: v1.5.0
This is config/versions/prd.yaml, the working example in this repository.
Several documents per deployment
A deployment’s spec.version names one version document or a list of them, and the pins of
every listed document apply together. That lets several products in one ring share what they have in common
without copying it: a shared document holds the common pins, and each product keeps its own.
# versions/prd-core.yaml - the shared part, listed by every product's prd deployment
spec:
pins:
remotes: { iac: v2.1.0 }
---
# versions/prd-datahub.yaml - one product's pins; its tag says which ring it is
spec:
promotion: { ring: prd, order: 3 }
pins:
artifacts: { datahub-api: 1.4.0 }
---
# deployments/base-prd.yaml - through extends, version lists append (base first)
spec:
partial: true
version: [prd-core]
environments: [prd]
---
# deployments/datahub-prd.yaml - effective: [prd-core, prd-datahub]
spec:
extends: base-prd
workspace: datahub
version: [prd-datahub]
Every pin has one owning document per deployment. strata validate checks each deployment’s listed documents
together; the findings are listed under Findings. How it works, and why it is built this way:
version composition.
Which targets a deployment uses: its workspace’s enabled module services (
images), chart modules (charts), every remote a reached document names, every artifact a service,${artifact:}token orstore: artifactvariable names, and every asset its execution steps select.--pin NAMEonbuild run,deploy run,deploy images,policyandintegrationis repeatable, and what it names replaces the deployment’s whole list for that run. Leaving out a document that pins something the deployment uses is a warning (version_pin_dropped): that target falls back to its own declared value.Pin logging names the document each pin came from.
build runwrites the build’s ownversion.yaml(an ordinary version document with only the pins it used) next toresolved.yaml, whoseversionlists the documents,pinned_bysaysspec.versionor--pin, andpin_sourcesnames each pin’s document.deploy runcompares a Helm build’s chart and artifact pins withversion.yamlby value (build_version_mismatch).strata promote status WORKSPACEreads the workspace’s deployments: its rows are the pins they run, with the owning document (markedsharedwhen deployments of another workspace list it too).promote applywrites each pin into its owner, and skips a shared document unless--sharedis given, and a document only some of the ring’s deployments list (a customer’s own). Without a workspace,promote status --ring prdshows what the whole ring runs, every workspace in one table with a workspace column.One customer at a time. With a pin per customer in each ring document (
assets/contoso-api),--key PATTERNnarrowspromote applyandpromote statusto the pins whosecategory/targetmatches:assets/contoso-api,assets/c10*,remotes/*. Repeatable; quote the pattern. Every other pin is left exactly as it is.promote status WORKSPACE --key 'assets/contoso-api'shows where that customer is in every ring.promote apply WORKSPACE RING --key 'assets/contoso-api' --dry-runshows what would change, grouped by file (~ old -> new,=for a pin rewritten at the same value,-for one skipped and why), and writes nothing.--changed-onlyleaves a pin already at the preceding ring’s value alone, itsstatus,reasonandreviewedincluded, so aheldpin that did not move stays held. Without it every common pin is rewritten as promoted today.applyends withredeploy:(would redeploy:with--dry-run), every deployment that runs a pin whose value changed, from the document written, other workspaces’ included when--sharedwrites a shared document (JSONdeployments): what a pipeline should build and deploy next (CI pipeline).A pattern with an unknown category (
asset/…), one that matches nothing in the preceding ring, or one that matches only pins the ring does not have exits 2, all reported together, and nothing is written:promotenever creates a pin (strata version setdoes).
What runs where. A pin says what a deployment should run; a deploy that failed, was cancelled or ran only some steps leaves it running something older. Every deploy records the pins its build applied in its audit record (
_manifest.json:pins,versions,pinned_by; audit trail), and two commands read them back from the solution’s git audit sink:strata deploy status [DEPLOYMENT] [--workspace W] [--ring R] [--key PATTERN]compares each deployment’s last complete, successful deploy with its pins now:current,behind(~ key deployed -> pinned,+added since,-removed since),never,destroyed, orunknownwith the reason (a deploy recorded before strata 2.15). A deploy made with--pinis compared with those documents as they are now, any other with what the deployment lists now. A failed, partial or--stage/--scoperun never counts; it is shown as the last attempt.--checkexits 3 onbehindornever, and JSON lists them inbehind: a gate before promoting to the next ring.strata promote status WORKSPACE --deployedadds adeployedcolumn: of the deployments that use each pin, how many run its value,3/3or2/3 (qas-contoso: v1.3.0), naming each one that runs another value, was never deployed, is unknown or destroyed.
Both need one
gitaudit sink;promote statuswithout--deployedreads nothing.strata version show NAMElists a document’s pins and the deployments that list it.
No spec.workspace
A version document names no workspace: the deployments that list it decide where it applies, so one document can
be shared by deployments of several workspaces. spec.workspace was removed in strata 2.7: a document that still
declares it fails to load, with a message saying to delete the line. (ADR-0063, ADR-0064, ADR-0065.)
Findings
What strata reports about version documents and the deployments that list them. Every finding below carries a
hint: the console prints it under the finding (hint: ...), and JSON output has it as diagnostics[].hint.
Code |
Severity |
When |
What to do |
|---|---|---|---|
|
error |
two documents one deployment lists pin the same target, even with equal values |
remove the pin from one; a pin several products share belongs in a shared document they all list |
|
error |
two documents one deployment lists are tagged for different rings |
tag only the ring’s product document; leave shared documents untagged |
|
error |
|
rebuild with the same versions, or deploy what the build holds |
|
warning |
a document the deployment lists itself pins nothing it uses, while other deployments do |
list this workspace’s document instead ( |
|
warning |
one written list names a document twice (repeating a document the base lists is fine) |
remove the repeat |
|
warning |
deployments of one ring run a shared (untagged) document’s pin at different values |
list one shared document in every deployment of the ring |
|
warning |
a |
add that document to |
|
information |
a pin none of the deployments listing the document uses |
nothing for a pin staged ahead of its use; otherwise remove it |
|
information |
a deployment in no ring while others of its workspace are in a rollout |
list the ring’s tagged document too, or leave it out on purpose |
|
information |
an untagged document no deployment lists (a tagged one is |
nothing if CI uses it through |
|
warning |
a pin names no module service, chart module, remote, artifact or asset |
remove it ( |
Notes
A pin may only target something strata itself materializes. Tool binaries (Terraform, Helm) are placed by CI before strata runs, so there is no
pins.toolscategory — the version a recipe expects lives on theprovisioner’sintegrationbinding instead, as an assertion strata checks, not an install instruction.strata validatechecks pin existence/applicability: a pin naming no module service, chart module, remote, artifact or asset is astale_pinwarning. Animagespin is also a warning when it names another image than the service runs (image_pin_renamed;postgresanddocker.io/library/postgresare the same image), or when the service declares noimage(pin_not_applicable: nothing to replace; a service with anartifactis pinned underartifacts).images,charts,remotesandassetspins are applied bybuild run;artifactspins are applied wherever the artifact is resolved (store: artifact, build and deploy).--pin NAMEonbuild run/deploy runoverrides a deployment’sspec.versionfor that run only (repeat it for several documents).A target with no current value of its own (a module service with no
image) is never seeded byversion new --fromor offered as a pin to add byversion update: a pin must have a non-empty value. An artifact with a blankimage_tagis the exception forversion update: with no pin it has no tag at all, so it is reported as needing a version (pin_needed), though still never seeded. An artifact no document references is not offered at all;version updatenames it once (artifact_unused). One that is referenced but not deployed yet (staged) is offered as usual. A pin it already has is not stale and stays.strata version update NAMElists the pins you could add (each target with no pin yet, seeded with its current value) and the pins to remove (stale ones). It never edits the file and exits 0, since a target with no pin is normal. Add--checkto exit 3 when anything is left to add or remove, for a CI gate. An artifact with no tag and no pin is a warning even without--check, and an error with it. When deployments list NAME, only the targets they use are offered, and none another of their listed documents already pins; a document no deployment lists yet is compared with the whole solution.