Skip to content

fix(gateway): accept signed HTTP dates on SigV2 requests - #1672

Open
overtrue wants to merge 2 commits into
mainfrom
p2/3385-sigv2-http-date
Open

overtrue wants to merge 2 commits into
mainfrom
p2/3385-sigv2-http-date

Conversation

@overtrue

@overtrue overtrue commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

s3cmd signs PUT with an HTTP date in the x-amz-date header. The RustFS profile used to return 400 before signature verification. It now parses this timestamp with the gateway's SigV2 parser. The signature still covers the original header bytes, and the existing clock-skew window applies.

Fixes the SigV2 PUT part of rustfs/backlog#3385.

Verification

The new PUT regression returned 400 on the previous implementation. After the fix, the compatibility server stored the payload and served the same bytes on GET for both GMT and +0000. Changing only the timezone spelling after signing returned 403 and preserved the previous object.

  • Formatting and workspace Clippy passed.
  • Workspace tests passed, including all 14 header policy tests and the signed PUT/readback regression in compat-sut.
  • The two prepared gateway verification loops finished in 28.75s and 8.15s.

Role Verdicts

  • simplicity-adversary: attacked duplicate date parsing, header precedence and skew checks with signed PUTs, malformed timestamps and modified wire bytes — no break found

Breaking Change

None.

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.

1 participant