S3 object keys can escape above the bucket root during path normalization Reject keys…
- User
S3 object keys can escape above the bucket root during path normalization
Reject keys whose normalized path escapes above the bucket root with HTTP 400 and the S3 error code
InvalidKey, without creating, deleting, or modifying object storage.Interface
No new interfaces are introduced.
- Assistant
I’ll trace S3 key parsing and storage mutation paths, then add focused tests proving traversal is rejected before any write/delete occurs.
- Assistant
The repository already has filesystem containment checks, but they happen after metadata mutation and are bypassed entirely by memory storage. I’m moving validation to the service boundary so every storage mode fails before touching object state.
- Assistant
Compilation succeeded. The test runner then tried to fetch a missing Maven test-provider artifact, so I stopped it and am rerunning offline to keep validation strictly local.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.