tweag / nix-store-gcs-proxy

A HTTP nix store that proxies requests to Google Storage
Apache License 2.0
10 stars 1 forks source link

PUT: write metadata while creating object, not immediately afterwards #6

Closed flokli closed 5 years ago

flokli commented 5 years ago

We can apply metadata while initially creating the object, instead of sending an update immediately afterwards.

While this allows to save a second HTTP request, we also observed weird permission errors:

[negroni] 2019-09-04T00:36:28Z | 404 |   143.920803ms | localhost:3001 | HEAD /nar/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.nar.xz
2019/09/04 00:36:29 googleapi: Error 403: Insufficient Permission, insufficientPermissions
[negroni] 2019-09-04T00:36:28Z | 502 |   967.072998ms | localhost:3001 | PUT /nar/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.nar.xz
2019/09/04 00:40:17 unexpected EOF
zimbatm commented 5 years ago

nice! much better