-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix(files_sharing): rate limit share creation 10 times per 10 minutes #50905
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: skjnldsv <[email protected]>
/backport to stable31 |
/backport to stable30 |
Co-authored-by: Ferdinand Thiessen <[email protected]> Signed-off-by: John Molakvoæ <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the values, but code is fine.
@@ -557,6 +557,7 @@ public function deleteShare(string $id): DataResponse { | |||
* 200: Share created | |||
*/ | |||
#[NoAdminRequired] | |||
#[UserRateLimit(limit: 10, period: 600)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can imagine valide use cases with higher rate, e.g. share to a list of emails.
So I would think 30s is a valid interval for humans here (20 per 10 minutes)?
For integration tests you need to create some app config for |
yeah, me neither tbh 🤷 |
Integration needs excemption from rate limiting 🙈 |
And adjust existing email sending UserRateLimit