Skip to content

Enforce SHA-384 signature generation - #401

Closed
tim-kos wants to merge 1 commit into
mainfrom
fix/enforce-sha384-signatures
Closed

Enforce SHA-384 signature generation#401
tim-kos wants to merge 1 commit into
mainfrom
fix/enforce-sha384-signatures

Conversation

@tim-kos

@tim-kos tim-kos commented Apr 27, 2026

Copy link
Copy Markdown
Member

Summary

  • enforce SHA-384 as the only signature algorithm in _calcSignature()
  • add a regression test to guarantee SHA-384 output even if extra args are passed
  • document in README that calcSignature() returns SHA-384 signatures

Why

API keys default to SHA-384, so allowing algorithm drift from SDK internals can cause avoidable auth failures in downstream integrations.

Fixes #400

@kvz kvz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely good, we at least need 256 for cdn support I think

@tim-kos tim-kos left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings: none.

The SDK now hardcodes SHA-384 for Transloadit signatures and keeps the sha384: prefix in place. The unit coverage exercises the intended behavior, and I do not see docs or compatibility gaps in this diff.

@tim-kos

tim-kos commented May 26, 2026

Copy link
Copy Markdown
Member Author

Findings: none.

The SDK now hardcodes SHA-384 for Transloadit signatures and keeps the sha384: prefix in place. The unit coverage exercises the intended behavior, and I do not see docs or compatibility gaps in this diff.

@kvz

kvz commented Jun 2, 2026

Copy link
Copy Markdown
Member

And we already support sha384 so will close this

@kvz kvz closed this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce SHA-384 signatures in Node SDK

2 participants