Repository navigation
fix(s3-signer): sign only allowlisted query parameters and headers - #2102
Conversation
- Each kind of request (object, list, DeleteObjects) has an allowlist of query parameters, and every `x-` header must be allowlisted; anything else is refused. The policy lives in `s3_signer/policy.rs`. - ACLs grant only the bucket owner, storage classes are readable without a restore, and objects are encrypted with the warehouse's KMS key, or with S3-managed keys when it has none. Customer-provided keys only read. - Copies are signed when their source lies inside the table. - Object versions may only be read. - Header names must be ASCII tokens without `_`.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe S3 signer now validates request parameters and headers, parses affected object locations for supported request types, and rejects ambiguous or unsupported inputs. Storage documentation adds guidance about remote-signing limits. The integration test matrix and test runner include an AWS remote-signing test environment. ChangesS3 Signing Policy and Request Parsing
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Client
participant Signer
participant RequestPolicy
participant RequestParser
Client->>Signer: Submit S3 request
Signer->>RequestPolicy: Validate host, headers, and query parameters
Signer->>RequestParser: Classify request and parse affected locations
RequestParser-->>Signer: Return parsed locations
Signer-->>Client: Return signing result
Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
…ct-allowlist # Conflicts: # crates/lakekeeper/src/server/s3_signer/sign.rs
…e stores that cannot enforce signing
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
…2102) Co-authored-by: brgr-s <[email protected]> (cherry picked from commit 58520c8)
…2102) Co-authored-by: brgr-s <[email protected]>
x-header must be allowlisted; anything else is refused. The policy lives ins3_signer/policy.rs._.Summary by CodeRabbit