Skip to content

chore(deps)(deps): update hmac requirement from 0.12 to 0.13 - #57

Closed
dependabot[bot] wants to merge 1 commit into
nextfrom
dependabot/cargo/next/hmac-0.13
Closed

chore(deps)(deps): update hmac requirement from 0.12 to 0.13#57
dependabot[bot] wants to merge 1 commit into
nextfrom
dependabot/cargo/next/hmac-0.13

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 22, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on hmac to permit the latest version.

Commits

mmacedoeu added a commit that referenced this pull request Jul 17, 2026
Unblocks 6+ Dependabot cargo PRs (#57 #58 #59 #60 #62 #65) stuck on
'build-test (20, 3.11, stable)' due to libdbus-sys build.rs panic.

octo-cable -> bluer -> dbus -> libdbus-sys chain needs pkg-config and
libdbus-1-dev headers. ci.yml + coverage.yml already install these;
quota-router.yml lacked the install. Dependabot cargo lockfile bumps
invalidate the cache, exposing the gap.

Same install line as ci.yml + coverage.yml for parity. Both jobs
(test, clippy-stable) get the step.
@mmacedoeu

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/next/hmac-0.13 branch from 199f988 to dd2ea23 Compare July 17, 2026 23:58
@github-actions github-actions Bot added size/S and removed size/XS labels Jul 17, 2026
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs) to permit the latest version.
- [Commits](RustCrypto/MACs@hmac-v0.12.0...hmac-v0.13.0)

---
updated-dependencies:
- dependency-name: hmac
  dependency-version: 0.13.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/next/hmac-0.13 branch from dd2ea23 to 4082c87 Compare July 18, 2026 00:40
mmacedoeu added a commit that referenced this pull request Jul 18, 2026
…ect hmac dep

The 'hmac' crate (0.12) is incompatible with the current dep tree:
bumps to hmac 0.13 (Dependabot PR #57) transitively require digest
0.11, but sha2 0.10 (latest) only impls digest 0.10. Result: Hmac<Sha256>
from hmac 0.13 fails to satisfy KeyInit because its underlying CoreProxy
type lives in the wrong digest version. The Rust CI matrix doesn't
catch this because it runs on default features; --all-features does.

Drop the direct 'hmac' dep and route every HMAC-SHA256 call through the
existing 'hmac-sha256' 1.1 crate. hmac-sha256 has a self-contained
no-deps HMAC-SHA256 implementation, so:

- eliminates the second digest-version dep split
- closes the path for Dependabot to re-open a broken hmac bump
- trims 3 files, ~16 lines, ~3 transitive crates (digest, crypto-common,
  subtle, generic-array, block-buffer) from the workspace
- AWS SigV4 signing + webhook signing semantics unchanged (verified
  via hmac-sha256's documented HMAC::mac(input, key) ≡
  Hmac::new_from_slice(key).chain_update(input).finalize())

Migrations:
- secret_manager.rs hmac_sha256 helper: one-line collapse onto
  hmac_sha256::HMAC::mac (one-shot; SigV4 step inputs are known in advance)
- callbacks/webhook.rs sign_payload: drop Mac/KeyInit/Sha256 imports,
  use hmac_sha256::HMAC::mac directly

cargo build (default + --features full) and cargo clippy --features full
--all-targets -- -D warnings both pass.

Blocks PR #57 (hmac 0.12->0.13) until sha2 0.11 ships; PR can be
auto-rebased by Dependabot at that point without further code changes.
@mmacedoeu

Copy link
Copy Markdown
Contributor

Closed in favor of upstream removal.

Direct 'hmac' dep was removed in 905d202; quota-router-core now routes
all HMAC-SHA256 calls through 'hmac-sha256' 1.1 (self-contained no-deps
implementation). This avoids the digest 0.10 / digest 0.11 ecosystem
split (hmac 0.13 needs sha2 0.11's CoreProxy impl, but sha2 0.10 only
exposes digest 0.10).

Dependabot will re-open once sha2 0.11 ships (digest 0.11 support
unblocks hmac 0.13). No further code changes needed; the call sites
in secret_manager.rs and callbacks/webhook.rs already use
hmac-sha256's HMAC::mac one-shot API.

@mmacedoeu mmacedoeu closed this Jul 18, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/cargo/next/hmac-0.13 branch July 18, 2026 01:45
mmacedoeu added a commit that referenced this pull request Jul 18, 2026
13 Dependabot PRs reviewed for impact + feasibility.
6 merged (#54 #55 #56 #61 #64 #66), 7 closed (#57 #58 #59 #60 #62
#63 #65). Analysis covers each PR's CI status, dep ownership,
bump rationale, breaking-change audit, merge sequencing, and
infra fixes landed (libdbus install + hmac-sha256 + std lock +
stoolap parser catch-all).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant