Skip to content

build(deps): bump hmac from 0.12.1 to 0.13.0 - #53

Closed
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/cargo/hmac-0.13.0
Closed

dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/cargo/hmac-0.13.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps hmac from 0.12.1 to 0.13.0.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Contribution tier

Tier C (authentication/HMAC code and receipt-hash encoding in coop-server and coop-attestation).

Declared scope

Align the workspace digest family with hmac 0.13 (sha2 0.10 -> 0.11) and replace generic-array LowerHex digest formatting, removed in generic-array 1.x, with a shared bytes_to_hex helper plus a KeyInit import for the relocated Hmac constructor. No algorithm or format changes.

Changes

  • Workspace sha2 0.10 -> 0.11 so hmac 0.13 shares one digest 0.11 graph.
  • New shared bytes_to_hex helper (per-byte {02x}, identical output to LowerHex).
  • Converted all digest sites in coop-server and coop-attestation/tests to it.
  • Added bytes_to_hex_matches_nist_vector test (FIPS 180-4 vector).

Validation

  • Head: fb34107
  • Checks: cargo test --locked --workspace 296 passed, 0 failed; cargo fmt --check and clippy clean; CI re-running on this head.

Root invariant

Receipt and attestation SHA-256 hex digests must be byte-identical across the digest-crate upgrade, and the HMAC credential path must keep authenticating.

Reproduction and RED evidence

CI on the bump-only head failed to compile: E0277 trait skew at auth.rs:1338 (two digest versions in the graph) and E0277 LowerHex across server and attestation sources (run 33642043375). Both failures are resolved by this change.

Adversarial coverage

  • NIST FIPS 180-4 vector (SHA-256 of "abc") locks the encoding independently of any crate impl, so receipt digests cannot silently change representation.
  • Existing receipt/attestation suites asserting exact digests all pass.
  • HMAC credential suites (legacy exact-match, indexed, expiry/revocation) pass.
  • Unknown-digest-shape risk does not apply: SHA-256 output width is unchanged.

Non-goals and remaining work

No algorithm changes (still SHA-256/HMAC-SHA256) and no receipt-format changes. jsonwebtoken 11 adaptation ships separately in #55.

Safety and compatibility

Output is byte-identical by construction ({02x} per byte equals LowerHex); rollback is reverting this change with the hmac 0.12 / sha2 0.10 pins.

Completion state

  • Implementation: done
  • Validation: done locally, CI pending on this head
  • Review: pending maintainer
  • Integration: pending merge

Bumps [hmac](https://github.com/RustCrypto/MACs) from 0.12.1 to 0.13.0.
- [Commits](RustCrypto/MACs@hmac-v0.12.1...hmac-v0.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Sep 2, 2026
hmac 0.13 moved to digest 0.11 while the workspace pinned sha2 0.10,
leaving two digest versions in the graph and breaking HmacSha256
trait resolution. Bump workspace sha2 to 0.11 and replace
generic-array LowerHex formatting (removed in generic-array 1.x)
with a shared bytes_to_hex helper. Import KeyInit for the
relocated Hmac::new_from_slice constructor.
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: sambai-dev/rookhold/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 4fe10289-be80-4695-9414-f88db9d0bd12

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Drop useless format! wrapper flagged by clippy and add a NIST
FIPS 180-4 vector test locking the hex encoding independently of
the digest crate version.
@sambai-dev

Copy link
Copy Markdown
Owner

Closing as part of the Dependabot cleanup (#67).

@sambai-dev sambai-dev closed this Oct 2, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 2, 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.

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/hmac-0.13.0 branch October 2, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant