Skip to content

v0.3.0 - #5

Merged
peaklabs-dev merged 31 commits into
mainfrom
next
Nov 12, 2026
Merged

peaklabs-dev merged 31 commits into
mainfrom
next

Conversation

@peaklabs-dev

@peaklabs-dev peaklabs-dev commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Scanners now find SQLite, tini and BusyBox in the image, the health check no longer fails or blocks writes while an application writes, and the home of nonroot moves out of the data directory.

Security

  • Moved the home of nonroot from /var/lib/sqlite to /home/nonroot, sqlite3 runs the .sqliterc of the home on every start, and every user can write /var/lib/sqlite
    • sqlite3 reads its startup file from /home/nonroot/.sqliterc, which only nonroot can write
    • The working directory stays /var/lib/sqlite

Changed

  • Alpine in the build stage from 3.24.3 to 3.24.4
  • Image labels to one set that every image uses
    • dev.peakimages.image gains distro, variant, flavor, shell and package-manager
    • dev.peakimages.image.upstream.version replaces dev.peakimages.sqlite.version
    • dev.peakimages.sqlite.extensions, dev.peakimages.tini.version and dev.peakimages.busybox.version are removed, README.md lists the extensions and the SBOM the packages
    • org.opencontainers.image.licenses names the license of the image and of SQLite, and base.name is empty with an empty base.digest for an image built from scratch
  • Vendor and authors labels from peakimages to PeakImages, the name as it is written everywhere but in a URL or an image name

Fixed

  • Health check failing with database is locked while an application writes, and making the writes of an application without a busy timeout fail
    • The health check reads every database with immutable=1, which takes no lock
    • When that read fails, it opens the database as before, with a busy timeout of 3 seconds
  • Scanners listing the wrong packages and the wrong OS, syft found only busybox 1.37.0, grype reported two BusyBox CVEs Alpine has fixed and none of SQLite, and Trivy found nothing
    • sqlite3 carries a package note and the image the apk package database records of tini and BusyBox, syft and grype list all three, Trivy all but SQLite
    • A scanner reports the image as Alpine, the release tini and BusyBox are taken from, instead of BusyBox or no OS, the same way Docker Hardened Images does
    • The SBOM attestation lists the same three packages as before, it was already correct, but a scanner does not read it and makes its own list from the image
    • The syft document in /var/lib/db/sbom that BuildKit made the SBOM attestation from is gone, BuildKit runs syft, which reads the package note and the apk package database natively
    • syft no longer needs the --select-catalogers +sbom-cataloger flag to read the custom SBOM in the syft JSON file, as its default list is now correct too

- a local tag that differs from origin failed the fetch with "could not fetch origin" and no reason, as --quiet also hid the rejected tags
- delete the untagged manifests no tag references on docker.io, which the undocumented manifests endpoint of the Docker Hub API lists
- delete on docker.io the versions ghcr.io deleted last, so a run that stops halfway leaves nothing behind
- delete only manifests older than a day and a shared image after the last index that references it
- sign in to ghcr.io and the Docker Hub API, with the logins on stdin and the ids and digests checked before a delete
- keep the pull request images of the variants VARIANTS lists
- show the sizes of both registries, every layer counted once
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Image size

pr-5 compared with latest (3.54.1-v0.2.0).

Platform Compressed pr-5 Compressed latest Change On disk pr-5 On disk latest Change
linux/386 1.41 MB 1.41 MB +80 B (+0.0 %) 4.13 MB 4.11 MB +16.5 kB (+0.4 %)
linux/amd64 1.40 MB 1.40 MB -1.6 kB (-0.1 %) 4.11 MB 4.10 MB +14.8 kB (+0.4 %)
linux/arm/v6 1.42 MB 1.42 MB -214 B (-0.0 %) 4.31 MB 4.29 MB +20.3 kB (+0.5 %)
linux/arm/v7 1.32 MB 1.32 MB +194 B (+0.0 %) 3.38 MB 3.36 MB +20.7 kB (+0.6 %)
linux/arm64 1.42 MB 1.42 MB -6 B (-0.0 %) 4.30 MB 4.28 MB +16.4 kB (+0.4 %)
linux/ppc64le 1.50 MB 1.50 MB -99 B (-0.0 %) 4.77 MB 4.75 MB +16.3 kB (+0.3 %)
linux/riscv64 1.46 MB 1.46 MB +1.9 kB (+0.1 %) 3.97 MB 3.96 MB +18.3 kB (+0.5 %)
linux/s390x 1.46 MB 1.46 MB +1.2 kB (+0.1 %) 4.66 MB 4.64 MB +17.5 kB (+0.4 %)

Compressed is what docker pull downloads, the CONTENT SIZE of the platform in docker image ls --tree. On disk adds the unpacked files in 4 KiB blocks of ext4, the DISK USAGE that Docker Desktop shows, as the containerd image store keeps both. Neither counts the SBOM and provenance attestations.

- URLs, image names and label keys keep the lowercase handle
- the SBOM attestation was correct, but a scanner never reads it, it makes its own list from the image, and that list was wrong in syft, Grype and Trivy
- syft listed busybox 1.37.0 alone without --select-catalogers +sbom-cataloger, Grype and Trivy could not read the image correctly at all
- removes the syft document in /var/lib/db/sbom that BuildKit made the attestation from
- the changelog of v0.2.0 and the version pull request template have a Refactored section, which no change file could write
- on v0.2.0 a .sqliterc that any user wrote into the data directory ran in every health check, as nonroot
@peaklabs-dev
peaklabs-dev marked this pull request as ready for review November 12, 2026 18:10
@peaklabs-dev
peaklabs-dev merged commit 3952ea7 into main Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant