zhaofengli / attic

Multi-tenant Nix Binary Cache
https://docs.attic.rs
Other
1.03k stars 79 forks source link

[Feature Request] use pre-signed URLs to upload directly to the bucket (work around 413 errors) #121

Open nazarewk opened 7 months ago

nazarewk commented 7 months ago

Google Cloud Run imposes limit of 32MB requests when using HTTP/1 interfering heavily with Attic uploads.

The solution would be to use pre-signed uploads directly to the bucket.

It would possibly interfere with require-proof-of-possession.

cole-h commented 5 months ago

I've put up a WIP branch here that does this: https://github.com/cole-h/attic/tree/presign-uploads

Could you try that out and see if it behaves how you would expect?