mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
The host checked that each package a first build of base recorded is the archive's, but root in the recording build VM chose which signed lists to hand back: it could return only the release pocket's and record an older version than -updates or -security have. Now: - a recording must hand back resolute-updates' and resolute-security's signed InRelease files with lists for the architectures whose lists have the recorded packages (another archive's InRelease, such as archive.ubuntu.com's on arm64, doesn't count), and every non-empty list each InRelease it hands back gives for those architectures, in every component (packages_lists_missing); - a recorded package that the release pocket, -updates or -security lists a newer version of, for its architecture, is refused, naming the package, both versions and the suite (packages_not_newest); -backports doesn't count, as apt installs from it only when asked; - a list's SHA-256 is checked against the verified InRelease files before it's read, so only signed lists are parsed; - apt.sh's recording takes phased updates (APT::Get::Always-Include-Phased-Updates), so apt installs the newest version the lists have. - internal/ubuntu: CompareVersions, dpkg --compare-versions in Go (epoch, upstream, revision, ~ and letters' order; ErrVersion for one that isn't a version); Release.Lists gives the matching lists with their paths, ListsFor, List.Arch, Backports, RequiredSuites. - internal/build: signedEntries returns a signed (entries, each package's architectures, the newest version by architecture and name and its suite); verified, complete, checkNewest, newer; readArchiveList returns an archiveList. - Messages: packages_lists_missing, packages_not_newest. - Tests: CompareVersions' table (Debian policy's ordering and dpkg's cases, invalid versions); ListsFor and Backports on Ubuntu's real InRelease; a recording refused for an older version than -updates has, for a missing -updates or -security InRelease, a missing list, another archive's -security, a missing backports list; kept for the newer version, a newer one in backports, an older one in -security; checkNewest's table. The gpg-made fixtures are signed again by a new test key, with Packages-newer, Packages-security and InRelease-newer, -security, -security-amd64 and -backports added. - Docs: images.md's Base's packages, design.md's trust note (the pocket choice closed; what root in the recording VM still chooses). Co-Authored-By: Claude Opus 5.5 <[email protected]>
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
-----BEGIN PGP SIGNED MESSAGE-----
|
|
Hash: SHA512
|
|
|
|
Origin: Ubuntu
|
|
Label: Ubuntu
|
|
Suite: resolute-security
|
|
Version: 26.04
|
|
Codename: resolute
|
|
Date: Wed, 04 Nov 2026 18:15:15 UTC
|
|
Architectures: amd64 arm64
|
|
Components: main universe
|
|
Description: devvm test archive
|
|
SHA256:
|
|
b93a97bc25c0fcf2a7c11fc411a80cc8e2591574d101ab5cb380a3b710feb1b8 385 main/binary-arm64/Packages
|
|
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 universe/binary-arm64/Packages
|
|
1111111111111111111111111111111111111111111111111111111111111111 2048 main/binary-amd64/Packages
|
|
-----BEGIN PGP SIGNATURE-----
|
|
|
|
iQFPBAEBCgA5FiEEr9e0McdzGOzTKcuGsl/ncJAd00cFAmrrxHMbFIAAAAAABAAO
|
|
bWFudTIsMi41KzEuMTIsMCwzAAoJELJf53CQHdNHvM4H/3G+uTZIZseK/s5J848F
|
|
KiGCQiv/WotISNGZXbRhs6WUv/PNlNibhIv6AYfgpzV2pQTx3QY8D6EsBsqS1oqj
|
|
C2XwvIvE5qP/9JV/pB8j8SdKZ+sCtkLIJSIkivH+z0ERH4vD/mh6hfVMZONx7ZCk
|
|
anD48JrTmA7+UrsvxRMCBEZFApLNlvSejUzc0vjAQwK43BtGmIHbfm62IRR88wwy
|
|
613Q62eSC3Sz5pPqGK4xS2JaRH4ygroN9MWOlYprnsfMApU1j/E+Fc6aD5R49TG/
|
|
67wZ9RQSBu1YH9b0V2LNgccN8VmIwe3u8Kq/qWp1VSwvNrrgmB1cU8X9YerRqLt3
|
|
7II=
|
|
=ULlr
|
|
-----END PGP SIGNATURE-----
|