Skip to content

fix(sig_v2): add 14 missing sub-resources to INCLUDED_QUERY#517

Merged
Nugine merged 3 commits intomainfrom
copilot/split-v2-sub-resource-changes
Feb 26, 2026
Merged

fix(sig_v2): add 14 missing sub-resources to INCLUDED_QUERY#517
Nugine merged 3 commits intomainfrom
copilot/split-v2-sub-resource-changes

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

V2 signature verification was missing 14 sub-resources from INCLUDED_QUERY, causing signature mismatches for operations like PutBucketCors, PutBucketTagging, and PutBucketReplication when signed with botocore.

Changes

  • crates/s3s/src/sig_v2/methods.rs: Adds the following entries to INCLUDED_QUERY to match botocore's QSAOfInterest:
    • accelerate, analytics, cors, defaultObjectAcl, inventory, metrics, object-lock, replication, restore, select, select-type, storageClass, tagging, torrent

The list remains alphabetically sorted, enforced by the existing sorted unit test.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: Nugine <30099658+Nugine@users.noreply.github.com>
Copilot AI changed the title [WIP] Split V2 sub-resource list changes into new PR fix(sig_v2): add 14 missing sub-resources to INCLUDED_QUERY Feb 26, 2026
@Nugine Nugine marked this pull request as ready for review February 26, 2026 04:38
Copilot AI review requested due to automatic review settings February 26, 2026 04:38
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes V2 signature verification by adding 14 missing sub-resources to the INCLUDED_QUERY constant, ensuring it matches botocore's QSAOfInterest list. This resolves signature mismatches that previously occurred when operations like PutBucketCors, PutBucketTagging, and PutBucketReplication were signed with botocore using V2 signatures.

Changes:

  • Adds 14 sub-resources to INCLUDED_QUERY in alphabetical order: accelerate, analytics, cors, defaultObjectAcl, inventory, metrics, object-lock, replication, restore, select, select-type, storageClass, tagging, and torrent

@Nugine Nugine enabled auto-merge February 26, 2026 15:39
@Nugine Nugine added this pull request to the merge queue Feb 26, 2026
Merged via the queue into main with commit 96cfb86 Feb 26, 2026
17 checks passed
@Nugine Nugine deleted the copilot/split-v2-sub-resource-changes branch February 26, 2026 16:07
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.

3 participants