Repository navigation
chore(deps): update rust crate sha2 to 0.11 - #44
cachekit-renovate-bot[bot] wants to merge 1 commit into
Conversation
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
Kody Code Review — 2 suggested fixes. 🛠️ Open Agent Prompt |
| hkdf = "0.12" | ||
| rustix = { version = "1", features = ["pty"] } | ||
| sha2 = "0.10" | ||
| sha2 = "0.11" |
There was a problem hiding this comment.
WHAT: The sha2 dependency moves from 0.10 to 0.11. This diff has no evidence of a CVE or supply-chain check, and no matching Cargo.lock update is visible.
WHY: For 0.x crates, a minor version bump is semver-breaking. sha2 0.11 depends on digest 0.11, but the existing hkdf = "0.12" (and likely aes-gcm/RustCrypto peers) depends on digest 0.10. Code like Hkdf<Sha256> would then fail to compile, or the build would pull in duplicate digest versions. Dependency changes also need audit evidence before merge.
HOW: Run cargo audit or check OSV for sha2 0.11 and add the output to the PR description. Commit the updated Cargo.lock. Either bump hkdf (and any other digest-0.10 consumers) to versions built on digest 0.11, or keep sha2 at 0.10 until the whole RustCrypto set can move together.
Kody rule violation: Validate new/updated dependencies for CVEs and supply-chain risk
Prompt for LLM
File Cargo.toml:
Line 48:
WHAT: The `sha2` dependency moves from 0.10 to 0.11. This diff has no evidence of a CVE or supply-chain check, and no matching Cargo.lock update is visible.
WHY: For 0.x crates, a minor version bump is semver-breaking. sha2 0.11 depends on `digest` 0.11, but the existing `hkdf = "0.12"` (and likely `aes-gcm`/RustCrypto peers) depends on `digest` 0.10. Code like `Hkdf<Sha256>` would then fail to compile, or the build would pull in duplicate digest versions. Dependency changes also need audit evidence before merge.
HOW: Run `cargo audit` or check OSV for sha2 0.11 and add the output to the PR description. Commit the updated Cargo.lock. Either bump `hkdf` (and any other digest-0.10 consumers) to versions built on digest 0.11, or keep sha2 at 0.10 until the whole RustCrypto set can move together.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
| hkdf = "0.12" | ||
| rustix = { version = "1", features = ["pty"] } | ||
| sha2 = "0.10" | ||
| sha2 = "0.11" |
There was a problem hiding this comment.
Version mismatch in Cargo.toml dev-dependencies: sha2 0.11 implements digest 0.11 traits, while hkdf 0.12 depends on digest 0.10.7 through hmac 0.12.1 (per Cargo.lock). When cargo test compiles the frozen module, the Hkdf::<Sha256>::new(...) call in src/store.rs:327 fails because sha2 0.11's Sha256 does not satisfy hkdf 0.12's digest 0.10 trait bounds. Fix: bump hkdf to 0.13 (hmac 0.13 / digest 0.11) in the same change, or keep sha2 at 0.10.
hkdf = "0.13"
rustix = { version = "1", features = ["pty"] }
sha2 = "0.11"Prompt for LLM
File Cargo.toml:
Line 46 to 48:
Version mismatch in Cargo.toml dev-dependencies: sha2 0.11 implements digest 0.11 traits, while hkdf 0.12 depends on digest 0.10.7 through hmac 0.12.1 (per Cargo.lock). When `cargo test` compiles the `frozen` module, the `Hkdf::<Sha256>::new(...)` call in src/store.rs:327 fails because sha2 0.11's `Sha256` does not satisfy hkdf 0.12's digest 0.10 trait bounds. Fix: bump hkdf to 0.13 (hmac 0.13 / digest 0.11) in the same change, or keep sha2 at 0.10.
Suggested Code:
hkdf = "0.13"
rustix = { version = "1", features = ["pty"] }
sha2 = "0.11"
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
8243aa9 to
a5a52e4
Compare
| hkdf = "0.12" | ||
| rustix = { version = "1", features = ["pty"] } | ||
| sha2 = "0.10" | ||
| sha2 = "0.11" |
There was a problem hiding this comment.
WHAT: The sha2 dependency is bumped from 0.10 to 0.11 in Cargo.toml, and no vulnerability or supply-chain evidence is attached. WHY: In 0.x crates a minor bump is semver-breaking. Dependency changes must be checked for known CVEs and supply-chain risk, and the lockfile must be updated to match. Related RustCrypto crates (hkdf 0.12, aes-gcm) may also pin an incompatible digest version, which can pull in duplicate trait versions. HOW: Run cargo audit and/or query OSV for sha2 0.11 and paste the output in the PR description. Commit the updated Cargo.lock, and confirm with cargo tree -d that hkdf, aes-gcm and related crates resolve compatible digest/crypto-common versions.
Kody rule violation: Validate new/updated dependencies for CVEs and supply-chain risk
Prompt for LLM
File Cargo.toml:
Line 48:
WHAT: The `sha2` dependency is bumped from 0.10 to 0.11 in Cargo.toml, and no vulnerability or supply-chain evidence is attached. WHY: In 0.x crates a minor bump is semver-breaking. Dependency changes must be checked for known CVEs and supply-chain risk, and the lockfile must be updated to match. Related RustCrypto crates (`hkdf` 0.12, `aes-gcm`) may also pin an incompatible `digest` version, which can pull in duplicate trait versions. HOW: Run `cargo audit` and/or query OSV for sha2 0.11 and paste the output in the PR description. Commit the updated Cargo.lock, and confirm with `cargo tree -d` that `hkdf`, `aes-gcm` and related crates resolve compatible `digest`/`crypto-common` versions.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
| hkdf = "0.12" | ||
| rustix = { version = "1", features = ["pty"] } | ||
| sha2 = "0.10" | ||
| sha2 = "0.11" |
There was a problem hiding this comment.
Version mismatch in Cargo.toml dev-dependencies: sha2 moves to 0.11, which uses digest 0.11, while hkdf stays at 0.12, which uses hmac 0.12 and digest 0.10 per Cargo.lock. Because sha2 0.11's Sha256 does not implement the digest 0.10 traits that Hkdf<H> requires, Hkdf::<Sha256>::new(Some(&salt), master_key) in src/store.rs:328 fails to compile and cargo test fails to build. Fix: bump hkdf to 0.13 (built on digest 0.11) in the same PR, or keep sha2 at 0.10.
hkdf = "0.13"
rustix = { version = "1", features = ["pty"] }
sha2 = "0.11"Prompt for LLM
File Cargo.toml:
Line 46 to 48:
Version mismatch in Cargo.toml dev-dependencies: `sha2` moves to 0.11, which uses `digest` 0.11, while `hkdf` stays at 0.12, which uses `hmac` 0.12 and `digest` 0.10 per Cargo.lock. Because `sha2` 0.11's `Sha256` does not implement the `digest` 0.10 traits that `Hkdf<H>` requires, `Hkdf::<Sha256>::new(Some(&salt), master_key)` in src/store.rs:328 fails to compile and `cargo test` fails to build. Fix: bump `hkdf` to 0.13 (built on `digest` 0.11) in the same PR, or keep `sha2` at 0.10.
Suggested Code:
hkdf = "0.13"
rustix = { version = "1", features = ["pty"] }
sha2 = "0.11"
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
a5a52e4 to
73e6eee
Compare
| hkdf = "0.12" | ||
| rustix = { version = "1", features = ["pty"] } | ||
| sha2 = "0.10" | ||
| sha2 = "0.11" |
There was a problem hiding this comment.
WHAT: The sha2 dependency moves from 0.10 to 0.11 in Cargo.toml with no supply-chain evidence attached.
WHY: Dependency manifest changes must be checked for known vulnerabilities and must come with an updated lockfile. sha2 0.11 is a semver-breaking release that pulls in the new digest 0.11 ecosystem. That can cause transitive version jumps or duplicate crate versions alongside other RustCrypto crates still on 0.10 (e.g., hkdf 0.12).
HOW: Run cargo audit (or an OSV/SCA query) for sha2 0.11 and its new transitives, and attach the output to the PR description. Commit the updated Cargo.lock. Confirm with cargo tree -d that no duplicate digest versions are introduced, or bump the related crates (e.g., hkdf) together.
Kody rule violation: Validate new/updated dependencies for CVEs and supply-chain risk
Prompt for LLM
File Cargo.toml:
Line 48:
WHAT: The `sha2` dependency moves from 0.10 to 0.11 in Cargo.toml with no supply-chain evidence attached.
WHY: Dependency manifest changes must be checked for known vulnerabilities and must come with an updated lockfile. sha2 0.11 is a semver-breaking release that pulls in the new `digest` 0.11 ecosystem. That can cause transitive version jumps or duplicate crate versions alongside other RustCrypto crates still on 0.10 (e.g., `hkdf` 0.12).
HOW: Run `cargo audit` (or an OSV/SCA query) for sha2 0.11 and its new transitives, and attach the output to the PR description. Commit the updated Cargo.lock. Confirm with `cargo tree -d` that no duplicate `digest` versions are introduced, or bump the related crates (e.g., `hkdf`) together.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
| hkdf = "0.12" | ||
| rustix = { version = "1", features = ["pty"] } | ||
| sha2 = "0.10" | ||
| sha2 = "0.11" |
There was a problem hiding this comment.
Version mismatch in Cargo.toml dev-dependencies: sha2 0.11 depends on digest 0.11, while hkdf 0.12 still depends on hmac 0.12 and digest 0.10 (Cargo.lock: hkdf 0.12.4 -> hmac 0.12.1 -> digest 0.10.7; sha2 0.11.1 -> digest 0.11.3). When cargo test compiles the test-only frozen module, Hkdf::<Sha256>::new(Some(&salt), master_key) at src/store.rs:328 fails hkdf's digest 0.10 trait bounds, so the build fails. Fix: bump hkdf to 0.13 (hmac 0.13, digest 0.11) in the same change.
hkdf = "0.13"
rustix = { version = "1", features = ["pty"] }
sha2 = "0.11"Prompt for LLM
File Cargo.toml:
Line 46 to 48:
Version mismatch in Cargo.toml dev-dependencies: sha2 0.11 depends on digest 0.11, while hkdf 0.12 still depends on hmac 0.12 and digest 0.10 (Cargo.lock: hkdf 0.12.4 -> hmac 0.12.1 -> digest 0.10.7; sha2 0.11.1 -> digest 0.11.3). When `cargo test` compiles the test-only `frozen` module, `Hkdf::<Sha256>::new(Some(&salt), master_key)` at src/store.rs:328 fails hkdf's digest 0.10 trait bounds, so the build fails. Fix: bump hkdf to 0.13 (hmac 0.13, digest 0.11) in the same change.
Suggested Code:
hkdf = "0.13"
rustix = { version = "1", features = ["pty"] }
sha2 = "0.11"
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
This PR contains the following updates:
0.10→0.11Release Notes
RustCrypto/hashes (sha2)
v0.11.1Compare Source
v0.11.0Compare Source
Configuration
📅 Schedule: (in timezone Australia/Sydney)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.