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

Introduce daily limit of published versions per crate #5294

Merged
merged 2 commits into from
Oct 23, 2022

Conversation

nappa85
Copy link

@nappa85 nappa85 commented Oct 7, 2022

Introduces a new env var MAX_NEW_VERSIONS_DAILY with default value 10

Resolves #5291

@Turbo87 Turbo87 changed the title WIP: #5291 daily limit WIP: Introduce daily limit of published versions per crate Oct 7, 2022
@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Oct 7, 2022
src/config.rs Outdated Show resolved Hide resolved
src/models/version.rs Outdated Show resolved Hide resolved
@nappa85 nappa85 changed the title WIP: Introduce daily limit of published versions per crate Introduce daily limit of published versions per crate Oct 9, 2022
Marco Napetti and others added 2 commits October 23, 2022 11:31
The `PublishRateLimit` struct is somewhat closely tied to the current system of limiting new crate creation. Instead of adding the new daily versions limit to it, we can just keep the code in the controller without having to touch any of the `PublishRateLimit` constructor calls.
@Turbo87 Turbo87 merged commit 227a4a4 into rust-lang:master Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit number of new versions per one crate to 10 per day
2 participants