diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a3cb180..5c94ae5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -26,6 +26,10 @@ updates: # a major bump (14.x) could diverge from what the worker reads and silently # break symbolication. Minor/patch within 13.x are still proposed (the # arch/format identifier-pinning tests guard those); a major is not. + # + # NOTE: both crates are currently a rev-pinned GIT dependency on the + # bugsee/symbolic fork (see Cargo.toml), which Dependabot does not track, so + # these rules are inert until they return to crates.io. Tracking: https://github.com/bugsee/bugsee-cli/issues/96 - dependency-name: "symbolic-common" update-types: ["version-update:semver-major"] - dependency-name: "symbolic-debuginfo" diff --git a/CHANGELOG.md b/CHANGELOG.md index 10e7e38..05b3cf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,55 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.8.2] - 2026-10-30 + +### Security +- **`zip` 8.6.0 -> 9.1.2, and no `zip` 7.x left in the tree.** `symbolic-debuginfo` 13.9.0 pulled + in `zip` 7.2.0 through its default `sourcebundle` feature, inside the advisories' vulnerable + range (<9.0.0), and neither 13.9.0 nor 14.0.0-alpha.4 builds with that feature off. The CLI now + takes `symbolic-common` / `symbolic-debuginfo` from `bugsee/symbolic` (upstream 13.9.0 plus + getsentry/symbolic#1097, the zip 7.2.0 -> 9 bump, and a `zstd` 0.13 -> 0.14 bump) as a pinned + git dependency, until a `symbolic` release includes those changes ([#96]). Also refreshes `rustls` (0.23.46), `tokio` (1.54), + `uuid`, `plist`, `memmap2`, `zstd-sys` and other transitive dependencies. +- **Nine more RustSec advisories cleared; `cargo audit` reports none.** Each bump was read + against its upstream changelog and exercised against the live endpoints and real symbol files + (see Verification). + - `h2` 0.4.14 -> 0.4.20 (RUSTSEC-2026-0258). HTTP/2 client used by every upload. Hardening + only: bounded small-DATA-frame floods, a cap on HPACK table size, validated `content-length` / + `:status` / GOAWAY frames, flow-control and reset-limit accounting fixes. A compliant server + sees no change. + - `rustls-webpki` 0.103.15 -> 0.103.16 (RUSTSEC-2026-0382): rejects certificate paths through a + small set of distrusted intermediate public keys. + - `webpki-roots` 1.0.7 -> 1.0.11 (RUSTSEC-2026-0381): the bundled root store drops Atos + TrustedRoot 2011, SecureSign Root CA12 and three eMudhra emSign roots, and adds SECOM and Telia + TLS roots. None of them are in the chains of `api.bugsee.com`, `download.bugsee.com` or S3. + - `quinn-proto` 0.11.17 -> 0.11.19 (RUSTSEC-2026-0338, -0340, -0343). Lockfile-only: reached + through reqwest's optional HTTP/3 feature, which this crate does not enable, so it is never + compiled; bumped so the lockfile stops advertising it. + - `zstd` 0.13 -> 0.14.3, `zstd-safe` 7.2 -> 8.2 (RUSTSEC-2026-0391, -0398, -0403). Pulled in by + `symbolic-debuginfo`, not by this crate (which already used 0.14), so the fix is in the + fork. The only use is decompressing zstd-compressed ELF sections; the 0.14 breaking changes + (dictionary borrowing, license, bindgen) do not touch that call. + +### Verification +- The stock-`symbolic` build and this build were compared on the same inputs: 2,160 CLI + invocations over 315 files and 45 directories (system Mach-O fat binaries and the `symbolic` and + repo fixtures) gave identical exit code, stdout and stderr; 30 real uploads (ELF, PDB, dSYM and + Rust flows) gave byte-identical registration bodies and uploaded packages. +- `scripts/e2e_flows.py` passes against both, inside its peak-memory budgets; the new build reaches + `api.bugsee.com` and `download.bugsee.com` over TLS/HTTP2 with the same responses as before. + ### Changed +- **Symbol parsing comes from a pinned fork of `symbolic`** (see Security above); behaviour is + unchanged. - **MSRV raised to 1.89** (`rust-version`): `uuid` 1.29 requires it. Verified with `cargo +1.89 check --all-targets`. +- **No ANSI colour codes in logs unless stderr is a terminal.** Xcode and Gradle build logs, CI + logs and the detached `bugsee-cli.log` no longer contain escape codes; a non-empty `NO_COLOR` + also turns colour off. +- **The legacy `@bugsee/bugsee-cli` npm package is no longer published.** Use `@bugsee/cli`. + +[#96]: https://github.com/bugsee/bugsee-cli/issues/96 ## [0.8.1] - 2026-10-08 diff --git a/Cargo.lock b/Cargo.lock index b9f1b7b..c248dc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,7 +59,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]] @@ -70,7 +70,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -204,7 +204,7 @@ dependencies = [ [[package]] name = "bugsee-cli" -version = "0.8.1" +version = "0.8.2" dependencies = [ "anyhow", "assert_cmd", @@ -236,8 +236,8 @@ dependencies = [ "uuid", "walkdir", "wiremock", - "zip 9.1.2", - "zstd 0.14.3", + "zip", + "zstd", ] [[package]] @@ -507,7 +507,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]] @@ -750,9 +750,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.14" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733" +checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118" dependencies = [ "atomic-waker", "bytes", @@ -1302,7 +1302,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]] @@ -1549,9 +1549,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.17" +version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" dependencies = [ "bytes", "getrandom 0.4.2", @@ -1751,7 +1751,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -1780,9 +1780,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.15" +version = "0.103.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" dependencies = [ "ring", "rustls-pki-types", @@ -1998,7 +1998,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51" dependencies = [ "libc", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -2077,8 +2077,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "symbolic-common" version = "13.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfa0014ff4e423a1bb8881453c7a29181eb14fe1dbc8e0197ebfa081903f3ed" +source = "git+https://github.com/bugsee/symbolic?rev=326a05f91d5fc41cbd5c4f0d4144b7793dfee744#326a05f91d5fc41cbd5c4f0d4144b7793dfee744" dependencies = [ "debugid", "memmap2", @@ -2089,8 +2088,7 @@ dependencies = [ [[package]] name = "symbolic-debuginfo" version = "13.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8d43fa61c285421813524f466b5ad9a81fb97a03d1a8bf02931588a2aa47434" +source = "git+https://github.com/bugsee/symbolic?rev=326a05f91d5fc41cbd5c4f0d4144b7793dfee744#326a05f91d5fc41cbd5c4f0d4144b7793dfee744" dependencies = [ "debugid", "elementtree", @@ -2115,15 +2113,14 @@ dependencies = [ "symbolic-ppdb", "thiserror 2.0.21", "wasmparser 0.243.0", - "zip 7.2.0", - "zstd 0.13.3", + "zip", + "zstd", ] [[package]] name = "symbolic-ppdb" version = "13.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1949ab1ac6caf9e1fde03d5bd35570727b2839fb399737171784ecf7dc4baa0e" +source = "git+https://github.com/bugsee/symbolic?rev=326a05f91d5fc41cbd5c4f0d4144b7793dfee744#326a05f91d5fc41cbd5c4f0d4144b7793dfee744" dependencies = [ "flate2", "indexmap", @@ -2187,7 +2184,7 @@ dependencies = [ "getrandom 0.4.2", "once_cell", "rustix", - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -2467,12 +2464,6 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "typed-path" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" - [[package]] name = "typed-path" version = "0.13.0" @@ -2759,9 +2750,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "1.0.7" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52f5ee44c96cf55f1b349600768e3ece3a8f26010c05265ab73f945bb1a2eb9d" +checksum = "f5f280bbb2b287bc8e7de7e3852945a0ff50d1bbcb5ed42b6c7a568c546df171" dependencies = [ "rustls-pki-types", ] @@ -2772,7 +2763,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.61.2", + "windows-sys 0.60.2", ] [[package]] @@ -3143,20 +3134,6 @@ dependencies = [ "syn 2.0.117", ] -[[package]] -name = "zip" -version = "7.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0" -dependencies = [ - "crc32fast", - "flate2", - "indexmap", - "memchr", - "typed-path 0.12.3", - "zopfli", -] - [[package]] name = "zip" version = "9.1.2" @@ -3169,10 +3146,10 @@ dependencies = [ "indexmap", "memchr", "nix", - "typed-path 0.13.0", + "typed-path", "windows-sys 0.61.2", "zopfli", - "zstd 0.14.3", + "zstd", ] [[package]] @@ -3199,31 +3176,13 @@ dependencies = [ "simd-adler32", ] -[[package]] -name = "zstd" -version = "0.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" -dependencies = [ - "zstd-safe 7.2.4", -] - [[package]] name = "zstd" version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db3ae9bf90af6e40197bef767eeefc46ad6397420fe873830bd85e5fbbfb3c70" dependencies = [ - "zstd-safe 8.2.0", -] - -[[package]] -name = "zstd-safe" -version = "7.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" -dependencies = [ - "zstd-sys", + "zstd-safe", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 9a52cdc..fbd8115 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bugsee-cli" -version = "0.8.1" +version = "0.8.2" edition = "2021" # Real floor, not an aspiration: the locked tree requires 1.89 (`uuid`, # plus `gimli`, `globset`, `plist`, `time` at 1.88). Verify a bump with `cargo + check @@ -116,8 +116,13 @@ futures-util = "0.3" # `code_id` (GNU build-id) the per-`.so` native upload reads is a stable, # major-13 value, so a newer minor here stays identifier-compatible with the # worker's 13.1.1. -symbolic-common = "13.9.0" -symbolic-debuginfo = "13.9.0" +# TEMPORARY FORK: bugsee/symbolic branch `bugsee/13.9.0-zip9` = upstream 13.9.0 plus +# getsentry/symbolic#1097 (zip 7.2.0 -> 9). Stock 13.9.0 pulls zip 7.2.0 through its +# default `sourcebundle` feature, inside the advisory range (<9.0.0), and neither +# 13.9.0 nor 14.0.0-alpha.4 builds with that feature off. Drop this and return to +# crates.io once a symbolic release includes #1097. Tracking: https://github.com/bugsee/bugsee-cli/issues/96 +symbolic-common = { git = "https://github.com/bugsee/symbolic", rev = "326a05f91d5fc41cbd5c4f0d4144b7793dfee744" } +symbolic-debuginfo = { git = "https://github.com/bugsee/symbolic", rev = "326a05f91d5fc41cbd5c4f0d4144b7793dfee744" } # Regex for the iOS deps text parsers (Cartfile.resolved lines and otool -L # load-path lines). Used in cli/ios_deps.rs only.