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

FEATURE: Apply rate limits per user instead of IP for trusted users #14706

Merged
merged 29 commits into from
Nov 17, 2021

Conversation

OsamaSayegh
Copy link
Member

No description provided.

@davidtaylorhq davidtaylorhq marked this pull request as draft October 25, 2021 09:32
config/discourse_defaults.conf Show resolved Hide resolved
lib/requests_rate_limiter.rb Outdated Show resolved Hide resolved
lib/auth/default_current_user_provider.rb Outdated Show resolved Hide resolved
@OsamaSayegh OsamaSayegh force-pushed the feature/rate-limits-per-user branch 3 times, most recently from 04e797b to 70521b1 Compare November 1, 2021 20:09
@OsamaSayegh OsamaSayegh marked this pull request as ready for review November 2, 2021 12:41
@OsamaSayegh
Copy link
Member Author

Ok @SamSaffron @davidtaylorhq can you please take another look at the PR? As we've discussed, we now store user information (user id and trust level) in the _t cookie and encrypt/sign it.

app/models/user_api_key.rb Outdated Show resolved Hide resolved
app/models/user_api_key.rb Outdated Show resolved Hide resolved
lib/discourse_auth_cookie.rb Outdated Show resolved Hide resolved
@OsamaSayegh OsamaSayegh merged commit b86127a into main Nov 17, 2021
@OsamaSayegh OsamaSayegh deleted the feature/rate-limits-per-user branch November 17, 2021 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants