New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: add GOPROXY support for blob storage #32433
Comments
Why not running a static webserver in front of blob storage (e.g. https://cloud.google.com/storage/docs/hosting-static-website) or accessing the buckets or blob storages using the default web server the service providers provide? |
That would certainly be a stopgap, however it adds extra infrastructure and would not allow you to use default credentials for invisible authentication. Other workarounds could involve FUSE, or some GCS proxy, but it would be nice to have native support. Some of this desire comes out of the lack of This is something that other build systems have added support for, e.g. gradle. While it would add provider specific authentication logic and pull in external dependencies, this could be mitigated by shelling out to a binary, a la git helpers, and allow for more protocol flexibility. |
Native I agree with @hyangah that a blob-to-HTTP proxy seems like the right solution. It should be fairly trivial to write one that you can run locally on your machine. If you really don't want to write your own, you could also consider a feature request with one of the existing private-proxy implementations. |
Shelling out to a binary doesn't seem particularly simpler than having a long-running local proxy, and an ephemeral binary couldn't easily cache the connections to the blob-storage backend. It seems better to stick to the mechanism we already have ( |
Is there interest? I have no idea; that's part of why #26232 has stalled. (When we fixed the If you want to take a stab at an alternative-transport proxy, I'd be happy to review the code. |
What did you do?
What did you see instead?
What would you like to see changed?
Currently
GOPROXY
supports http, https, file protocols. It would be nice if support could be added for blob storage mechanisms like GCS, S3, etc.The text was updated successfully, but these errors were encountered: