From 0b882d5453506cdd333d2e84f307d241c66850a8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Sep 2026 06:56:26 +0000 Subject: [PATCH 01/18] Add Dependabot config for Cargo and Actions Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com> --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..de088db --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/rust" + schedule: + interval: "weekly" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" From 61191a8d9c96e86bfe7cdf6543d84c86afcc7fa9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:10 +0000 Subject: [PATCH 02/18] chore(deps): bump actions/cache from 4 to 6 Bumps [actions/cache](https://github.com/actions/cache) from 4 to 6. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f59d34..fb9b023 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: with: targets: ${{ matrix.target }} - - uses: actions/cache@v4 + - uses: actions/cache@v6 with: path: | ~/.cargo/registry From e5a63440a3e244407ef82d74ea7141ca3c2f82d1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:11 +0000 Subject: [PATCH 03/18] chore(deps): bump serde_json from 1.0.149 to 1.0.151 in /rust Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.149 to 1.0.151. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.149...v1.0.151) --- updated-dependencies: - dependency-name: serde_json dependency-version: 1.0.151 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index f8b7ade..6e2f231 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1089,9 +1089,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.149" +version = "1.0.151" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" dependencies = [ "itoa", "memchr", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 126ade6..9abe190 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] clap = { version = "= 4.5.57", features = ["derive"] } serde = { version = "= 1.0.228", features = ["derive"] } -serde_json = "= 1.0.149" +serde_json = "= 1.0.151" toml = "= 0.8.23" tracing = { version = "= 0.1.44", features = ["log"] } tracing-subscriber = { version = "= 0.3.22", features = ["env-filter"] } From 059f975658e29da2b1a3199c41fd485c29447e63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:16 +0000 Subject: [PATCH 04/18] chore(deps): bump actions/checkout from 4 to 7 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f59d34..745996f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: abi: x86 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: submodules: recursive @@ -119,7 +119,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: submodules: recursive @@ -233,7 +233,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Read version id: ver From 588aba72db9d1f744ae490b0aea3f7c9c66e0f0b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:19 +0000 Subject: [PATCH 05/18] chore(deps): bump base64 from 0.22.1 to 0.23.1 in /rust Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.22.1 to 0.23.1. - [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md) - [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.22.1...v0.23.1) --- updated-dependencies: - dependency-name: base64 dependency-version: 0.23.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- rust/Cargo.lock | 12 +++++++++--- rust/Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index f8b7ade..5dd5d3f 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -130,6 +130,12 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + [[package]] name = "base64ct" version = "1.8.3" @@ -789,7 +795,7 @@ version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" dependencies = [ - "base64", + "base64 0.22.1", "serde_core", ] @@ -1218,7 +1224,7 @@ name = "ta-enhanced" version = "5.53.1" dependencies = [ "anyhow", - "base64", + "base64 0.23.1", "clap", "libc", "nix", @@ -1435,7 +1441,7 @@ version = "2.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d" dependencies = [ - "base64", + "base64 0.22.1", "flate2", "log", "once_cell", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 126ade6..49b850d 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -14,7 +14,7 @@ anyhow = "= 1.0.101" libc = "= 0.2.180" ureq = { version = "= 2.12.1", features = ["tls"] } quick-xml = { version = "= 0.37.2", features = ["serialize"] } -base64 = "= 0.22.1" +base64 = "= 0.23.1" nix = { version = "= 0.29.0", features = ["signal", "process"] } ring = "0.17" x509-parser = "= 0.18.1" From 0183dd142e8789b17d0a936b65a71352aa1985ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:20 +0000 Subject: [PATCH 06/18] chore(deps): bump actions/upload-artifact from 4 to 7 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f59d34..dd1ab2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,7 +109,7 @@ jobs: env: TARGET: ${{ matrix.target }} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: bin-${{ matrix.abi }}-${{ matrix.profile }} path: rust/target/${{ matrix.target }}/${{ matrix.profile }}/ta-enhanced @@ -214,13 +214,13 @@ jobs: mv release/*-debug.zip release/dbg/ 2>/dev/null || true mv release/*.zip release/rel/ 2>/dev/null || true - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: ta-enhanced-release-zip path: release/rel/*.zip retention-days: 30 - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: ta-enhanced-debug-zip path: release/dbg/*.zip From 82cddf249fed480b0cec26a0238b977c0e3f957a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:23 +0000 Subject: [PATCH 07/18] chore(deps): bump rand from 0.8.5 to 0.10.2 in /rust Bumps [rand](https://github.com/rust-random/rand) from 0.8.5 to 0.10.2. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/0.8.5...0.10.2) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- rust/Cargo.lock | 86 ++++++++++++++++++++++++++++++++++++++++--------- rust/Cargo.toml | 2 +- 2 files changed, 71 insertions(+), 17 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index f8b7ade..01c5303 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -173,6 +173,17 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "rand_core 0.10.1", +] + [[package]] name = "clap" version = "4.5.57" @@ -234,6 +245,15 @@ dependencies = [ "libc", ] +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + [[package]] name = "crc32fast" version = "1.5.0" @@ -250,7 +270,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", - "rand_core", + "rand_core 0.6.4", "subtle", "zeroize", ] @@ -356,7 +376,7 @@ dependencies = [ "group", "pem-rfc7468", "pkcs8", - "rand_core", + "rand_core 0.6.4", "sec1", "subtle", "zeroize", @@ -374,7 +394,7 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" dependencies = [ - "rand_core", + "rand_core 0.6.4", "subtle", ] @@ -425,6 +445,18 @@ dependencies = [ "wasi", ] +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "rand_core 0.10.1", +] + [[package]] name = "group" version = "0.13.0" @@ -432,7 +464,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", - "rand_core", + "rand_core 0.6.4", "subtle", ] @@ -697,7 +729,7 @@ dependencies = [ "num-integer", "num-iter", "num-traits", - "rand", + "rand 0.8.8", "smallvec", "zeroize", ] @@ -896,15 +928,31 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "rand" -version = "0.8.5" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" dependencies = [ - "libc", "rand_chacha", - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", ] [[package]] @@ -914,7 +962,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -923,9 +971,15 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.17", ] +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + [[package]] name = "rcgen" version = "0.12.1" @@ -973,7 +1027,7 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom", + "getrandom 0.2.17", "libc", "untrusted", "windows-sys 0.52.0", @@ -992,7 +1046,7 @@ dependencies = [ "num-traits", "pkcs1", "pkcs8", - "rand_core", + "rand_core 0.6.4", "signature", "spki", "subtle", @@ -1116,7 +1170,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", - "cpufeatures", + "cpufeatures 0.2.17", "digest", ] @@ -1142,7 +1196,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest", - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -1225,7 +1279,7 @@ dependencies = [ "p256", "p384", "quick-xml", - "rand", + "rand 0.10.2", "rcgen", "ring", "rsa", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 126ade6..be393da 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -22,7 +22,7 @@ rcgen = { version = "0.12", default-features = false, features = ["pem", "ring"] rsa = { version = "0.9", default-features = false, features = ["std", "pem"] } p256 = { version = "= 0.13.2", default-features = false, features = ["std", "pem", "pkcs8", "ecdsa"] } p384 = { version = "= 0.13.1", default-features = false, features = ["std", "pem", "pkcs8", "ecdsa"] } -rand = "0.8" +rand = "0.10" [profile.dev] strip = false From 70b8f7d033140bb31ac49676c9575c96b0daaf31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:05:26 +0000 Subject: [PATCH 08/18] chore(deps): bump actions/download-artifact from 4 to 8 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v8) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f59d34..6f01697 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -124,7 +124,7 @@ jobs: submodules: recursive - name: Download build artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: path: artifacts @@ -241,12 +241,12 @@ jobs: ver=$(grep '^version=' module.prop | cut -d= -f2) echo "version=${ver}" >> "$GITHUB_OUTPUT" - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: name: ta-enhanced-release-zip path: zips/release - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: name: ta-enhanced-debug-zip path: zips/debug From 8545f66001ac477d12e0d92312a83abf990a2729 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:10:13 +0000 Subject: [PATCH 09/18] chore(deps): bump rustls-webpki Bumps the cargo group with 1 update in the /rust directory: [rustls-webpki](https://github.com/rustls/webpki). Updates `rustls-webpki` from 0.103.9 to 0.103.15 - [Release notes](https://github.com/rustls/webpki/releases) - [Commits](https://github.com/rustls/webpki/compare/v/0.103.9...v/0.103.15) --- updated-dependencies: - dependency-name: rustls-webpki dependency-version: 0.103.15 dependency-type: indirect dependency-group: cargo ... Signed-off-by: dependabot[bot] --- rust/Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 5dd5d3f..90ade48 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -1040,9 +1040,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.9" +version = "0.103.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" dependencies = [ "ring", "rustls-pki-types", From 62f1d02c76e7d53976cb644bf1cc538508dc0fc4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:11:38 +0000 Subject: [PATCH 10/18] chore(deps): bump nix from 0.29.0 to 0.31.1 in /rust Bumps [nix](https://github.com/nix-rust/nix) from 0.29.0 to 0.31.1. - [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md) - [Commits](https://github.com/nix-rust/nix/compare/v0.29.0...v0.31.1) --- updated-dependencies: - dependency-name: nix dependency-version: 0.31.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index c9d24bc..10bdc8a 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -653,9 +653,9 @@ dependencies = [ [[package]] name = "nix" -version = "0.29.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +checksum = "225e7cfe711e0ba79a68baeddb2982723e4235247aefce1482f2f16c27865b66" dependencies = [ "bitflags", "cfg-if", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 5d7d98a..c09b351 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -15,7 +15,7 @@ libc = "= 0.2.180" ureq = { version = "= 2.12.1", features = ["tls"] } quick-xml = { version = "= 0.37.2", features = ["serialize"] } base64 = "= 0.23.1" -nix = { version = "= 0.29.0", features = ["signal", "process"] } +nix = { version = "= 0.31.1", features = ["signal", "process"] } ring = "0.17" x509-parser = "= 0.18.1" rcgen = { version = "0.12", default-features = false, features = ["pem", "ring"] } From 216e233e2e13aeab50191aa372504918c8528dec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:16:46 +0000 Subject: [PATCH 11/18] chore(deps): bump rcgen from 0.12.1 to 0.14.10 in /rust Bumps [rcgen](https://github.com/rustls/rcgen) from 0.12.1 to 0.14.10. - [Release notes](https://github.com/rustls/rcgen/releases) - [Commits](https://github.com/rustls/rcgen/compare/v0.12.1...v0.14.10) --- updated-dependencies: - dependency-name: rcgen dependency-version: 0.14.10 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- rust/Cargo.lock | 27 ++++++++++++++++++++------- rust/Cargo.toml | 2 +- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 3d9d65e..6a33f22 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -142,6 +142,15 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" +[[package]] +name = "bit-vec" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" +dependencies = [ + "serde", +] + [[package]] name = "bitflags" version = "2.11.0" @@ -791,11 +800,11 @@ dependencies = [ [[package]] name = "pem" -version = "3.0.6" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" +checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120" dependencies = [ - "base64 0.22.1", + "base64 0.23.1", "serde_core", ] @@ -934,13 +943,15 @@ dependencies = [ [[package]] name = "rcgen" -version = "0.12.1" +version = "0.14.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48406db8ac1f3cbc7dcdb56ec355343817958a356ff430259bb07baf7607e1e1" +checksum = "8774e05a7d0de114588e6a28fe7e71694b82614ed569d86d8b389dfbc98b8ad8" dependencies = [ "pem", "ring", + "rustls-pki-types", "time", + "x509-parser", "yasna", ] @@ -1626,6 +1637,7 @@ dependencies = [ "lazy_static", "nom", "oid-registry", + "ring", "rusticata-macros", "thiserror", "time", @@ -1633,10 +1645,11 @@ dependencies = [ [[package]] name = "yasna" -version = "0.5.2" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" +checksum = "b5f6765e852b9b4dc8e2a76843e4d64d1cea8e79bcde0b6901aea8e7c7f08282" dependencies = [ + "bit-vec", "time", ] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index c09b351..4559bbe 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -18,7 +18,7 @@ base64 = "= 0.23.1" nix = { version = "= 0.31.1", features = ["signal", "process"] } ring = "0.17" x509-parser = "= 0.18.1" -rcgen = { version = "0.12", default-features = false, features = ["pem", "ring"] } +rcgen = { version = "0.14", default-features = false, features = ["pem", "ring"] } rsa = { version = "0.9", default-features = false, features = ["std", "pem"] } p256 = { version = "= 0.13.2", default-features = false, features = ["std", "pem", "pkcs8", "ecdsa"] } p384 = { version = "= 0.13.1", default-features = false, features = ["std", "pem", "pkcs8", "ecdsa"] } From 9486579f52632de6ece9f70b7702819a4338745c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:18:28 +0000 Subject: [PATCH 12/18] Pin rand to 0.8 for rsa compatibility Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com> --- rust/Cargo.lock | 82 +++++++++---------------------------------------- rust/Cargo.toml | 2 +- 2 files changed, 15 insertions(+), 69 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 01c5303..26a834d 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -173,17 +173,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" -[[package]] -name = "chacha20" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" -dependencies = [ - "cfg-if", - "cpufeatures 0.3.1", - "rand_core 0.10.1", -] - [[package]] name = "clap" version = "4.5.57" @@ -245,15 +234,6 @@ dependencies = [ "libc", ] -[[package]] -name = "cpufeatures" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" -dependencies = [ - "libc", -] - [[package]] name = "crc32fast" version = "1.5.0" @@ -270,7 +250,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array", - "rand_core 0.6.4", + "rand_core", "subtle", "zeroize", ] @@ -376,7 +356,7 @@ dependencies = [ "group", "pem-rfc7468", "pkcs8", - "rand_core 0.6.4", + "rand_core", "sec1", "subtle", "zeroize", @@ -394,7 +374,7 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" dependencies = [ - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -445,18 +425,6 @@ dependencies = [ "wasi", ] -[[package]] -name = "getrandom" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" -dependencies = [ - "cfg-if", - "libc", - "r-efi", - "rand_core 0.10.1", -] - [[package]] name = "group" version = "0.13.0" @@ -464,7 +432,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", - "rand_core 0.6.4", + "rand_core", "subtle", ] @@ -729,7 +697,7 @@ dependencies = [ "num-integer", "num-iter", "num-traits", - "rand 0.8.8", + "rand", "smallvec", "zeroize", ] @@ -928,31 +896,15 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "r-efi" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" - [[package]] name = "rand" version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" dependencies = [ + "libc", "rand_chacha", - "rand_core 0.6.4", -] - -[[package]] -name = "rand" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" -dependencies = [ - "chacha20", - "getrandom 0.4.3", - "rand_core 0.10.1", + "rand_core", ] [[package]] @@ -962,7 +914,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -971,15 +923,9 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.17", + "getrandom", ] -[[package]] -name = "rand_core" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" - [[package]] name = "rcgen" version = "0.12.1" @@ -1027,7 +973,7 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.17", + "getrandom", "libc", "untrusted", "windows-sys 0.52.0", @@ -1046,7 +992,7 @@ dependencies = [ "num-traits", "pkcs1", "pkcs8", - "rand_core 0.6.4", + "rand_core", "signature", "spki", "subtle", @@ -1170,7 +1116,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", - "cpufeatures 0.2.17", + "cpufeatures", "digest", ] @@ -1196,7 +1142,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest", - "rand_core 0.6.4", + "rand_core", ] [[package]] @@ -1279,7 +1225,7 @@ dependencies = [ "p256", "p384", "quick-xml", - "rand 0.10.2", + "rand", "rcgen", "ring", "rsa", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index be393da..126ade6 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -22,7 +22,7 @@ rcgen = { version = "0.12", default-features = false, features = ["pem", "ring"] rsa = { version = "0.9", default-features = false, features = ["std", "pem"] } p256 = { version = "= 0.13.2", default-features = false, features = ["std", "pem", "pkcs8", "ecdsa"] } p384 = { version = "= 0.13.1", default-features = false, features = ["std", "pem", "pkcs8", "ecdsa"] } -rand = "0.10" +rand = "0.8" [profile.dev] strip = false From 96d3274b6717c2a0dfb91953a9d1c271b3bf2caf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Sep 2026 07:18:44 +0000 Subject: [PATCH 13/18] Changes before error encountered Agent-Logs-Url: https://github.com/uurcan7/tricky-addon-enhanced/sessions/78871aec-e0d0-409b-a919-07d99b9e8af8 Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com> --- rust/src/keybox/generate.rs | 13 +++++++------ rust/src/keybox/validate.rs | 30 +++++++++++++++--------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/rust/src/keybox/generate.rs b/rust/src/keybox/generate.rs index 47c750a..87492b4 100644 --- a/rust/src/keybox/generate.rs +++ b/rust/src/keybox/generate.rs @@ -1,5 +1,5 @@ use anyhow::{Context, Result}; -use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, PKCS_ECDSA_P256_SHA256}; +use rcgen::{CertificateParams, DistinguishedName, DnType, KeyPair, PKCS_ECDSA_P256_SHA256}; use rsa::RsaPrivateKey; use rsa::pkcs8::EncodePrivateKey; @@ -33,15 +33,16 @@ pub fn generate_and_install() -> Result<()> { fn generate() -> Result { let mut params = CertificateParams::default(); - params.alg = &PKCS_ECDSA_P256_SHA256; params.distinguished_name = DistinguishedName::new(); params.distinguished_name.push(DnType::CommonName, "Android Keybox"); - let cert = Certificate::from_params(params) + let ec_key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256) + .context("EC key generation failed")?; + let cert = params + .self_signed(&ec_key) .context("EC cert generation failed")?; - let ec_pem = cert.serialize_private_key_pem(); - let cert_pem = cert.serialize_pem() - .context("cert serialization failed")?; + let ec_pem = ec_key.serialize_pem(); + let cert_pem = cert.pem(); let mut rng = rand::rngs::OsRng; let rsa_key = RsaPrivateKey::new(&mut rng, 2048) diff --git a/rust/src/keybox/validate.rs b/rust/src/keybox/validate.rs index f5950fa..bee3444 100644 --- a/rust/src/keybox/validate.rs +++ b/rust/src/keybox/validate.rs @@ -767,18 +767,18 @@ mod tests { #[test] fn ecdsa_p256_self_signed_link_verifies() { - use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, PKCS_ECDSA_P256_SHA256}; + use rcgen::{CertificateParams, DistinguishedName, DnType, KeyPair, PKCS_ECDSA_P256_SHA256}; let mut params = CertificateParams::default(); - params.alg = &PKCS_ECDSA_P256_SHA256; params.distinguished_name = DistinguishedName::new(); params .distinguished_name .push(DnType::CommonName, "test-leaf"); - let cert = Certificate::from_params(params).expect("rcgen build"); - let der = cert.serialize_der().expect("rcgen serialize"); + let key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256).expect("rcgen key"); + let cert = params.self_signed(&key).expect("rcgen build"); + let der = cert.der(); - let (_, parsed) = X509Certificate::from_der(&der).expect("x509 parse"); + let (_, parsed) = X509Certificate::from_der(der.as_ref()).expect("x509 parse"); verify_link(&parsed, &parsed).expect("self-signed P-256 link verifies"); } @@ -811,18 +811,18 @@ mod tests { #[test] fn lookup_revocation_finds_serial() { - use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, PKCS_ECDSA_P256_SHA256, SerialNumber}; + use rcgen::{CertificateParams, DistinguishedName, DnType, KeyPair, PKCS_ECDSA_P256_SHA256, SerialNumber}; let mut params = CertificateParams::default(); - params.alg = &PKCS_ECDSA_P256_SHA256; params.serial_number = Some(SerialNumber::from(0xdead_beefu64)); params.distinguished_name = DistinguishedName::new(); params .distinguished_name .push(DnType::CommonName, "rev-test"); - let cert = Certificate::from_params(params).expect("rcgen build"); - let der = cert.serialize_der().expect("rcgen serialize"); - let (_, parsed) = X509Certificate::from_der(&der).expect("x509 parse"); + let key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256).expect("rcgen key"); + let cert = params.self_signed(&key).expect("rcgen build"); + let der = cert.der(); + let (_, parsed) = X509Certificate::from_der(der.as_ref()).expect("x509 parse"); let mut entries = serde_json::Map::new(); entries.insert( @@ -839,16 +839,16 @@ mod tests { #[test] fn lookup_revocation_returns_none_when_clean() { - use rcgen::{Certificate, CertificateParams, DistinguishedName, DnType, PKCS_ECDSA_P256_SHA256, SerialNumber}; + use rcgen::{CertificateParams, DistinguishedName, DnType, KeyPair, PKCS_ECDSA_P256_SHA256, SerialNumber}; let mut params = CertificateParams::default(); - params.alg = &PKCS_ECDSA_P256_SHA256; params.serial_number = Some(SerialNumber::from(0x1234u64)); params.distinguished_name = DistinguishedName::new(); params.distinguished_name.push(DnType::CommonName, "clean"); - let cert = Certificate::from_params(params).expect("rcgen build"); - let der = cert.serialize_der().expect("rcgen serialize"); - let (_, parsed) = X509Certificate::from_der(&der).expect("x509 parse"); + let key = KeyPair::generate_for(&PKCS_ECDSA_P256_SHA256).expect("rcgen key"); + let cert = params.self_signed(&key).expect("rcgen build"); + let der = cert.der(); + let (_, parsed) = X509Certificate::from_der(der.as_ref()).expect("x509 parse"); let mut entries = serde_json::Map::new(); entries.insert( From 793111fe6c48beec623e00a9a599a94bc36b9f50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Sep 2026 06:46:45 +0000 Subject: [PATCH 14/18] Initial plan From 64d2d8fefec52136a6fc9c10feceed85c7b92ff2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Sep 2026 06:47:28 +0000 Subject: [PATCH 15/18] Initial plan From 9844aec4a2a4620191f5b7ef2179412488d52c3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Sep 2026 06:49:07 +0000 Subject: [PATCH 16/18] fix: set least-privilege workflow token permissions Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com> --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b288031..28372c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,9 @@ on: - 'rust/**' workflow_dispatch: +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest From e72e707137eed24f81382c791813a80ff7fc7661 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Sep 2026 06:49:09 +0000 Subject: [PATCH 17/18] fix: set least-privilege GITHUB_TOKEN permission in build workflow Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com> --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b288031..28372c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,9 @@ on: - 'rust/**' workflow_dispatch: +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest From 547e94e749b1228c466ec90796f294373cde4133 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 10 Sep 2026 07:06:19 +0000 Subject: [PATCH 18/18] Fix signal handler function pointer cast warning Co-authored-by: uurcan7 <79050542+uurcan7@users.noreply.github.com> --- rust/src/platform/signal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/platform/signal.rs b/rust/src/platform/signal.rs index 151e5a2..82952f9 100644 --- a/rust/src/platform/signal.rs +++ b/rust/src/platform/signal.rs @@ -5,7 +5,7 @@ pub static SHUTDOWN: AtomicBool = AtomicBool::new(false); pub fn register_shutdown_handler() { unsafe { let mut sa: libc::sigaction = std::mem::zeroed(); - sa.sa_sigaction = shutdown_handler as usize; + sa.sa_sigaction = shutdown_handler as *const () as usize; sa.sa_flags = libc::SA_RESTART; libc::sigaction(libc::SIGTERM, &sa, std::ptr::null_mut()); libc::sigaction(libc::SIGINT, &sa, std::ptr::null_mut());