Commit c08261d
fix: bump multistore to 0.6.4 (multipart SignatureDoesNotMatch on keys with
Fixes #180.
Multipart uploads to keys containing `=` (Hive-style partition paths
like `by_country/country_iso=ETH/ETH.pmtiles`) fail with
`SignatureDoesNotMatch`: multistore 0.6.3's `build_backend_url` splices
the raw key into the backend URL for raw-signed multipart operations,
while AWS/MinIO reconstruct the canonical URI by strict-encoding the
decoded path — so the signatures diverge. Fixed upstream in
developmentseed/multistore#105, released as 0.6.4.
## History
1. **Commit 1 (test only)** — pinned the expected SigV4 strict encoding
locally; CI failed on it against 0.6.3, demonstrating the regression
(red).
2. **Commit 2 (dependency bump)** — bumps all multistore crates to
0.6.4; CI green.
3. **Deconflicted with main after #183**, and the local pins were
**dropped in favor of the upstream tests**: the 0.6.4 release itself
ships seven equivalent-or-stronger tests in the multipart module
(including the exact `country_iso=ETH` case, upload-id encoding, and
literal-`%3D` double-encoding). Keeping a local copy would test the
dependency, not this repo.
4. **Worker-level multipart coverage added** (tests/test_writes.py),
layered by what each environment can execute:
- anonymous `CreateMultipartUpload` on a hive key → 403 at the gate —
hermetic, every run (verified against a local 0.6.4 worker);
- authenticated create on the probe's unassumable role → bounded,
parseable fail-closed error — runs on same-repo CI (exercises multipart
routing through the write-authz + federation seam);
- **full round-trip** (create → 5 MiB + 1 KiB parts → complete →
read-back → delete) on `by_country/country_iso=ETH/…` — the proxy-level
#180 guarantee. Skips until the write-probe infra exists; runs against
any provisioned worker via env vars.
## Activating the round-trip (follow-up, tracked with #183's write-probe
work)
Probe bucket + IAM role, a dedicated CI signing key whose public JWKS is
served at an issuer URL the role's OIDC provider trusts (not staging's
key), the stub serving the real bucket/role instead of placeholders, and
ci.yml exporting `CI_WRITE_PROBE_ROLE_ARN`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Behavior changes shipped by the bump (review-verified against the
vendored sources)
- **Special-character key addressing changes for the presigned CRUD
path.** 0.6.3's `Path::from` percent-encoded `* % ~ #`-class characters
into the *stored* object name; 0.6.4's `Path::parse` is byte-faithful.
Any object PUT through the proxy since writes shipped (2026-06-23) with
such a key was stored under a mangled name and becomes unreachable by
its original key after this deploys. Exposure is a ~3-week window of
simple presigned PUTs; worth a quick bucket scan for `%`-containing
names before/after deploy.
- **Degenerate keys now 400 instead of being silently normalized.**
0.6.4 adds `validate_key` on every keyed operation (reads included):
leading/trailing slashes (folder-marker probes), empty `//` segments,
`.`/`..` segments, and control bytes return 400 `InvalidRequest` where
0.6.3 normalized them (`GET a//b` served `a/b`; `PUT dir/` wrote `dir`).
Upstream frames this as deliberate strictness; noting it here since it's
invisible in this diff.
(A claimed quick-xml 0.37→0.41 serialization drift was refuted by
byte-level A/B comparison — output is identical; backend XML parsing
goes through object_store's separately-pinned quick-xml, unchanged by
this PR.)
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>=) (#181)1 parent a811d78 commit c08261d
4 files changed
Lines changed: 160 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
60 | 72 | | |
61 | 73 | | |
62 | 74 | | |
| |||
81 | 93 | | |
82 | 94 | | |
83 | 95 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
66 | 69 | | |
67 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
78 | | - | |
| 85 | + | |
79 | 86 | | |
80 | | - | |
| 87 | + | |
| 88 | + | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
92 | | - | |
| 100 | + | |
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
96 | | - | |
97 | | - | |
98 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
99 | 125 | | |
100 | 126 | | |
101 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
102 | 196 | | |
103 | 197 | | |
104 | 198 | | |
| |||
186 | 280 | | |
187 | 281 | | |
188 | 282 | | |
189 | | - | |
| 283 | + | |
| 284 | + | |
190 | 285 | | |
191 | 286 | | |
192 | 287 | | |
193 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
194 | 292 | | |
195 | 293 | | |
196 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
197 | 303 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
204 | 313 | | |
205 | 314 | | |
206 | 315 | | |
| |||
0 commit comments