Skip to content
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

Is it possible to provide sync permission to the AWS bucket? #248

Closed
knight42 opened this issue Jan 16, 2016 · 4 comments
Closed

Is it possible to provide sync permission to the AWS bucket? #248

knight42 opened this issue Jan 16, 2016 · 4 comments

Comments

@knight42
Copy link

We are hosting a mirror and find it somewhat difficult to sync the files. Could admin allow others to sync the files directly from AWS S3 server, i.e. grant the others list permission?

@zhsj
Copy link

zhsj commented Jan 16, 2016

We need to setup the mirror since aws s3 is blocked in China. And if we can use the aws s3 api to do the sync operation, it will be very convenient.

@alexcrichton
Copy link
Member

Right now the story for mirrors is unfortunately not fantastic, although I would expect any form of sync'ing API to happen via the HTTP server as a "source of truth" as it would allow us to possible switch away from AWS as a backend in the future.

Along those lines I don't think that we'll give direct access to the S3 bucket itself, but instead for now I'm gonna close this in favor of #67 which is tracking setting up a mirror.

@zhsj
Copy link

zhsj commented Jan 18, 2016

@alexcrichton , I see the #67 is a long-term issue. And it seems inactive for a long time.

We want to set up the mirror immediately because S3 can't be accessed from some country like China.
And we received a lot of requests to provide such a mirror.

Right now the crates are hosted on S3, and it can't be synced using tools like rsync. But it can be synced using S3 api as long as the crates' bucket open the list permission to public. Otherwise we need to write a tool to manually diff what updated in crates, and then download it.

@alexcrichton
Copy link
Member

Yeah it's unfortunately not the best of situations, but that's the most that we'd want to commit to at this time. I wouldn't want our hands tied to S3, and the JSON API of crates.io should be pretty simple to write a tool for I believe to do the syncing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants