SOW 0.7.0 adds flat RPM pruning and a shared password-file signing interface. It also fixes defects in migration, recovery, publication, RPM signature verification, and version ordering found during the release review.
Availability: this version is being prepared as a GitHub draft release. Public binary downloads remain at 0.6.1 until the draft is published. The documentation describes 0.7.0; check sow version before using its new options.
These notes cover the changes since 0.6.1. Database schema v13, configuration schema sow/v3, and the public repository layout stay unchanged. Workspaces on 0.5.0 through 0.6.1 need no schema migration.
Prune old RPM versions
sow prune DIR keeps the highest Epoch/Version/Release for each package name and architecture, publishes the filtered index, then deletes older RPMs.
--dry-runvalidates and previews without writes. Each repeatable--protect NAMEpreserves all versions of an exact package name and must match a package.--metadata-timestamp SECONDSsets the index publication time, with the same default of0ascreate.- Replacement packages must pass embedded digest checks. SOW binds the verified and indexed bytes to a stable file identity, including change time, and checks it before every deletion and before completion. An in-place rewrite with restored size and mtime stops further deletion.
- Interrupted cleanup can be resumed. An existing
repo_completemarker is refreshed only after successful completion. Errors report completed changes; already deleted packages are not restored.
Prune works on top-level regular binary RPMs in a local publication source. It rejects managed workspaces, DEB packages or indexes, package symlinks, source RPMs, equal EVRs within a name/architecture group, RPM v6 packages, signed repomd.xml, and independent metadata that SOW cannot generate. It does not sign packages. Clients with cached old indexes may still need the old RPMs: account for that before publishing a pruned repository.
See the prune command reference.
Sign with password files
Use --passfile PATH, SOW_GPG_PASSFILE, or a per-key passfile in sow.yml for protected RPM package keys and RPM/APT metadata keys, including GPG agent keys.
The priority is CLI, per-key configuration (including a legacy passphrase reference), then environment. The file is one nonempty UTF-8 line, at most 64 KiB; one final LF or CRLF is removed without trimming spaces or tabs. Use a literal path, not file://. Relative CLI/environment paths use the current directory; configured paths use the workspace root. No default file is searched.
The interface also covers signing preflight, initialization, migration, leaf export, and recovery of interrupted operations. Credentials do not enter process arguments, repository state, or public files. Password files must be regular files with no symlinks in the path. Keep them outside the repository with private access permissions. Legacy metadata passphrase references remain supported.
See the password-file contract, including command coverage and external GPG requirements.
RPM compatibility
- ECDSA and EdDSA signatures: accept these header signatures in RPM’s tag 267 (
RPMSIGTAG_DSA), where modern RPM stores them. Real Ed25519 and ECDSA packages now verify; a mismatched RSA signature in that tag remains rejected. - Caret ordering: fix Version and Release comparisons so a snapshot such as
2.0^20250611sorts before2.0.1. Managed version limits consequently retain the newer release. - Foreign metadata:
createkeeps its existing behavior of replacingrepomd.xmlwithout groups, updateinfo, modules, or unknown records that SOW does not generate. This preserves compatibility with legacy Pigsty repositories, including the modules generated by Pigsty v4.4.0 on EL8/9. Human output now warns about dropped types; JSON output addsdropped_metadatawhen nonempty. The external metadata files and signatures themselves are not maintained by SOW. - Prune metadata guard: prune rejects those independent records before mutation and rechecks before publication. SQLite and zchunk encodings of the package indexes are allowed. Prune also rejects an old index larger than the 16 MiB inspection limit. Create can still replace oversized or malformed indexes, but cannot report types it could not inspect.
If clients need the extra metadata, continue maintaining it with the appropriate generator. Refresh external repomd.xml.asc signatures after rebuilding.
Managed repositories and recovery
- Migrated repositories remain writable. A completed C2 migration retains the identity of the Generation it created. Later builds no longer cause
check,build,add, orgcto reject that migration anchor, andrepo rmno longer mistakes a completed migration for an active transition. Affected repositories recover after upgrading without manual database repair. - Withdraw all published pointers. Removing a Dist, architecture, or signing companion checks the complete published Generation, including views unchanged by the latest publication. Later publication can remove the old pointers correctly.
- Unrelated offline targets no longer block operations. Publication, abort, and target GC compare the selected target against prospective paths of other targets. Actual physical path overlap remains rejected.
- Recover interrupted plan writes. Empty, partial, or hash-invalid GC plans in the planned phase can be discarded before any deletion. Retained-removal plans can be rebuilt while the original target still exists. Contradictory state after destructive work remains an error.
- Export carried-forward Dists.
export rpm-leafaccepts a clean Dist that a later Generation did not rebuild, with or without signing. - Tolerate a backward clock step. Mutation recovery identifies the sole active operation by its ID instead of choosing by wall-clock order.
Dependencies and release checks
| Component | 0.6.1 | 0.7.0 |
|---|---|---|
| AWS SDK core / S3 | 1.47.3 / 1.114.4 | 1.47.8 / 1.114.9 |
| Smithy | 1.28.6 | 1.28.8 |
| SQLite / libc | 1.61.0 / 1.79.0 | 1.62.0 / 1.80.1 |
| Debian package parser | 0.21.1 | 0.21.3 |
| YAML | go.yaml.in/yaml/v3 3.0.5 |
go.yaml.in/yaml/v4 4.0.0 |
| GoReleaser | 2.18.3 | 2.20.0 |
Go 1.27.3 remains the build baseline. YAML retains strict single-document validation and canonical configuration output. The bounded local RPM parser patch and third-party notices are updated with the dependency changes.
Integration now requires protected-key signing tests on EL8, EL9, and EL10. The EL8 test detects whether rpmsign --rpmv3 exists and skips only the unsupported repeated-signature case. Release gates cover unit and race tests, APT/DNF clients, S3-compatible publication, static analysis, vulnerability reachability, reproducible clean-source builds, and archive/RPM/DEB contents. Hosted R2 live testing is optional and was not run for this review; macOS amd64 was cross-built but not executed on the arm64 review host.
Upgrade
Stop writers, back up the complete workspace while preserving hard links, install 0.7.0, then run these commands for each configured Repository:
An unchanged build is a no-op. Workspaces from 0.3 or 0.4 still need sow repo migrate REPOSITORY first. Plain repositories have no database migration.
A configuration containing passfile cannot be loaded by 0.6.1 or older; remove those fields before downgrading. The no-symlink rule for password files remains in force. RPM v6 is not supported.
The release produces Linux and macOS archives for amd64 and arm64, two RPMs, two DEBs, and SHA256SUMS. See the installation guide and all changes since 0.6.1.
