From bc62a4955dfcfd214e8800950c57703ddb79e18d Mon Sep 17 00:00:00 2001 From: mbianchidev Date: Sun, 8 Nov 2026 09:53:19 +0100 Subject: [PATCH 1/5] Bump version to 0.2.5 --- Cargo.lock | 54 +++++++++++++------------- Cargo.toml | 2 +- crates/sendbox-cli/tests/cli.rs | 2 +- fuzz/bpf/Cargo.lock | 24 ++++++------ fuzz/config/Cargo.lock | 8 ++-- fuzz/credentials/Cargo.lock | 18 ++++----- fuzz/git/Cargo.lock | 4 +- fuzz/mcp/Cargo.lock | 14 +++---- fuzz/project/Cargo.lock | 2 +- fuzz/protocol/Cargo.lock | 6 +-- fuzz/registry/Cargo.lock | 12 +++--- fuzz/secrets/Cargo.lock | 4 +- fuzz/security/Cargo.lock | 8 ++-- tools/sendbox-qualification/Cargo.lock | 10 ++--- 14 files changed, 84 insertions(+), 84 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 36ae418..0621d85 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2473,7 +2473,7 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "sendbox-agent" -version = "0.2.4" +version = "0.2.5" dependencies = [ "proptest", "sendbox-boundary", @@ -2496,7 +2496,7 @@ dependencies = [ [[package]] name = "sendbox-bootstrap" -version = "0.2.4" +version = "0.2.5" dependencies = [ "getrandom 0.4.3", "sendbox-core", @@ -2513,7 +2513,7 @@ dependencies = [ [[package]] name = "sendbox-boundary" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-config", "sendbox-core", @@ -2526,7 +2526,7 @@ dependencies = [ [[package]] name = "sendbox-bpf" -version = "0.2.4" +version = "0.2.5" dependencies = [ "libbpf-rs", "libc", @@ -2539,7 +2539,7 @@ dependencies = [ [[package]] name = "sendbox-bundle" -version = "0.2.4" +version = "0.2.5" dependencies = [ "clap", "ed25519-dalek", @@ -2555,7 +2555,7 @@ dependencies = [ [[package]] name = "sendbox-cli" -version = "0.2.4" +version = "0.2.5" dependencies = [ "clap", "clap_complete", @@ -2580,7 +2580,7 @@ dependencies = [ [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "proptest", "rustix", @@ -2596,14 +2596,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-credentials" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "http", @@ -2624,7 +2624,7 @@ dependencies = [ [[package]] name = "sendbox-egress" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "bytes", @@ -2656,7 +2656,7 @@ dependencies = [ [[package]] name = "sendbox-exec" -version = "0.2.4" +version = "0.2.5" dependencies = [ "caps", "getrandom 0.4.3", @@ -2675,7 +2675,7 @@ dependencies = [ [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "proptest", "rustix", @@ -2689,7 +2689,7 @@ dependencies = [ [[package]] name = "sendbox-guest" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "clap", @@ -2722,7 +2722,7 @@ dependencies = [ [[package]] name = "sendbox-host" -version = "0.2.4" +version = "0.2.5" dependencies = [ "getrandom 0.3.4", "reqwest", @@ -2759,7 +2759,7 @@ dependencies = [ [[package]] name = "sendbox-mcp" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "base64", @@ -2800,7 +2800,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -2811,7 +2811,7 @@ dependencies = [ [[package]] name = "sendbox-project" -version = "0.2.4" +version = "0.2.5" dependencies = [ "jsonc-parser", "proptest", @@ -2825,7 +2825,7 @@ dependencies = [ [[package]] name = "sendbox-protocol" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "getrandom 0.4.3", @@ -2846,7 +2846,7 @@ dependencies = [ [[package]] name = "sendbox-registry" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "axum", @@ -2882,7 +2882,7 @@ dependencies = [ [[package]] name = "sendbox-runtime" -version = "0.2.4" +version = "0.2.5" dependencies = [ "nix", "proptest", @@ -2895,7 +2895,7 @@ dependencies = [ [[package]] name = "sendbox-runtime-apple" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-bootstrap", "sendbox-bundle", @@ -2916,7 +2916,7 @@ dependencies = [ [[package]] name = "sendbox-runtime-hyperlight" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "ed25519-dalek", @@ -2936,7 +2936,7 @@ dependencies = [ [[package]] name = "sendbox-runtime-kata" -version = "0.2.4" +version = "0.2.5" dependencies = [ "ed25519-dalek", "sendbox-bootstrap", @@ -2958,7 +2958,7 @@ dependencies = [ [[package]] name = "sendbox-secrets" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "chacha20poly1305", @@ -2986,7 +2986,7 @@ dependencies = [ [[package]] name = "sendbox-security" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "ed25519-dalek", @@ -3004,7 +3004,7 @@ dependencies = [ [[package]] name = "sendbox-session-security" -version = "0.2.4" +version = "0.2.5" dependencies = [ "proptest", "sendbox-core", @@ -3019,7 +3019,7 @@ dependencies = [ [[package]] name = "sendbox-testkit" -version = "0.2.4" +version = "0.2.5" dependencies = [ "nix", "proptest", diff --git a/Cargo.toml b/Cargo.toml index cd25389..ad18e73 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ members = [ resolver = "3" [workspace.package] -version = "0.2.4" +version = "0.2.5" edition = "2024" rust-version = "1.93.1" license = "Apache-2.0" diff --git a/crates/sendbox-cli/tests/cli.rs b/crates/sendbox-cli/tests/cli.rs index e2c6381..7063466 100644 --- a/crates/sendbox-cli/tests/cli.rs +++ b/crates/sendbox-cli/tests/cli.rs @@ -42,7 +42,7 @@ fn prints_version() { let output = run(&["--version"]); assert!(output.status.success()); - assert_eq!(String::from_utf8(output.stdout).unwrap(), "sendbox 0.2.4\n"); + assert_eq!(String::from_utf8(output.stdout).unwrap(), "sendbox 0.2.5\n"); assert!(output.stderr.is_empty()); } diff --git a/fuzz/bpf/Cargo.lock b/fuzz/bpf/Cargo.lock index 8b2ddcc..5766d08 100644 --- a/fuzz/bpf/Cargo.lock +++ b/fuzz/bpf/Cargo.lock @@ -1401,7 +1401,7 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "sendbox-bootstrap" -version = "0.2.4" +version = "0.2.5" dependencies = [ "getrandom 0.4.3", "sendbox-core", @@ -1418,7 +1418,7 @@ dependencies = [ [[package]] name = "sendbox-bpf" -version = "0.2.4" +version = "0.2.5" dependencies = [ "libbpf-rs", "libc", @@ -1439,7 +1439,7 @@ dependencies = [ [[package]] name = "sendbox-bundle" -version = "0.2.4" +version = "0.2.5" dependencies = [ "clap", "ed25519-dalek", @@ -1454,7 +1454,7 @@ dependencies = [ [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1468,14 +1468,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-egress" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "bytes", @@ -1505,7 +1505,7 @@ dependencies = [ [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1517,7 +1517,7 @@ dependencies = [ [[package]] name = "sendbox-guest" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "clap", @@ -1543,7 +1543,7 @@ dependencies = [ [[package]] name = "sendbox-mcp" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "base64", @@ -1581,7 +1581,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -1591,7 +1591,7 @@ dependencies = [ [[package]] name = "sendbox-protocol" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "getrandom 0.4.3", @@ -1609,7 +1609,7 @@ dependencies = [ [[package]] name = "sendbox-secrets" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "chacha20poly1305", diff --git a/fuzz/config/Cargo.lock b/fuzz/config/Cargo.lock index afc713b..8246366 100644 --- a/fuzz/config/Cargo.lock +++ b/fuzz/config/Cargo.lock @@ -320,7 +320,7 @@ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -342,14 +342,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -361,7 +361,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", diff --git a/fuzz/credentials/Cargo.lock b/fuzz/credentials/Cargo.lock index 5d85ba5..c85821a 100644 --- a/fuzz/credentials/Cargo.lock +++ b/fuzz/credentials/Cargo.lock @@ -1455,7 +1455,7 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1469,14 +1469,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-credentials" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "http", @@ -1503,7 +1503,7 @@ dependencies = [ [[package]] name = "sendbox-egress" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "bytes", @@ -1533,7 +1533,7 @@ dependencies = [ [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1545,7 +1545,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -1555,7 +1555,7 @@ dependencies = [ [[package]] name = "sendbox-protocol" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "getrandom 0.4.3", @@ -1573,7 +1573,7 @@ dependencies = [ [[package]] name = "sendbox-runtime" -version = "0.2.4" +version = "0.2.5" dependencies = [ "nix", "sendbox-core", @@ -1585,7 +1585,7 @@ dependencies = [ [[package]] name = "sendbox-secrets" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "chacha20poly1305", diff --git a/fuzz/git/Cargo.lock b/fuzz/git/Cargo.lock index 0982f9a..ea20ab6 100644 --- a/fuzz/git/Cargo.lock +++ b/fuzz/git/Cargo.lock @@ -286,14 +286,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", diff --git a/fuzz/mcp/Cargo.lock b/fuzz/mcp/Cargo.lock index 6cb0e97..edd5648 100644 --- a/fuzz/mcp/Cargo.lock +++ b/fuzz/mcp/Cargo.lock @@ -1190,7 +1190,7 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1204,14 +1204,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-egress" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "bytes", @@ -1241,7 +1241,7 @@ dependencies = [ [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1253,7 +1253,7 @@ dependencies = [ [[package]] name = "sendbox-mcp" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "base64", @@ -1299,7 +1299,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -1309,7 +1309,7 @@ dependencies = [ [[package]] name = "sendbox-secrets" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "chacha20poly1305", diff --git a/fuzz/project/Cargo.lock b/fuzz/project/Cargo.lock index 37ecf04..5192329 100644 --- a/fuzz/project/Cargo.lock +++ b/fuzz/project/Cargo.lock @@ -194,7 +194,7 @@ dependencies = [ [[package]] name = "sendbox-project" -version = "0.2.4" +version = "0.2.5" dependencies = [ "jsonc-parser", "roxmltree", diff --git a/fuzz/protocol/Cargo.lock b/fuzz/protocol/Cargo.lock index 6875cb7..ebc9520 100644 --- a/fuzz/protocol/Cargo.lock +++ b/fuzz/protocol/Cargo.lock @@ -385,14 +385,14 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -402,7 +402,7 @@ dependencies = [ [[package]] name = "sendbox-protocol" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "getrandom", diff --git a/fuzz/registry/Cargo.lock b/fuzz/registry/Cargo.lock index 8d189e5..35eca32 100644 --- a/fuzz/registry/Cargo.lock +++ b/fuzz/registry/Cargo.lock @@ -1834,7 +1834,7 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1848,14 +1848,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -1867,7 +1867,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -1877,7 +1877,7 @@ dependencies = [ [[package]] name = "sendbox-registry" -version = "0.2.4" +version = "0.2.5" dependencies = [ "async-trait", "axum", @@ -1922,7 +1922,7 @@ dependencies = [ [[package]] name = "sendbox-security" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "ed25519-dalek", diff --git a/fuzz/secrets/Cargo.lock b/fuzz/secrets/Cargo.lock index 1820609..a8efd60 100644 --- a/fuzz/secrets/Cargo.lock +++ b/fuzz/secrets/Cargo.lock @@ -609,14 +609,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-secrets" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "chacha20poly1305", diff --git a/fuzz/security/Cargo.lock b/fuzz/security/Cargo.lock index 4cb3654..3415e6a 100644 --- a/fuzz/security/Cargo.lock +++ b/fuzz/security/Cargo.lock @@ -814,14 +814,14 @@ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-secrets" -version = "0.2.4" +version = "0.2.5" dependencies = [ "cap-std", "chacha20poly1305", @@ -845,7 +845,7 @@ dependencies = [ [[package]] name = "sendbox-security" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "ed25519-dalek", @@ -871,7 +871,7 @@ dependencies = [ [[package]] name = "sendbox-session-security" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "sendbox-secrets", diff --git a/tools/sendbox-qualification/Cargo.lock b/tools/sendbox-qualification/Cargo.lock index 6c11722..b570a9a 100644 --- a/tools/sendbox-qualification/Cargo.lock +++ b/tools/sendbox-qualification/Cargo.lock @@ -514,7 +514,7 @@ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" [[package]] name = "sendbox-config" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -528,14 +528,14 @@ dependencies = [ [[package]] name = "sendbox-core" -version = "0.2.4" +version = "0.2.5" dependencies = [ "serde", ] [[package]] name = "sendbox-git" -version = "0.2.4" +version = "0.2.5" dependencies = [ "rustix", "sendbox-core", @@ -547,7 +547,7 @@ dependencies = [ [[package]] name = "sendbox-policy" -version = "0.2.4" +version = "0.2.5" dependencies = [ "sendbox-core", "serde", @@ -557,7 +557,7 @@ dependencies = [ [[package]] name = "sendbox-protocol" -version = "0.2.4" +version = "0.2.5" dependencies = [ "base64", "getrandom", From 3f8e10ce69b56f13d4740b7612dd75d977d3c61e Mon Sep 17 00:00:00 2001 From: mbianchidev Date: Sun, 8 Nov 2026 10:07:49 +0100 Subject: [PATCH 2/5] Disable release pagers and retry libseccomp downloads --- crates/sendbox-cli/tests/release_script.rs | 39 ++++++++++++++++++++- docs/architecture/guest-artifact-bundles.md | 5 +++ docs/architecture/guest-supervisor.md | 3 ++ docs/installation.md | 3 ++ guest/sendbox-guest/Dockerfile | 2 +- packaging/guest/Dockerfile | 2 +- scripts/release.sh | 2 ++ 7 files changed, 53 insertions(+), 3 deletions(-) diff --git a/crates/sendbox-cli/tests/release_script.rs b/crates/sendbox-cli/tests/release_script.rs index beef13b..5970470 100644 --- a/crates/sendbox-cli/tests/release_script.rs +++ b/crates/sendbox-cli/tests/release_script.rs @@ -340,12 +340,16 @@ exec "$RELEASE_TEST_CARGO" "$@" } fn run(&self, arguments: &[&str], scenario: &str) -> Output { + self.run_command(Command::new("/bin/bash"), arguments, scenario) + } + + fn run_command(&self, mut command: Command, arguments: &[&str], scenario: &str) -> Output { let path = std::env::join_paths( std::iter::once(self.bin.clone()) .chain(std::env::split_paths(&std::env::var_os("PATH").unwrap())), ) .unwrap(); - Command::new("/bin/bash") + command .arg(self.checkout.join("scripts/release.sh")) .args(arguments) .current_dir(self.checkout.join("crates/sendbox-cli")) @@ -481,6 +485,39 @@ fn switches_to_updated_main_before_releasing_and_refreshing_every_lockfile() { assert!(trace.contains("gh release view v0.2.0")); } +#[test] +fn disables_configured_git_pagers_when_releasing_in_a_terminal() { + let repository = ReleaseRepository::new(); + executable( + repository.bin.join("pager"), + "#!/bin/sh\nprintf 'pager invoked\\n' >>\"$RELEASE_TEST_TRACE\"\ncat\n", + ); + git(&repository.checkout, &["config", "core.pager", "pager"]); + git(&repository.checkout, &["config", "pager.switch", "true"]); + git(&repository.checkout, &["config", "pager.pull", "true"]); + git(&repository.checkout, &["config", "pager.diff", "true"]); + + for version in ["0.2.0", "v0.2.0"] { + let mut command = Command::new("python3"); + command + .args([ + "-c", + "import os, pty, sys; sys.exit(os.waitstatus_to_exitcode(pty.spawn(sys.argv[1:])))", + "/bin/bash", + ]) + .env("GIT_PAGER", "pager") + .env("PAGER", "pager"); + let result = repository.run_command(command, &[version], "success"); + repository.assert_succeeded(&result); + } + + let trace = repository.trace(); + assert!( + !trace.contains("pager invoked"), + "release invoked the configured Git pager:\n{trace}" + ); +} + #[test] fn rejects_invalid_versions_without_creating_a_release_branch() { let repository = ReleaseRepository::new(); diff --git a/docs/architecture/guest-artifact-bundles.md b/docs/architecture/guest-artifact-bundles.md index 5384e70..1cec794 100644 --- a/docs/architecture/guest-artifact-bundles.md +++ b/docs/architecture/guest-artifact-bundles.md @@ -116,6 +116,11 @@ Build inputs: SHA-256 verification; - libseccomp 2.6.0 source archive with SHA-256 verification. +Supervisor and production bundle builds retry transient libseccomp download +failures with bounded connection, transfer, and retry timeouts. The pinned +version and SHA-256 verification remain mandatory; exhausted retries fail the +build. + The production bundle, standalone supervisor, and BPF spike Dockerfiles use the same `musl-dev`, `zlib`, `zlib-dev`, and `zlib-static` revisions, available for both Alpine 3.23 architectures. The base image digest does not freeze APK repositories; diff --git a/docs/architecture/guest-supervisor.md b/docs/architecture/guest-supervisor.md index 0a2560d..33d7d5b 100644 --- a/docs/architecture/guest-supervisor.md +++ b/docs/architecture/guest-supervisor.md @@ -207,6 +207,9 @@ each architecture twice without cache, compares same-architecture binaries, and uses `file`, `readelf`, and `ldd` evidence to reject an ELF interpreter or shared dependency. +The pinned libseccomp source download uses bounded retries and network timeouts. +SHA-256 verification remains mandatory before extraction. + Guest Supervisor CI passes `--build-arg CARGO_BUILD_JOBS=2` to the quality build and both clean builds on each native architecture, matching production bundle CI's compiler budget. The Dockerfile still defaults to one Cargo build worker diff --git a/docs/installation.md b/docs/installation.md index e11136c..c8e60a3 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -227,6 +227,9 @@ Actions workflows. Cargo is also required when preparing a new version bump. For a new release, pass a stable `X.Y.Z` version greater than the version on `main`; a leading `v` is also accepted. +Git pagers are disabled for the script and its subprocesses, so output never +pauses for pager input. + After its preflight safety checks, the script switches the invoking checkout to `main` and pulls `origin/main` with `--ff-only` before inspecting or resuming a release. A failed pull or divergent local `main` stops the script before any diff --git a/guest/sendbox-guest/Dockerfile b/guest/sendbox-guest/Dockerfile index c273232..4d85c56 100644 --- a/guest/sendbox-guest/Dockerfile +++ b/guest/sendbox-guest/Dockerfile @@ -36,7 +36,7 @@ RUN case "$TARGETARCH" in \ && printf '%s\n' "$target" >/opt/target-triple FROM toolchain AS libseccomp -RUN curl -fsSL \ +RUN curl -fsSL --retry 5 --retry-max-time 120 --connect-timeout 10 --max-time 60 \ https://github.com/seccomp/libseccomp/releases/download/v2.6.0/libseccomp-2.6.0.tar.gz \ -o /tmp/libseccomp.tar.gz \ && echo "83b6085232d1588c379dc9b9cae47bb37407cf262e6e74993c61ba72d2a784dc /tmp/libseccomp.tar.gz" \ diff --git a/packaging/guest/Dockerfile b/packaging/guest/Dockerfile index dd60f18..8abebc8 100644 --- a/packaging/guest/Dockerfile +++ b/packaging/guest/Dockerfile @@ -68,7 +68,7 @@ RUN case "$TARGETARCH" in \ && rm -f /tmp/vmlinux.btf.tar.xz /tmp/5.8.0-63-generic.btf FROM toolchain AS libseccomp -RUN curl -fsSL \ +RUN curl -fsSL --retry 5 --retry-max-time 120 --connect-timeout 10 --max-time 60 \ https://github.com/seccomp/libseccomp/releases/download/v2.6.0/libseccomp-2.6.0.tar.gz \ -o /tmp/libseccomp.tar.gz \ && echo "83b6085232d1588c379dc9b9cae47bb37407cf262e6e74993c61ba72d2a784dc /tmp/libseccomp.tar.gz" \ diff --git a/scripts/release.sh b/scripts/release.sh index 446bdf3..fd689ba 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -euo pipefail +export GIT_PAGER=cat + usage() { printf 'Usage: %s VERSION\nSwitch to main, pull fast-forward-only, then create or resume a release.\n' \ "${0##*/}" From 30045ec80f43ee3c11d1784a645ea8b98ef315de Mon Sep 17 00:00:00 2001 From: mbianchidev Date: Sun, 8 Nov 2026 10:22:49 +0100 Subject: [PATCH 3/5] Fetch pinned libseccomp through the release asset API --- docs/architecture/guest-artifact-bundles.md | 8 ++++---- docs/architecture/guest-supervisor.md | 3 ++- guest/sendbox-guest/Dockerfile | 3 ++- packaging/guest/Dockerfile | 3 ++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/architecture/guest-artifact-bundles.md b/docs/architecture/guest-artifact-bundles.md index 1cec794..c1edb2b 100644 --- a/docs/architecture/guest-artifact-bundles.md +++ b/docs/architecture/guest-artifact-bundles.md @@ -116,10 +116,10 @@ Build inputs: SHA-256 verification; - libseccomp 2.6.0 source archive with SHA-256 verification. -Supervisor and production bundle builds retry transient libseccomp download -failures with bounded connection, transfer, and retry timeouts. The pinned -version and SHA-256 verification remain mandatory; exhausted retries fail the -build. +Supervisor and production bundle builds download the pinned libseccomp source +through GitHub's release-asset API using its immutable asset ID. Requests use +bounded connection, transfer, and retry timeouts. The pinned version and SHA-256 +verification remain mandatory; exhausted retries fail the build. The production bundle, standalone supervisor, and BPF spike Dockerfiles use the same `musl-dev`, `zlib`, `zlib-dev`, and `zlib-static` revisions, available for both diff --git a/docs/architecture/guest-supervisor.md b/docs/architecture/guest-supervisor.md index 33d7d5b..d1a7236 100644 --- a/docs/architecture/guest-supervisor.md +++ b/docs/architecture/guest-supervisor.md @@ -207,7 +207,8 @@ each architecture twice without cache, compares same-architecture binaries, and uses `file`, `readelf`, and `ldd` evidence to reject an ELF interpreter or shared dependency. -The pinned libseccomp source download uses bounded retries and network timeouts. +The pinned libseccomp source is downloaded through GitHub's release-asset API +using its immutable asset ID, with bounded retries and network timeouts. SHA-256 verification remains mandatory before extraction. Guest Supervisor CI passes `--build-arg CARGO_BUILD_JOBS=2` to the quality build diff --git a/guest/sendbox-guest/Dockerfile b/guest/sendbox-guest/Dockerfile index 4d85c56..8026a86 100644 --- a/guest/sendbox-guest/Dockerfile +++ b/guest/sendbox-guest/Dockerfile @@ -37,7 +37,8 @@ RUN case "$TARGETARCH" in \ FROM toolchain AS libseccomp RUN curl -fsSL --retry 5 --retry-max-time 120 --connect-timeout 10 --max-time 60 \ - https://github.com/seccomp/libseccomp/releases/download/v2.6.0/libseccomp-2.6.0.tar.gz \ + --header 'Accept: application/octet-stream' \ + https://api.github.com/repos/seccomp/libseccomp/releases/assets/222948192 \ -o /tmp/libseccomp.tar.gz \ && echo "83b6085232d1588c379dc9b9cae47bb37407cf262e6e74993c61ba72d2a784dc /tmp/libseccomp.tar.gz" \ | sha256sum -c - \ diff --git a/packaging/guest/Dockerfile b/packaging/guest/Dockerfile index 8abebc8..aa699f4 100644 --- a/packaging/guest/Dockerfile +++ b/packaging/guest/Dockerfile @@ -69,7 +69,8 @@ RUN case "$TARGETARCH" in \ FROM toolchain AS libseccomp RUN curl -fsSL --retry 5 --retry-max-time 120 --connect-timeout 10 --max-time 60 \ - https://github.com/seccomp/libseccomp/releases/download/v2.6.0/libseccomp-2.6.0.tar.gz \ + --header 'Accept: application/octet-stream' \ + https://api.github.com/repos/seccomp/libseccomp/releases/assets/222948192 \ -o /tmp/libseccomp.tar.gz \ && echo "83b6085232d1588c379dc9b9cae47bb37407cf262e6e74993c61ba72d2a784dc /tmp/libseccomp.tar.gz" \ | sha256sum -c - \ From 5115da29864b6a464b00d82136e335c12a414ef7 Mon Sep 17 00:00:00 2001 From: mbianchidev Date: Sun, 8 Nov 2026 10:49:01 +0100 Subject: [PATCH 4/5] Preload macOS Python through the pinned release asset API --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++-- docs/contributing.md | 5 +++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8fe3ded..25107b3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,7 @@ permissions: env: CARGO_BUILD_JOBS: "2" RUST_TEST_THREADS: "2" + PYTHON_VERSION: "3.15.1" jobs: homebrew: @@ -28,7 +29,7 @@ jobs: - name: Set up stable Python uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: "3.15.1" + python-version: ${{ env.PYTHON_VERSION }} - name: Test stable release verification and formula updates env: @@ -52,11 +53,35 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Preload pinned macOS Python + if: matrix.task == 'checks' && runner.os == 'macOS' && runner.arch == 'ARM64' + run: | + set -euo pipefail + cache="$RUNNER_TOOL_CACHE/Python/$PYTHON_VERSION/arm64" + if [[ -f "$cache.complete" ]]; then + echo "Python $PYTHON_VERSION (arm64) is already cached" + exit 0 + fi + directory="$(mktemp -d "$RUNNER_TEMP/python-api.XXXXXX")" + trap 'rm -rf "$directory"' EXIT + archive="$directory/python.tar.gz" + curl -fsSL --retry 5 --retry-max-time 600 --connect-timeout 10 --max-time 600 \ + --header 'Accept: application/octet-stream' \ + https://api.github.com/repos/actions/python-versions/releases/assets/662872898 \ + --output "$archive" + echo "e1a49acab28b4a180ee9819663f9e01d0e56ed49f78b1e370dedea8863301a3a $archive" \ + | shasum -a 256 --check + tar -xzf "$archive" -C "$directory" + rm "$archive" + cd "$directory" + AGENT_TOOLSDIRECTORY="$RUNNER_TOOL_CACHE" bash ./setup.sh + "$cache/bin/python3" --version + - name: Set up stable Python if: matrix.task == 'checks' uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: "3.15.1" + python-version: ${{ env.PYTHON_VERSION }} - name: Install Linux system dependencies if: runner.os == 'Linux' diff --git a/docs/contributing.md b/docs/contributing.md index 068d9f1..1e3d13d 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -52,6 +52,11 @@ runner's preinstalled `python3`. No third-party Python packages are required. This host-side selection does not change the standalone diagnostic workload image or add Python to production Rust guest images. +CI's macOS arm64 checks preload the exact Python release asset through GitHub's +release-asset API with SHA-256 verification and bounded retries before the normal +`setup-python` action selects it. Update the CI version, asset ID, and checksum +together when updating Python. + Run the updater tests locally without installing or starting SendBox. Python 3.11 or newer remains supported for the updater and release helper; substitute `python3.15` for `python3` to reproduce CI's selected minor version: From e0d37834400b6fccd420fd0a7bd120b71c0b6b28 Mon Sep 17 00:00:00 2001 From: mbianchidev Date: Sun, 8 Nov 2026 10:59:42 +0100 Subject: [PATCH 5/5] Use pinned Python API downloads for Linux CI and Homebrew --- .github/workflows/ci.yaml | 29 +++---------- .github/workflows/homebrew.yaml | 6 ++- docs/contributing.md | 10 +++-- scripts/setup-ci-python.sh | 74 +++++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+), 28 deletions(-) create mode 100755 scripts/setup-ci-python.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25107b3..d70a894 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,6 +26,9 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Preload pinned Python + run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION" + - name: Set up stable Python uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: @@ -53,29 +56,9 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Preload pinned macOS Python - if: matrix.task == 'checks' && runner.os == 'macOS' && runner.arch == 'ARM64' - run: | - set -euo pipefail - cache="$RUNNER_TOOL_CACHE/Python/$PYTHON_VERSION/arm64" - if [[ -f "$cache.complete" ]]; then - echo "Python $PYTHON_VERSION (arm64) is already cached" - exit 0 - fi - directory="$(mktemp -d "$RUNNER_TEMP/python-api.XXXXXX")" - trap 'rm -rf "$directory"' EXIT - archive="$directory/python.tar.gz" - curl -fsSL --retry 5 --retry-max-time 600 --connect-timeout 10 --max-time 600 \ - --header 'Accept: application/octet-stream' \ - https://api.github.com/repos/actions/python-versions/releases/assets/662872898 \ - --output "$archive" - echo "e1a49acab28b4a180ee9819663f9e01d0e56ed49f78b1e370dedea8863301a3a $archive" \ - | shasum -a 256 --check - tar -xzf "$archive" -C "$directory" - rm "$archive" - cd "$directory" - AGENT_TOOLSDIRECTORY="$RUNNER_TOOL_CACHE" bash ./setup.sh - "$cache/bin/python3" --version + - name: Preload pinned Python + if: matrix.task == 'checks' + run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION" - name: Set up stable Python if: matrix.task == 'checks' diff --git a/.github/workflows/homebrew.yaml b/.github/workflows/homebrew.yaml index 4040226..15626a2 100644 --- a/.github/workflows/homebrew.yaml +++ b/.github/workflows/homebrew.yaml @@ -40,15 +40,19 @@ jobs: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ inputs.tag || github.event.release.tag_name }} PYTHONDONTWRITEBYTECODE: "1" + PYTHON_VERSION: "3.15.1" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false + - name: Preload pinned Python + run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION" + - name: Set up stable Python uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: "3.15.1" + python-version: ${{ env.PYTHON_VERSION }} - name: Read existing tap run: | diff --git a/docs/contributing.md b/docs/contributing.md index 1e3d13d..eec1277 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -52,10 +52,12 @@ runner's preinstalled `python3`. No third-party Python packages are required. This host-side selection does not change the standalone diagnostic workload image or add Python to production Rust guest images. -CI's macOS arm64 checks preload the exact Python release asset through GitHub's -release-asset API with SHA-256 verification and bounded retries before the normal -`setup-python` action selects it. Update the CI version, asset ID, and checksum -together when updating Python. +CI and stable Homebrew updates preload the exact Python release asset through +GitHub's release-asset API using `scripts/setup-ci-python.sh`, with SHA-256 +verification and bounded retries before the normal `setup-python` action selects +it. The helper supports macOS arm64 and Ubuntu x64, including matching packages +for Ubuntu 22.04, 24.04, and 26.04. Update the workflow version, helper version, +asset IDs, and checksums together when updating Python. Run the updater tests locally without installing or starting SendBox. Python 3.11 or newer remains supported for the updater and release helper; substitute diff --git a/scripts/setup-ci-python.sh b/scripts/setup-ci-python.sh new file mode 100755 index 0000000..4f00a8b --- /dev/null +++ b/scripts/setup-ci-python.sh @@ -0,0 +1,74 @@ +#!/usr/bin/env bash +set -euo pipefail + +fail() { + printf 'ci-python: %s\n' "$*" >&2 + exit 1 +} + +if [[ $# -ne 1 ]]; then + printf 'Usage: %s VERSION\n' "${0##*/}" >&2 + exit 2 +fi +VERSION="$1" +[[ "$VERSION" == 3.15.1 ]] || fail "update the pinned assets before using Python $VERSION" +[[ "${GITHUB_ACTIONS:-}" == true && -n "${RUNNER_TOOL_CACHE:-}" && -n "${RUNNER_TEMP:-}" ]] \ + || fail "the GitHub Actions tool-cache environment is required" + +PLATFORM="$(uname -s):$(uname -m)" +CHECKSUM_COMMAND=(sha256sum --check) +case "$PLATFORM" in + Darwin:arm64) + ARCH=arm64 + ASSET_ID=662872898 + SHA256=e1a49acab28b4a180ee9819663f9e01d0e56ed49f78b1e370dedea8863301a3a + CHECKSUM_COMMAND=(shasum -a 256 --check) + ;; + Linux:x86_64) + ARCH=x64 + [[ "$(lsb_release -is)" == Ubuntu ]] || fail "only Ubuntu Linux assets are configured" + DISTRIBUTION_VERSION="$(lsb_release -rs)" + case "$DISTRIBUTION_VERSION" in + 22.04) + ASSET_ID=662873037 + SHA256=d5089a4a7ab6cea9664fb26cdae5c6379f880edc368a5be81999455c25cda556 + ;; + 24.04) + ASSET_ID=662872932 + SHA256=9809d583ffee9af685f33c8746da541d7102c30a7baa7aacf0a30a1f04731a56 + ;; + 26.04) + ASSET_ID=662873040 + SHA256=0aa6f845c6f40c4a88a99e92a46374889ab9170fde378f1168e2e936b34d1218 + ;; + *) fail "no pinned Python asset is configured for Ubuntu $DISTRIBUTION_VERSION" ;; + esac + ;; + *) fail "no pinned Python asset is configured for $PLATFORM" ;; +esac + +cache="$RUNNER_TOOL_CACHE/Python/$VERSION/$ARCH" +if [[ -f "$cache.complete" ]]; then + printf 'Python %s (%s) is already cached\n' "$VERSION" "$ARCH" +else + directory="$(mktemp -d "$RUNNER_TEMP/python-api.XXXXXX")" + trap 'rm -rf "$directory"' EXIT + archive="$directory/python.tar.gz" + curl -fsSL --retry 5 --retry-max-time 600 --connect-timeout 10 --max-time 600 \ + --header 'Accept: application/octet-stream' \ + "https://api.github.com/repos/actions/python-versions/releases/assets/$ASSET_ID" \ + --output "$archive" + printf '%s %s\n' "$SHA256" "$archive" | "${CHECKSUM_COMMAND[@]}" + tar -xzf "$archive" -C "$directory" + rm "$archive" + cd "$directory" + if [[ "$PLATFORM" == Linux:* ]]; then + export LD_LIBRARY_PATH="$directory/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" + fi + AGENT_TOOLSDIRECTORY="$RUNNER_TOOL_CACHE" bash ./setup.sh +fi + +installed_version="$("$cache/bin/python3" --version)" +[[ "$installed_version" == "Python $VERSION" ]] \ + || fail "cached version $installed_version does not match Python $VERSION" +printf 'Using %s (%s)\n' "$installed_version" "$ARCH"