@@ -88,7 +88,7 @@ Recommended: |
88 | 88 | Required for maintained releases: |
89 | 89 |
|
90 | 90 | - identify the source commit and build inputs; |
91 | | -- publish checksums for downloadable artifacts; |
| 91 | +- publish SHA256 checksums for downloadable artifacts; |
92 | 92 | - document image names, tags, and digests; |
93 | 93 | - use only `vMAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH` for every new |
94 | 94 | PastureStack-owned Git tag, GitHub Release, package version, and image tag; |
@@ -106,6 +106,42 @@ Required for maintained releases: |
106 | 106 |
|
107 | 107 | Package and container publication remains disabled until the repository has an approved release workflow and ownership policy. |
108 | 108 |
|
| 109 | +### Package integrity and producer/consumer compatibility |
| 110 | + |
| 111 | +Required when maintaining a release package or changing its installer contract: |
| 112 | + |
| 113 | +- Use SHA256 for both the outer archive and the payload integrity checks consumed |
| 114 | + by the installer. A valid outer digest does not prove the contents satisfy the |
| 115 | + installer contract, and checksums do not replace trusted release provenance. |
| 116 | +- Packages consumed by the shared host installer must contain a single package |
| 117 | + root with `SHA256SUMS` and `SHA256SUMSSUM`. Verify the payload and manifest with |
| 118 | + the consumer's exact path and working-directory semantics, using safe extraction |
| 119 | + confined to the isolated package root. SHA256 values are 64 hexadecimal digits. |
| 120 | +- Current installers must reject missing, malformed or mismatching SHA256 data; |
| 121 | + never fall back to SHA1 or MD5. Legacy SHA1 manifests may be additional metadata |
| 122 | + only for documented older consumers; they do not satisfy current acceptance. |
| 123 | + This does not require rewriting Git object identifiers or immutable history. |
| 124 | +- Trace the actual producer release through Server's final image, inherited |
| 125 | + archives, advertised download endpoint and consumer verifier. Updating source |
| 126 | + packaging alone does not update a pinned or inherited release asset. Keep the |
| 127 | + affected README, compatibility notes and release coordinates aligned. |
| 128 | +- Test the final candidate archive with the actual consumer verifier: accept the |
| 129 | + valid package; reject missing manifests, SHA1-only metadata, invalid manifests |
| 130 | + and modified payloads. Source markers, filename checks, reconstructed fixtures |
| 131 | + and outer checksums alone are not sufficient evidence. |
| 132 | +- Changes to this chain, or a confirmed gap in it, require download, installation |
| 133 | + and registration in an isolated fresh-host environment without an existing |
| 134 | + package cache. Existing-host workloads, `/ping` and unrelated feature tests do |
| 135 | + not prove registration. Check direct sibling packages sharing that verifier; |
| 136 | + do not rerun registration for unrelated text or layout changes. |
| 137 | +- Publish corrected bytes under a new numeric version; never replace a published |
| 138 | + asset or ask operators to manufacture missing checksum files. Record a known |
| 139 | + incompatibility as unresolved even when other feature tests passed. |
| 140 | + |
| 141 | +The machine-readable policy records these requirements, but does not itself |
| 142 | +install or enforce a CI check. Automatic enforcement must be verified in each |
| 143 | +affected release workflow before being claimed. |
| 144 | + |
109 | 145 | ## 8. Migration acceptance |
110 | 146 |
|
111 | 147 | A repository is accepted only when the [migration checklist](MIGRATION_CHECKLIST.md) is complete and evidence is linked from a migration issue. Exceptions must identify the owner, risk, and follow-up deadline. |