Skip to content

feat(docker,ci): distroless runtime, compose stack, and Trivy gating#2

Merged
BarryBoot merged 5 commits into
mainfrom
feature/docker-distroless-migration
May 6, 2026
Merged

feat(docker,ci): distroless runtime, compose stack, and Trivy gating#2
BarryBoot merged 5 commits into
mainfrom
feature/docker-distroless-migration

Conversation

@BarryBoot

@BarryBoot BarryBoot commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

This change moves the shipping image to a distroless cc-debian13 runtime (digest-pinned). X11/xcb shared libraries are copied from debian: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

  • Dockerfilecargo-chef flow on pinned rust:*-bookworm; .so extraction stage debian:trixie-slim (replaces bookworm-slim for libc parity with distroless); final stage gcr.io/distroless/cc-debian13 @ digest; configs from .docker/conf baked into /etc; WORKDIR / ENTRYPOINT unchanged for distroless (nonroot).
  • docker-compose.yml — mempool, storage, miner with hardened defaults (read_only, /tmp tmpfs, cap_drop, no-new-privileges), single node_settings.toml bind mount, tmpfs-backed /src volumes for RocksDB; bridge network lineage.
  • .github/workflows/trivy.ymltrivy 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.
  • README — Docker Compose quickstart, image bump checklist (trixie-slim + cc-debian13), Conventional Commits git flow, Trivy section; Lineage-oriented wording.
  • Node binaries — shared config_load helper for config 0.14 (replacing deprecated merge / set / set_default patterns); refactors across mempool, storage, miner, user, pre_launch, main; upgrade aligned.
  • src/miner_pow/opengl.rs (earlier on branch) — miner logging aligned with info/debug expectations.
  • .gitignore — keep /prompts and /tasks ignored for local planning artifacts.

Verification

  • docker compose config validates Compose layout.
  • Confirm Trivy workflow passes on this branch after merge (first image build may be slow).

Notes

  • tasks/ content remains gitignored and was not included in this PR.
  • Bookworm vs trixie: compiler image is still bookworm; runtime tracks Debian 13 via distroless cc-debian13 + trixie-slim .so donor.

- 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
BarryBoot force-pushed the feature/docker-distroless-migration branch from 60ea7cb to 429697b Compare May 5, 2026 16:36
BarryBoot and others added 4 commits May 5, 2026 19:41
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>
@BarryBoot
BarryBoot merged commit a39ee1d into main May 6, 2026
2 checks passed
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