-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][broker] Exclude system topics from namespace level publish and dispatch rate limiting #23589
Conversation
The only possible concern in a multi-tenant system is that a malicious user could circumvent rate-limits by using a topic name that gets considered as a system topic. I guess this is a matter of the definition of the security model in the multi-tenancy support that rate limits cannot be used to protect against malicious users. We don't currently document the security model so it's hard to resolve this as part of this PR. I guess we could create a separate issue for documenting the security model for multi-tenancy. |
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
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
/pulsarbot rerun-failure-checks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23589 +/- ##
============================================
+ Coverage 73.57% 74.31% +0.73%
- Complexity 32624 34436 +1812
============================================
Files 1877 1944 +67
Lines 139502 147080 +7578
Branches 15299 16216 +917
============================================
+ Hits 102638 109299 +6661
- Misses 28908 29354 +446
- Partials 7956 8427 +471
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Seems we never focused on the isolation for multi-tenants before, that should be a huge PIP, which contains Transaction(all namespaces use the same Transaction metadata store) and other components. 😂 Thanks for mentioning this, let me merge the PR first |
…and dispatch rate limiting (apache#23589) (cherry picked from commit 9bcbb20) (cherry picked from commit aa4dbf3)
…and dispatch rate limiting (apache#23589) (cherry picked from commit 9bcbb20) (cherry picked from commit aa4dbf3)
…and dispatch rate limiting (apache#23589) (cherry picked from commit 9bcbb20) (cherry picked from commit aa4dbf3)
…and dispatch rate limiting (apache#23589) (cherry picked from commit 9bcbb20) (cherry picked from commit aa4dbf3)
Motivation
The effect is huge if the
pub&sub
rate limiter takes effect for system topics, such as__change_events
, transaction topics... Almost all topics can not work if the system topic encounters a throttlingModifications
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x