-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(dav): Rate limit calendar/subscription creation #43732
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
Conversation
| throw new TooManyRequests('Too many calendars created', 0, $e); | ||
| } | ||
|
|
||
| $calendarLimit = $this->config->getValueInt('dav', 'maximum_calendars', 30); |
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'm open for input on a reasonable limit for 99% of users. someone will exceed it and they need the admin to increase the limit. this is acceptable.
miaulalala
left a comment
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.
LGTM
tcitworld
left a comment
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.
Did you test how the Calendar app currently handles the TooManyRequests exception? When creating calendars/subscriptions/holiday calendars/imports
Mind creating an issue to make sure this is tracked?
Sure! nextcloud/calendar#5792 |
7f07be8 to
9bfa1a3
Compare
|
/backport! to stable28 |
|
/backport! to stable27 |
|
/backport! to stable26 |
Signed-off-by: Christoph Wurst <[email protected]>
9bfa1a3 to
dc7f2ba
Compare
Summary
Adds rate limiting for new calendars and subscriptions.
Checklist