cloudflare / serverless-registry

A container registry backed by Workers and R2.
Apache License 2.0
998 stars 36 forks source link

Max metadata limit error fix #26

Closed IvanDev closed 7 months ago

IvanDev commented 7 months ago

When uploading chunks to R2, the upload state is stored within JWT token stored in the custom metadata field of R2 object. At about 37 chunks, the length of JWT token exceeds 8k limit. This PR fixes this by storing JWT in the object body instead of metadata.