You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admission fetches the current record and checks that it references blobCid. The Record entrypoint already returns the current record CID, but scoped admission does not compare it with a caller-selected revision.
This makes the route describe “whatever record is current at this key” rather than the exact record revision that authorized the blob. A client holding an aggregator view for record CID A cannot bind its cache request to A after the rkey has moved to record CID B. Jetstream purging narrows the cache window, but the URL and admission contract remain revision-ambiguous.
Proposed change
Include the repository record CID in scoped blob and image routes:
The record CID needs its own validation because repository record CIDs use DAG-CBOR, while blob CIDs use the raw codec.
Acceptance criteria
Scoped raw and image routes include recordCid in their canonical path and cache key.
A matching record CID and referenced blob CID are admitted.
A mismatched record CID is denied even when the current record references the requested blob.
A matching record CID is denied when the record does not reference the blob.
Record update/delete purges continue to clear every revision URL via the existing record tag.
The README and deployed HTTP tests document the new route.
Backward compatibility for the old scoped route is not required. Returning 404 for the revision-ambiguous form is preferable to redirecting it to whichever revision happens to be current.
Activity