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

[stable22] Add database ratelimiting backend #28814

Merged
merged 1 commit into from
Sep 13, 2021

Conversation

backportbot-nextcloud[bot]
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Sep 13, 2021

backport of #28728

@LukasReschke
Copy link
Member

Will manually backport.

@LukasReschke LukasReschke force-pushed the backport/28728/stable22 branch from 4df9c0c to c02e964 Compare September 13, 2021 13:34
In case no distributed memory cache is specified this adds
a database backend for ratelimit purposes.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@LukasReschke LukasReschke force-pushed the backport/28728/stable22 branch from c02e964 to 7eb702e Compare September 13, 2021 13:36
Copy link
Member

@LukasReschke LukasReschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test plan:

  • Disable the memory cache in config.php
  • Enable the "Q&A Testing App" in the app settings
  • Go to /index.php/apps/testing/userAndAnonProtected and click a few times. Verify that the requests fails due to hitting the ratelimit.
  • Verify that expired ratelimit entries are removed on requests

@LukasReschke
Copy link
Member

Failing test seems unrelated.

@LukasReschke LukasReschke merged commit 08673d2 into stable22 Sep 13, 2021
@LukasReschke LukasReschke deleted the backport/28728/stable22 branch September 13, 2021 17:27
@blizzz blizzz mentioned this pull request Sep 23, 2021
4 tasks
@MichaIng MichaIng modified the milestones: Nextcloud 22.1.2, Nextcloud 22.2.0 Sep 24, 2021
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

Successfully merging this pull request may close these issues.

3 participants