diff --git a/.cargo/audit.toml b/.cargo/audit.toml index 1677504..9b1bb77 100644 --- a/.cargo/audit.toml +++ b/.cargo/audit.toml @@ -59,4 +59,33 @@ ignore = [ # k256, p256, ecdsa, alloy-signer 2.0.4. The elliptic-curve 0.13 line requires # crypto-bigint ^0.5, so it cannot update without moving off elliptic-curve 0.13. "RUSTSEC-2026-0387", -] \ No newline at end of file + + # hickory-proto / hickory-resolver 0.25.2 via libp2p-dns 0.44.0 → libp2p 0.56.0 → + # arc-malachitebft-*. Fixed by moving malachite to libp2p 0.57 (hickory 0.26). + # DNSSEC validation is not compiled in (no dnssec-* feature enabled): + "RUSTSEC-2026-0504", + "RUSTSEC-2026-0505", + "RUSTSEC-2026-0511", + "RUSTSEC-2026-0512", + "RUSTSEC-2026-0514", + "RUSTSEC-2026-0530", + "RUSTSEC-2026-0531", + "RUSTSEC-2026-0532", + # Zone-file and SVCB/HTTPS text parsing; the resolver only parses wire format: + "RUSTSEC-2026-0487", + "RUSTSEC-2026-0489", + "RUSTSEC-2026-0490", + # Memory amplification from header record counts; reachable only through DNS + # responses to operator-configured `/dns` peer addresses: + "RUSTSEC-2026-0491", + + # rmcp 1.4.0 - unbounded response buffering in Streamable HTTP clients; fixed in >=3.9.0. + # Used only by quake (dev tooling) with the server and stdio transports; the + # Streamable HTTP client is not compiled in. + "RUSTSEC-2026-0462", + + # libp2p-gossipsub 0.49.5 - unbounded backoff state from PRUNE messages for unknown + # topics; fixed in >=0.50.1, which requires libp2p 0.57. Transitive dependency via + # arc-malachitebft-network (malachite v0.8.2); cannot update without bumping malachite. + "RUSTSEC-2026-0534", +] diff --git a/BREAKING_CHANGES.md b/BREAKING_CHANGES.md index 4fa7b39..a57df54 100644 --- a/BREAKING_CHANGES.md +++ b/BREAKING_CHANGES.md @@ -12,6 +12,12 @@ Entries are split by audience. A change appears under `### For Validators` when Compare and release-notes links resolve once the corresponding tag is published at [`circlefin/arc-node`](https://github.com/circlefin/arc-node). +## [v0.8.6] + +**Changes:** [v0.8.5...v0.8.6](https://github.com/circlefin/arc-node/compare/v0.8.5...v0.8.6) -- [release notes](https://github.com/circlefin/arc-node/releases/tag/v0.8.6) + +No breaking changes in this release. + ## [v0.8.5] **Changes:** [v0.8.4...v0.8.5](https://github.com/circlefin/arc-node/compare/v0.8.4...v0.8.5) -- [release notes](https://github.com/circlefin/arc-node/releases/tag/v0.8.5) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69775eb..e0aa51f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ All notable changes to arc-node are documented in this file. +## [v0.8.6] + +**Changes:** [v0.8.5...v0.8.6](https://github.com/circlefin/arc-node/compare/v0.8.5...v0.8.6) -- [release notes](https://github.com/circlefin/arc-node/releases/tag/v0.8.6) + +This release has no hardfork activation and no database migration, and v0.8.6 nodes run alongside v0.8.5 nodes on the same network. Node operators can upgrade the binary on their own schedule. + +### Features + +- [Shared] Build the Docker images on Debian 13 (trixie); the release runtime image is now based on `distroless/cc-debian13` + +### Fixes + +- [Shared] Remediate cargo audit advisories via dependency bumps, including quinn-proto, quinn-udp, libp2p-quic, and openssl + ## [v0.8.5] **Changes:** [v0.8.4...v0.8.5](https://github.com/circlefin/arc-node/compare/v0.8.4...v0.8.5) -- [release notes](https://github.com/circlefin/arc-node/releases/tag/v0.8.5) diff --git a/Cargo.lock b/Cargo.lock index ee05e74..5364c0c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1019,7 +1019,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -1030,7 +1030,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -5039,7 +5039,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -5129,6 +5129,18 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8eb564c5c7423d25c886fb561d1e4ee69f72354d16918afa32c08811f6b6a55" +[[package]] +name = "fastbloom" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef975e30683b2d965054bb0a836f8973857c4ebf6acf274fe46617cd285060d8" +dependencies = [ + "foldhash 0.2.0", + "libm", + "portable-atomic", + "siphasher", +] + [[package]] name = "fastrand" version = "2.3.0" @@ -6114,7 +6126,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2 0.5.10", + "socket2 0.6.3", "tokio", "tower-service", "tracing", @@ -7299,9 +7311,9 @@ dependencies = [ [[package]] name = "libp2p-quic" -version = "0.13.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dc448b2de9f4745784e3751fe8bc6c473d01b8317edd5ababcb0dec803d843f" +checksum = "9dcc597d70bf7f6f30cbe07081802c836184e48416e89e9ce73a0ba2c56a319e" dependencies = [ "futures", "futures-timer", @@ -7310,6 +7322,7 @@ dependencies = [ "libp2p-identity", "libp2p-tls", "quinn", + "quinn-proto", "rand 0.8.5", "ring", "rustls", @@ -8167,7 +8180,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -8383,15 +8396,14 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "openssl" -version = "0.10.75" +version = "0.10.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328" +checksum = "4de8111e94a56adca7ebfe6c365b6d42f99deb69b74b6becacd4204e2f193aa2" dependencies = [ "bitflags 2.11.0", "cfg-if", "foreign-types", "libc", - "once_cell", "openssl-macros", "openssl-sys", ] @@ -8424,9 +8436,9 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.111" +version = "0.9.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82cab2d520aa75e3c58898289429321eb788c3106963d0dc886ec7a5f4adc321" +checksum = "19c413d6ec9ebaf5e1c829d355cb3e9f783778d700f135be0921d52fce3c60ae" dependencies = [ "cc", "libc", @@ -9528,7 +9540,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls", - "socket2 0.5.10", + "socket2 0.6.3", "thiserror 2.0.18", "tokio", "tracing", @@ -9537,12 +9549,13 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.18" +version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" dependencies = [ "aws-lc-rs", "bytes", + "fastbloom", "getrandom 0.4.1", "lru-slab", "rand 0.10.3", @@ -9560,14 +9573,14 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.14" +version = "0.5.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016" dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2 0.5.10", + "socket2 0.6.3", "tracing", "windows-sys 0.60.2", ] @@ -13253,7 +13266,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.11.0", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -13342,7 +13355,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs 1.0.11", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -14113,7 +14126,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -14440,7 +14453,7 @@ dependencies = [ "getrandom 0.4.1", "once_cell", "rustix 1.1.3", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -15805,7 +15818,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.60.2", ] [[package]] diff --git a/assets/apt/apt-https-cainfo.conf b/assets/apt/apt-https-cainfo.conf new file mode 100644 index 0000000..9d71865 --- /dev/null +++ b/assets/apt/apt-https-cainfo.conf @@ -0,0 +1,3 @@ +# Since trixie, APT uses OpenSSL, whose default trust store is absent from +# slim images. Set the path to the bundle explicitly. +Acquire::https::CaInfo "/etc/ssl/certs/ca-certificates.crt"; diff --git a/assets/apt/debian.sources b/assets/apt/debian.sources index 174504b..4d9b4e5 100644 --- a/assets/apt/debian.sources +++ b/assets/apt/debian.sources @@ -9,18 +9,18 @@ # blips are handled by Acquire::Retries in apt-retry.conf; a size mismatch is not retryable. # # NOTE: Uses HTTPS because HTTP port 80 is blocked by StepSecurity egress policy. -# NOTE: The suite "bookworm" must match the Debian version in the Dockerfiles. +# NOTE: The suite "trixie" must match the Debian version in the Dockerfiles. # If Dockerfile.execution or Dockerfile.consensus change their base images to a -# different Debian release (e.g., rust:X.Y.Z-trixie), update the Suites below. +# different Debian release (e.g., rust:X.Y.Z-forky), update the Suites below. Types: deb URIs: https://deb.debian.org/debian -Suites: bookworm bookworm-updates +Suites: trixie trixie-updates Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: https://deb.debian.org/debian-security -Suites: bookworm-security +Suites: trixie-security Components: main Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg diff --git a/deployments/Dockerfile.consensus b/deployments/Dockerfile.consensus index 357930e..4baa31b 100644 --- a/deployments/Dockerfile.consensus +++ b/deployments/Dockerfile.consensus @@ -1,7 +1,7 @@ ############### # cargo chef ############### -FROM public.ecr.aws/docker/library/rust:1.93.0-bookworm AS chef +FROM public.ecr.aws/docker/library/rust:1.93.0-trixie AS chef # Install any custom CA certificates from the certs named context. RUN --mount=type=bind,from=certs,target=/usr/local/share/ca-certificates/ \ @@ -51,7 +51,7 @@ WORKDIR /app COPY --from=planner /src/arc-node-consensus-recipe.json arc-node-consensus-recipe.json RUN --mount=type=cache,id=malachite-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \ --mount=type=cache,id=malachite-cargo-git,sharing=locked,target=/usr/local/cargo/git \ - --mount=type=cache,id=malachite-cargo-target,sharing=locked,target=/app/target \ + --mount=type=cache,id=malachite-cargo-target-trixie,sharing=locked,target=/app/target \ --mount=type=secret,id=github_token,required=false \ # Cook the recipe produced by the planner, namely compile dependencies set -eu; \ @@ -82,7 +82,7 @@ COPY . . # - Build target directory (compiled artifacts) RUN --mount=type=cache,id=malachite-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \ --mount=type=cache,id=malachite-cargo-git,sharing=locked,target=/usr/local/cargo/git \ - --mount=type=cache,id=malachite-cargo-target,sharing=locked,target=/app/target \ + --mount=type=cache,id=malachite-cargo-target-trixie,sharing=locked,target=/app/target \ --mount=type=secret,id=github_token,required=false \ set -eu; \ if [ -s /run/secrets/github_token ]; then \ @@ -102,7 +102,7 @@ RUN --mount=type=cache,id=malachite-cargo-registry,sharing=locked,target=/usr/lo ####################### # release runtime image ####################### -FROM gcr.io/distroless/cc-debian12:nonroot AS release-runtime +FROM gcr.io/distroless/cc-debian13:nonroot AS release-runtime # Copy CA certificates from the chef stage into the runtime image. COPY --from=chef /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt @@ -124,11 +124,12 @@ ENTRYPOINT ["/usr/local/bin/arc-node-consensus"] ################### # dev runtime image ################### -FROM public.ecr.aws/docker/library/debian:bookworm-slim AS dev-runtime +FROM public.ecr.aws/docker/library/debian:trixie-slim AS dev-runtime COPY --from=chef /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt # Configure apt-get with retry logic and fallback mirrors for CI reliability COPY assets/apt/apt-retry.conf /etc/apt/apt.conf.d/apt-retry.conf +COPY assets/apt/apt-https-cainfo.conf /etc/apt/apt.conf.d/apt-https-cainfo.conf COPY assets/apt/debian.sources /etc/apt/sources.list.d/debian.sources # Install iptables and tc for chaos testing diff --git a/deployments/Dockerfile.engine-bench b/deployments/Dockerfile.engine-bench index 6dcf331..10def1d 100644 --- a/deployments/Dockerfile.engine-bench +++ b/deployments/Dockerfile.engine-bench @@ -1,7 +1,7 @@ ############### # cargo chef ############### -FROM public.ecr.aws/docker/library/rust:1.93.0-bookworm AS chef +FROM public.ecr.aws/docker/library/rust:1.93.0-trixie AS chef # Install any custom CA certificates from the certs named context. RUN --mount=type=bind,from=certs,target=/usr/local/share/ca-certificates/ \ @@ -46,7 +46,7 @@ WORKDIR /app COPY --from=planner /src/arc-engine-bench-recipe.json arc-engine-bench-recipe.json RUN --mount=type=cache,id=bench-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \ --mount=type=cache,id=bench-cargo-git,sharing=locked,target=/usr/local/cargo/git \ - --mount=type=cache,id=bench-cargo-target,sharing=locked,target=/app/target \ + --mount=type=cache,id=bench-cargo-target-trixie,sharing=locked,target=/app/target \ --mount=type=secret,id=github_token,required=false \ # Cook the recipe produced by the planner, namely compile dependencies set -eu; \ @@ -72,7 +72,7 @@ COPY . . RUN --mount=type=cache,id=bench-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \ --mount=type=cache,id=bench-cargo-git,sharing=locked,target=/usr/local/cargo/git \ - --mount=type=cache,id=bench-cargo-target,sharing=locked,target=/app/target \ + --mount=type=cache,id=bench-cargo-target-trixie,sharing=locked,target=/app/target \ --mount=type=secret,id=github_token,required=false \ set -eu; \ if [ -s /run/secrets/github_token ]; then \ @@ -87,7 +87,7 @@ RUN --mount=type=cache,id=bench-cargo-registry,sharing=locked,target=/usr/local/ ####################### # dev runtime image ####################### -FROM gcr.io/distroless/cc-debian12:nonroot AS dev-runtime +FROM gcr.io/distroless/cc-debian13:nonroot AS dev-runtime COPY --from=chef /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt diff --git a/deployments/Dockerfile.execution b/deployments/Dockerfile.execution index 6881580..9c002d7 100644 --- a/deployments/Dockerfile.execution +++ b/deployments/Dockerfile.execution @@ -1,7 +1,7 @@ ############### # cargo chef ############### -FROM public.ecr.aws/docker/library/rust:1.93.0-bookworm AS chef +FROM public.ecr.aws/docker/library/rust:1.93.0-trixie AS chef # Install any custom CA certificates from the certs named context. RUN --mount=type=bind,from=certs,target=/usr/local/share/ca-certificates/ \ @@ -52,7 +52,7 @@ WORKDIR /app COPY --from=planner /src/arc-node-execution-recipe.json arc-node-execution-recipe.json RUN --mount=type=cache,id=reth-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \ --mount=type=cache,id=reth-cargo-git,sharing=locked,target=/usr/local/cargo/git \ - --mount=type=cache,id=reth-cargo-target,sharing=locked,target=/app/target \ + --mount=type=cache,id=reth-cargo-target-trixie,sharing=locked,target=/app/target \ --mount=type=secret,id=github_token,required=false \ # Cook the recipe produced by the planner, namely compile dependencies set -eu; \ @@ -83,7 +83,7 @@ COPY . . # - Build target directory (compiled artifacts) RUN --mount=type=cache,id=reth-cargo-registry,sharing=locked,target=/usr/local/cargo/registry \ --mount=type=cache,id=reth-cargo-git,sharing=locked,target=/usr/local/cargo/git \ - --mount=type=cache,id=reth-cargo-target,sharing=locked,target=/app/target \ + --mount=type=cache,id=reth-cargo-target-trixie,sharing=locked,target=/app/target \ --mount=type=secret,id=github_token,required=false \ set -eu; \ if [ -s /run/secrets/github_token ]; then \ @@ -100,7 +100,7 @@ RUN --mount=type=cache,id=reth-cargo-registry,sharing=locked,target=/usr/local/c ####################### # release runtime image ####################### -FROM gcr.io/distroless/cc-debian12:nonroot AS release-runtime +FROM gcr.io/distroless/cc-debian13:nonroot AS release-runtime COPY --from=chef /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt @@ -121,12 +121,13 @@ ENTRYPOINT ["/usr/local/bin/arc-node-execution"] ################### # dev runtime image ################### -FROM public.ecr.aws/docker/library/debian:bookworm-slim AS dev-runtime +FROM public.ecr.aws/docker/library/debian:trixie-slim AS dev-runtime COPY --from=chef /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt # Configure apt-get with retry logic and fallback mirrors for CI reliability COPY assets/apt/apt-retry.conf /etc/apt/apt.conf.d/apt-retry.conf +COPY assets/apt/apt-https-cainfo.conf /etc/apt/apt.conf.d/apt-https-cainfo.conf COPY assets/apt/debian.sources /etc/apt/sources.list.d/debian.sources # Install iptables and tc for chaos testing diff --git a/deployments/docker-compose.yml b/deployments/docker-compose.yml index d14299f..c910c25 100644 --- a/deployments/docker-compose.yml +++ b/deployments/docker-compose.yml @@ -50,7 +50,7 @@ services: # Set ownership on the shared sockets volume so the EL (UID 999) can write arc-sockets-init: - image: debian:bookworm-slim + image: debian:trixie-slim entrypoint: ["/bin/sh", "-c"] command: ["rm -f /sockets/*.ipc && chown 999:999 /sockets"] volumes: