mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-25 07:27:41 -05:00
* Configurable key prefix for object storage snapshots Snapshot object keys were always derived from the local snapshots path, so every deployment sharing a bucket wrote under the same `snapshots/` root. Each cloud config block gains an optional `prefix`, and objects become `<prefix>/snapshots/...`. The prefix is applied by wrapping the client in `PrefixStore`, so the snapshot operations and the names returned by the API are unchanged. Leading, trailing and repeated slashes are dropped, and an empty prefix is a no-op. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Test that snapshot operations cannot escape the storage prefix Hostile targets are handed to the cloud manager directly, past `validate_snapshot_name`: parent references, absolute paths, encoded slashes, backslashes and empty paths. Writes must stay under the prefix, and objects planted outside the prefix must be invisible to list, download, stream and delete. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Normalize empty prefix components Refactor prefix handling to remove empty components. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Tim Visée <tim+github@visee.me> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>