Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Hmac Authentication Bundle Laravel Package

gremo/hmac-authentication-bundle

A Symfony bundle for HMAC request authentication. It signs and verifies API requests using shared secrets, timestamps, and nonces, integrating with Symfony Security to protect stateless REST endpoints from tampering and replay attacks.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for API authentication: This package is a reference implementation for HMAC request signing (shared-secret signing over method, path, body, timestamp), the pattern used by AWS SigV4, Stripe webhooks, and most partner APIs. It informs the decision between rolling our own signing middleware versus adopting a library — and the answer here leans toward "build a small, well-tested one" rather than buy.
  • Roadmap: machine-to-machine and partner integrations: If the roadmap includes server-to-server calls or partner APIs where you need tamper-evidence (the body can't be modified in flight) and replay protection, HMAC signing is a legitimate candidate alongside OAuth2 client credentials and mTLS. This bundle is a concrete artifact to evaluate that pattern against.
  • Security architecture standardization: Helps the team decide whether request signing becomes a platform capability (a shared verification middleware in our API gateway) or stays per-service. A 100-line signing/verification contract is easy to standardize; an unmaintained Symfony bundle is not.
  • Webhook receiver hardening: If we consume third-party webhooks, the verification half of this bundle is directly analogous to what we'd implement (constant-time compare, timestamp window, raw-body canonicalization).
  • Framework strategy signal: This is a Symfony bundle, not a Laravel package. Its existence and its 2019 abandonment reinforce that HMAC middleware is framework-specific glue around a framework-agnostic primitive — a reason to own the primitive internally and keep the glue thin.

When to Consider This Package

Consider only as a reference, not a dependency, when:

  • You are on a legacy Symfony 3.x/4.x codebase and need HMAC verification in a hurry, with a plan to vendor/fork the code and own it.
  • You want a worked example of the listener/DI wiring for signature verification in Symfony's HTTP kernel.

Look elsewhere — or build — when any of the following is true (all of which apply here):

  • Framework mismatch: We are a Laravel shop. A Symfony bundle cannot be dropped into Laravel; you would be porting the kernel event listener and service definitions, at which point you've written the code anyway.
  • Maintenance risk: Last release June 2019, 5 stars, 0 dependents. Security-critical code with no maintainer, no downstream usage, and no recent CVE response is a liability, not an asset.
  • Missing production requirements: Verify before assuming — does it handle clock skew windows, nonce/replay storage, key rotation, constant-time comparison, raw-body canonicalization, and proxy/header normalization? Most minimal HMAC bundles do not. These are the parts that actually matter and the parts most likely to be missing.
  • Alternative needs: If the requirement is user auth, use a maintained OAuth2/OIDC or JWT solution. If it's transport security, mTLS or signed requests via a gateway (AWS API Gateway, Kong, Cloudflare) may be cheaper to operate than in-app signing.
  • Compliance requirements: Auditors will ask who patches this and when it was last reviewed. "Unmaintained since 2019" is a hard answer to give.

Recommended default: treat the package as a spec sketch. Implement signing/verification in-house (~100–200 lines plus tests), or adopt a maintained equivalent for the chosen framework.

How to Pitch It (Stakeholders)

To executives: We evaluated a Symfony HMAC authentication bundle for API request signing. The underlying pattern is sound and widely used for partner and service-to-service APIs, but this specific package is unmaintained since 2019 with negligible adoption — a poor fit for security-critical code and incompatible with our Laravel stack. Recommendation: adopt the pattern, not the package. Implementing it in-house is low effort (days, not weeks), removes a security supply-chain risk, and gives us full control over replay protection and key rotation. No change to roadmap or budget required.

To engineering: The HMAC request-signing pattern is the right tool for tamper-evident, replay-resistant API calls. This bundle is Symfony-only and stale, so don't pull it in. Use it as a reference for the canonicalization and verification flow, then build a small internal middleware with: signed canonical string (method + path + body hash + timestamp + nonce), constant-time comparison, a bounded clock-skew window, a nonce cache (Redis) for replay defense, and versioned keys to support rotation. Cover it with tests for tampered body, expired timestamp, and replayed nonce. If we later need user-facing auth, that's a separate decision (OAuth2/OIDC), not this.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package