sow config
Use sow config check after editing sow.yml. It validates the configuration, signing references, and compatibility with existing Repository state. Use sow config show to inspect resolved defaults and inherited settings. Both commands are read-only.
Synopsis
config check accepts --passfile PATH for signing preflights. Priority is CLI, per-key config, then SOW_GPG_PASSFILE. config show does not read password files. See Password files.
sow config check
sow config check parses and validates the complete sow.yml: schema version, names, path collisions, the architecture
permit list, Dist formats, membership policy and signing key references. It reports the Workspace it
resolved and how much it validated.
Options
| Flag | Description | Default |
|---|---|---|
-C, --workdir DIR |
Workspace discovery start directory | current directory |
--passfile PATH |
Password file for this invocation | per-key config, then SOW_GPG_PASSFILE |
--json |
Output JSON | false |
-h, --help |
Show help | — |
Strict field rejection
Unknown keys produce a configuration error:
Use schema: sow/v3 for active workspaces (config check, repo ls/show, and dist ls/show also support read-only inspection on frozen sow/v2 workspaces before migration):
Signing checks depend on the signer:
- SOW unlocks metadata key files and checks them for signing suitability. External GPG metadata keys also perform a small noninteractive signing probe.
- Active RPM package signing checks the selected password file’s format,
rpm/GPG, and secret-key availability. It does not sign a package or prove that the password is correct. RPM macros can affect authentication; an actual package-signing call and verification of its output are the final check.
Before removing an architecture from the Workspace list, remove its use from Dist configuration, membership, and Built state.
sow config show
sow config show prints the effective configuration as YAML for the currently selected scope.
Compare that with the file on disk, which carries only what you wrote:
show filled in protected: false, the inherited per-Dist architectures, limit: 0 and an empty
exclude list. Architectures use canonical family names: x86_64 and aarch64. The corresponding DEB names are amd64 and arm64.
Options
| Flag | Description | Default |
|---|---|---|
--all |
Expand defaults and normalized architectures across the whole Workspace | off |
-C, --workdir DIR |
Workspace discovery start directory | current directory |
-r, --repo NAME |
Select a repository | selection rules |
-d, --dist NAME |
Select a distribution; repeatable | selection rules |
--json |
Output JSON | false |
-h, --help |
Show help | — |
Select configuration with -r and -d
-r and -d narrow the output to the selected objects. This is the fast way to answer “what policy
is actually in effect for this one Dist”:
Without --all, normal Repository selection applies. If the discovery start directory is inside a Dist, SOW selects that Dist unless you provide -d. Otherwise, SOW shows all Dists of the selected Repository. --all shows the entire Workspace and ignores -r and -d.
Signing references
The output contains key references and resolved fingerprints. SOW omits private key contents and passphrases.
Configured passfile paths remain visible. SOW does not add the SOW_GPG_PASSFILE runtime fallback to the displayed configuration.
Examples
Validate before a build in CI:
Diff effective policy across two Dists:
Exit codes
| Code | Trigger |
|---|---|
0 |
Configuration valid, or output printed |
1 |
Runtime or key-resolution failure |
2 |
Usage or discovery error, invalid YAML, unknown field, or unsupported schema |
5 |
Existing state, controlled paths, or recovery records are inconsistent |
6 |
Unknown selection, unusable signing configuration, or configuration incompatible with existing state |
config check validates both the YAML file and its compatibility with existing Repository state.
See also
- sow.yml Reference — every key, with a complete example file
- Membership Policy — how
excludeandlimitare evaluated - Signing Model — key reference grammar and the two trust chains
- sow init — create objects declared in a hand-written config
- sow check — the runtime counterpart that verifies bytes on disk