Skip to content

Prepare Go SDK v1.7.0 with SHA-384 list signing - #50

Merged
kvz merged 5 commits into
mainfrom
list-signing
Nov 28, 2026
Merged

kvz merged 5 commits into
mainfrom
list-signing

Conversation

@kvz

@kvz kvz commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Why

Go SDK v1.6.0 sends bare SHA-1 for list requests. Those requests fail when the key requires SHA-256 or stronger. Main already signs list requests with prefixed HMAC-SHA384. The Transloadit API has accepted these signatures for keys with a SHA-1 or SHA-256 minimum since mid-November 2026.

Changes

  • Set the SDK version to v1.7.0 and document the change for assembly, template, and template credential lists.
  • Include a fresh nonce in signed list params to prevent independently generated requests with the same filters and expiry from reusing a signature.
  • Preserve Template.MarshalJSON from v1.6.0 so a JSON round trip retains the signature-authentication setting.

This is a product code change.

Validation

Local HTTP tests verify HMAC-SHA384 over the exact query params, the auth key and expiry, pagination, and a fresh nonce on repeat requests. They cover all three list methods and GetTemplate as an ordinary request. The list cases fail against the v1.6.0 signer and the ordinary case passes. The nonce and template JSON round-trip regressions failed before their fixes. The focused tests, race checks, and example builds pass.

Two list integration tests in the first CI run failed with SIGNATURE_REUSE_DETECTED. The fresh nonce addresses the shared signing input that caused those failures. The first review round also identified the template serialization regression and the missing template credential coverage. The next two rounds extended the template regression to cover the exact v1.6.0 JSON field names and both values of the integer auth flag. The fourth round completed the changelog. The fifth and final round had no findings.

Release

After merge and release approval, tag the merge commit v1.7.0, push that tag, and create a GitHub release with the changelog and generated notes since v1.6.0. The merge commit already carries the version bump.

Release tracking: #49. The issue stays open until v1.7.0 is published.

Claimed by kvz on 2026-11-28.

@kvz kvz self-assigned this Nov 28, 2026
@codecov-commenter

codecov-commenter commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.63%. Comparing base (b567a3e) to head (16626f2).

Files with missing lines Patch % Lines
transloadit.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   82.60%   82.63%   +0.02%     
==========================================
  Files           6        6              
  Lines         345      357      +12     
==========================================
+ Hits          285      295      +10     
- Misses         32       33       +1     
- Partials       28       29       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kvz
kvz marked this pull request as ready for review November 28, 2026 14:53
@kvz
kvz requested a review from tim-kos November 28, 2026 14:53
@kvz
kvz merged commit c4e667e into main Nov 28, 2026
5 checks passed
@kvz
kvz deleted the list-signing branch November 28, 2026 17:52
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.

2 participants