feat(docker,ci): distroless runtime, compose stack, and Trivy gating#2
Merged
Conversation
- Dockerfile: Rust bookworm + cargo-chef build; distroless cc-debian12 runtime with X11 libs from bookworm; digest-pinned bases - docker-compose: hardened mempool/storage/miner, lineage bridge network, tmpfs-backed /src volumes - GitHub Actions: Trivy filesystem + image scans (CRITICAL/HIGH); .trivyignore with AVD IDs - README: Docker-first workflows, Conventional Commits, Lineage branding; trim stale sections - miner: align OpenGL path logging with info/debug levels
BarryBoot
force-pushed
the
feature/docker-distroless-migration
branch
from
May 5, 2026 16:36
60ea7cb to
429697b
Compare
Upstream tags use a v prefix; @0.36.0 did not resolve.
Regenerated fixtures. OpenSSL 3 CSR flow and compose TLS socket mapping.
- Bump config (toml+json), moka, warp; refresh Cargo.lock for Trivy/high CVEs. - config 0.14: use try_deserialize for node config; fix user_db_mode Test usize. - Moka 0.12: async cache get in API reply cache. - Trivy: ignore GHSA-82j2 rustls-webpki (0.102 line) with justification; skip tasks/ in FS scan. Co-authored-by: Cursor <cursoragent@cursor.com>
- Use debian:trixie-slim for X11/xcb .so copy and gcr.io/distroless/cc-debian13 so glibc matches Debian 13 (bookworm lacked DSA for CVE-2026-0861). - README: document trixie-slim donor stage and cc-debian13 runtime. - Trivy: skip bundled PEM JSON fixtures on fs/image scans; fix image skip-files path. - Add shared config_load for config 0.14 across node binaries and upgrade. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change moves the shipping image to a distroless
cc-debian13runtime (digest-pinned). X11/xcb shared libraries are copied fromdebian:trixie-slim(digest-pinned) so glibc / SONAME alignment matches Debian 13: Bookworm’s glibc had no DSA for CVE-2026-0861, while trixie carries the fixed libc per Debian security tracker.Rust build stages remain on pinned
rust:*-bookworm(cargo-chef, planner, builder); only the runtime donor stage and final distroless base use the Debian 13 / trixie line.CI runs Trivy against the repo filesystem and the built image. README documents a Docker Compose–first local workflow.
What changed
cargo-chefflow on pinnedrust:*-bookworm;.soextraction stagedebian:trixie-slim(replaces bookworm-slim for libc parity with distroless); final stagegcr.io/distroless/cc-debian13@ digest; configs from.docker/confbaked into/etc;WORKDIR/ENTRYPOINTunchanged for distroless (nonroot).read_only,/tmptmpfs,cap_drop,no-new-privileges), singlenode_settings.tomlbind mount, tmpfs-backed/srcvolumes for RocksDB; bridge networklineage..github/workflows/trivy.yml—trivy fs+ image build +trivy image; severity gate; skip bundled PEM-in-JSON fixtures where documented..trivyignore— justified AVD-DS-0001, AVD-DS-0026 with Aquasec links.config_loadhelper forconfig0.14 (replacing deprecatedmerge/set/set_defaultpatterns); refactors across mempool, storage, miner, user, pre_launch, main;upgradealigned.src/miner_pow/opengl.rs(earlier on branch) — miner logging aligned with info/debug expectations..gitignore— keep/promptsand/tasksignored for local planning artifacts.Verification
docker compose configvalidates Compose layout.Notes
tasks/content remains gitignored and was not included in this PR..sodonor.