-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Upload size limit on READMEs #4291
Comments
crates.io doesn't display READMEs in any way so I don't see how this could be an issue for crates.io. Maybe there needs to be a limit on the description string or other strings though. |
There is an open PR for displaying READMEs, and READMEs are currently being stored in the database. |
we have a server-side limit on the size of the metadata json blob, which restricts the size of the readme to some degree. we don't have a restriction specifically for the readme, but once we read it from the tarball we should probably implement something like that. |
Sounds like this is being resolved on the server side, so I'm going to close this out for cargo's side. If there is a reason this should be enforced on the client side uniformly across all registries, let us know! |
This is currently being done by npm, one of the reasons why is to stop a potential attack vector where an malacious third party could upload a very large README file and gum up crates.io. There are ways to deal with this on the crates.io side, but this could be an interim measure while we figure this out.
The text was updated successfully, but these errors were encountered: