CHANGELOG.md 3.5 KB

Changelog

All notable changes to this project are documented here.

[0.2.0] - 2026-10-23

Added (adopted from comparison with mvance/klutchell/madnuttah unbound images)

  • Supply chain: source tarballs (unbound + ldns) verified by SHA256 (pinned in Dockerfile) and GPG signature (NLnet Labs releases key G2) before extraction.
  • Base images pinned by digest (alpine:3.24, tonistiigi/xx:1.9.0) → reproducible builds.
  • Binary hardening: --enable-pie --enable-relro-now.
  • --enable-subnet (EDNS Client Subnet, inactive by default — opt in via config) and --enable-tfo-server --enable-tfo-client (TCP Fast Open).
  • Test suite extended: 19 → 27 assertions (GPG/SHA256 build-log evidence with per-run cache-bust, PIE via ELF e_type of the final binary, compiled feature flags via unbound -V configure line).
  • README: comparison table of the relevant unbound images on Docker Hub, adopted vs. deliberately skipped improvements (DNSCrypt/libsodium, DoH/ nghttp2, DNSTAP/protobuf-c, distroless final stage).

Verified

  • A/B drop-in test (test/ab-dropin.sh): v0.1.0 vs. v0.2.0 side by side with identical config — 7/7: identical resolution, identical DNSSEC AD-bit behavior, identical CHAOS/hide-identity behavior, identical contract (uid 1500, port 5053, healthcheck, /config volume). v0.2.0 is a pure drop-in for v0.1.0: only Dockerfile (build-time integrity, hardening, feature flags) and tests/docs changed; config/, entrypoint.sh, docker-compose.yml are untouched.

[0.1.0] - 2026-10-23

Added

  • Initial project: security-hardened Unbound Docker image as drop-in replacement for crazymax/unbound.
  • Unbound 1.26.2 from source (security release 2026-10-21) on Alpine 3.24, multi-stage xx cross-compile build, multi-arch capable.
  • ldns 1.9.2 with drill for the healthcheck.
  • Non-root user (uid/gid 1500), zero effective capabilities.
  • Base config with DNSSEC root anchor, DoT cert bundle, cachedb module, /config/*.conf drop-in include, hide-identity/hide-version.
  • Hardened docker compose template: read-only root fs, tmpfs, no-new-privileges, cap_drop ALL.
  • Test suite (runs fully inside Docker): build, healthcheck, version, DNS, DNSSEC AD-bit, uid, CapEff, SUID scan, read-only fs, NoNewPrivs, seccomp, hide-identity, drop-in include accept/reject, attack surface.
  • build.sh with cosign keyless signing.

Security fixes (vs. crazymax/unbound:latest audit, 2026-10-22/23)

  • CVE-2026-96405 (Medium, DoS): fixed by Unbound 1.26.2
  • CVE-2026-109125 (Medium, cache poisoning side channel): fixed by 1.26.2
  • CVE-2026-50106 (Medium, DNSSEC island bypass): fixed by 1.26.2
  • CVE-2026-35501 (Low, NSEC island bypass): fixed by 1.26.2
  • CVE-2026-97206 (High, DoQ UAF): fixed by 1.26.2; not reachable in this image anyway (QUIC not compiled)
  • CVE-2026-77214 / CVE-2026-93990 / CVE-2026-102633 (expat): fixed by Alpine 3.24 expat 2.9.0
  • CVE-2026-58055 (nghttp2) + CVE-2026-85091 (zlib): library stack removed (dns-root-hints dropped; Unbound has root servers built in)
  • SUID-root binaries removed (shadow package dropped from runtime)

Verified

  • Trivy 0.76.1 scan of the built image: 0 CVEs (CRITICAL/HIGH/MEDIUM/LOW), vs. 4 HIGH + 4 MEDIUM for crazymax/unbound:latest
  • Full test suite: 19/19 passed (build, healthcheck, version 1.26.2, DNS, DNSSEC AD-bit, uid 1500, CapEff=0, no SUID, read-only root fs, tmpfs run-dir, NoNewPrivs, seccomp, hide-identity + control, drop-in include accept/reject, no curl, no shadow)
  • Image size: 70.4 MB vs. 93.8 MB (crazymax/unbound)