Skip to content

feat: Improve default rateLimit options #8506

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

Closed
wants to merge 4 commits into from

Conversation

dblythy
Copy link
Member

@dblythy dblythy commented Apr 14, 2023

Pull Request

Issue

Currently, there are no default rate limits. We should at protect login and signup endpoints from being spammed.

Closes: #8489

Approach

Adds more restrictive default rate limits

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)

@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title feat: improve default rateLimit options feat: Improve default rateLimit options Apr 14, 2023
@parse-github-assistant
Copy link

Thanks for opening this pull request!

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f9dde4a) 94.19% compared to head (d6d3d0b) 94.32%.

❗ Current head d6d3d0b differs from pull request most recent head feeb204. Consider uploading reports for the commit feeb204 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##            alpha    #8506      +/-   ##
==========================================
+ Coverage   94.19%   94.32%   +0.12%     
==========================================
  Files         186      183       -3     
  Lines       14819    14515     -304     
==========================================
- Hits        13959    13691     -268     
+ Misses        860      824      -36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

errorResponseMessage: 'Too many requests',
},
{
requestPath: '/login|verifyPassword',
Copy link
Member

Choose a reason for hiding this comment

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

'/login|verifyPassword'

This looks strange, is that regex? If so, shouldn't it be '/(login|verifyPassword)'?

@mtrezza mtrezza added the state:breaking Breaking change requires major version increment and `BREAKING CHANGE` commit message label Apr 14, 2023
@mtrezza
Copy link
Member

mtrezza commented Apr 14, 2023

This is a breaking change, so we can merge this earliest in Nov/Dec 2023 for Parse Server 7.

@mtrezza mtrezza mentioned this pull request Feb 1, 2024
3 tasks
@mtrezza
Copy link
Member

mtrezza commented Feb 1, 2024

Closing, see #8489 (comment)

@mtrezza mtrezza closed this Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:breaking Breaking change requires major version increment and `BREAKING CHANGE` commit message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand default rate limit options
2 participants