|
@@ -30,10 +30,54 @@ this image — Unbound has root servers built in) pulls in curl, nghttp2, zlib,
|
|
|
c-ares, brotli and friends. It is dropped, so the runtime image carries none
|
|
c-ares, brotli and friends. It is dropped, so the runtime image carries none
|
|
|
of that stack.
|
|
of that stack.
|
|
|
|
|
|
|
|
|
|
+## Comparison with other unbound images (10/2026)
|
|
|
|
|
+
|
|
|
|
|
+Docker Hub query + source analysis of the most relevant alternatives
|
|
|
|
|
+(2026-10-23): `mvance/unbound` (22.9M pulls), `klutchell/unbound`
|
|
|
|
|
+(12.8M), `sapcc/unbound` (5.8M), `mailcow/unbound` (25.5M),
|
|
|
|
|
+`madnuttah/unbound` (distroless, security-focused),
|
|
|
|
|
+`alpinelinux/unbound` (official Alpine package image).
|
|
|
|
|
+
|
|
|
|
|
+| Aspect | unbound-sec | mvance | klutchell | madnuttah |
|
|
|
|
|
+|---|---|---|---|---|
|
|
|
|
|
+| Unbound version | **1.26.2** | 1.21.1 (2024-10) | 1.26.2 | 1.26.x |
|
|
|
|
|
+| Base | Alpine 3.24, digest-pinned | Debian bookworm | Alpine 3.24.2, digest-pinned | distroless (FROM scratch) |
|
|
|
|
|
+| Tarball SHA256 + GPG | **yes** | SHA256 only | SHA256 only | SHA256 + GPG |
|
|
|
|
|
+| Base image digest pin | **yes** | no | yes | no (own buildenv image) |
|
|
|
|
|
+| Non-root, no SUID | yes | yes | yes | yes |
|
|
|
|
|
+| EDNS Client Subnet | **yes** | yes | yes | yes |
|
|
|
|
|
+| TFO | **yes** | yes | yes | yes |
|
|
|
|
|
+| DNSCrypt (libsodium) | no | no | yes | yes |
|
|
|
|
|
+| DoH (nghttp2) | no | yes | yes | yes |
|
|
|
|
|
+| DNSTAP (protobuf-c) | no | yes | no | yes |
|
|
|
|
|
+| cachedb (hiredis) | yes | no | yes | yes |
|
|
|
|
|
+| Binary PIE + RELRO-now | **yes** | no | no | yes |
|
|
|
|
|
+| Port | 5053 (crazymax-compat) | 53 | 53 | 53 |
|
|
|
|
|
+
|
|
|
|
|
+**Adopted** (no runtime-dependency cost, all test-covered):
|
|
|
|
|
+- SHA256 + GPG verification of both source tarballs (NLnet Labs key G2)
|
|
|
|
|
+- digest pinning of base images (reproducible builds)
|
|
|
|
|
+- `--enable-pie --enable-relro-now` (explicit binary hardening)
|
|
|
|
|
+- `--enable-subnet` (EDNS Client Subnet — multi-WAN/split-horizon capable)
|
|
|
|
|
+- `--enable-tfo-server --enable-tfo-client` (TCP Fast Open)
|
|
|
|
|
+
|
|
|
|
|
+**Deliberately NOT adopted** (surface-area trade-offs against this
|
|
|
|
|
+project's minimal-runtime goal):
|
|
|
|
|
+- DNSCrypt → would pull libsodium into the runtime (DoT/DoH cover the use case)
|
|
|
|
|
+- DoH server mode → would re-add the nghttp2 stack we removed for CVE-2026-58055
|
|
|
|
|
+- DNSTAP → would pull libprotobuf-c; observability value low for a LAN resolver
|
|
|
|
|
+- `FROM scratch` final stage (klutchell/madnuttah) → manual .so copying,
|
|
|
|
|
+ no apk-based updates; our Alpine final stage already has 12 packages
|
|
|
|
|
+- port 53 → 5053 kept for one-line crazymax replacement
|
|
|
|
|
+
|
|
|
## Features
|
|
## Features
|
|
|
|
|
|
|
|
- Unbound **1.26.2** compiled from source on Alpine 3.24 (multi-stage, xx cross-compile)
|
|
- Unbound **1.26.2** compiled from source on Alpine 3.24 (multi-stage, xx cross-compile)
|
|
|
|
|
+- Source integrity: SHA256 + GPG (NLnet Labs release key) for both tarballs;
|
|
|
|
|
+ base images pinned by digest
|
|
|
|
|
+- Binary hardening: PIE + full RELRO (bind now)
|
|
|
- ldns 1.9.2 with `drill` (used by the healthcheck)
|
|
- ldns 1.9.2 with `drill` (used by the healthcheck)
|
|
|
|
|
+- EDNS Client Subnet + TCP Fast Open compiled in (inactive by default)
|
|
|
- Non-root user `unbound` (uid/gid 1500), **zero effective capabilities**
|
|
- Non-root user `unbound` (uid/gid 1500), **zero effective capabilities**
|
|
|
- DNSSEC out of the box: root trust anchor from `dnssec-root` package,
|
|
- DNSSEC out of the box: root trust anchor from `dnssec-root` package,
|
|
|
`auto-trust-anchor-file` in writable run-dir (RFC5011 rollover works with
|
|
`auto-trust-anchor-file` in writable run-dir (RFC5011 rollover works with
|
|
@@ -104,7 +148,10 @@ Covers: build, healthcheck, version pin, DNS resolution, DNSSEC AD-bit
|
|
|
verification (raw DO-bit queries), non-root uid, CapEff=0, no SUID binaries,
|
|
verification (raw DO-bit queries), non-root uid, CapEff=0, no SUID binaries,
|
|
|
read-only root fs, no-new-privileges, seccomp, hide-identity (with control
|
|
read-only root fs, no-new-privileges, seccomp, hide-identity (with control
|
|
|
container proving the identity is revealed when the flag is off), drop-in
|
|
container proving the identity is revealed when the flag is off), drop-in
|
|
|
-include (accept + reject), attack surface (no curl, no shadow).
|
|
|
|
|
|
|
+include (accept + reject), attack surface (no curl, no shadow), supply chain
|
|
|
|
|
+(GPG signatures + SHA256 in build log, cache-bust per run), PIE (ELF
|
|
|
|
|
+e_type of the final binary), compiled feature flags (configure line of
|
|
|
|
|
+`unbound -V`).
|
|
|
|
|
|
|
|
## Migrate from crazymax/unbound
|
|
## Migrate from crazymax/unbound
|
|
|
|
|
|