pingqiuandClaude Opus 5.5 eba04ab67d storage, chunkstore: enforce the chunk key domain before persistence
Review fix for the intents seam: an intent document is JSON, which would
silently replace invalid UTF-8 in a key, while a key binding preserves the
bytes, so a protected key could list back as a different key. The chunk
key domain is now non-empty valid UTF-8, refused at Put and, for every
key, at PutIntent by the SeaweedFS remote, MemChunkRemote and the test
fake before anything is written (storage.ValidChunkKey,
ErrChunkKeyInvalid; chunkstore wraps it in ErrInvalidKey). Unicode and
owner-qualified keys round-trip byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 04:20:06 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%