[fix][broker] Modify authorization to update topic's properties#18252
Merged
nodece merged 5 commits intoapache:masterfrom Oct 31, 2022
yuruguo:modify_authorization_to_update_topic_properties
Merged
[fix][broker] Modify authorization to update topic's properties#18252nodece merged 5 commits intoapache:masterfrom yuruguo:modify_authorization_to_update_topic_properties
nodece merged 5 commits intoapache:masterfrom
yuruguo:modify_authorization_to_update_topic_properties
Conversation
nodece
approved these changes
Oct 31, 2022
Contributor
|
/pulsarbot rerun-failure-checks |
Contributor
|
@yuruguo It's a behavior change. It's better to have a discussion under the dev mailing list to make sure everyone can know what will be changed. |
Codecov Report
@@ Coverage Diff @@
## master #18252 +/- ##
============================================
- Coverage 38.91% 38.46% -0.46%
+ Complexity 8283 8203 -80
============================================
Files 683 683
Lines 67290 67323 +33
Branches 7218 7215 -3
============================================
- Hits 26187 25893 -294
- Misses 38095 38485 +390
+ Partials 3008 2945 -63
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Member
Contributor
Author
You are right @nodece, PTAL @codelipenghui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Current users with production permission can change the properties of topic in PR-#17238, which will cause the properties of topic to become uncontrollable due to arbitrary changes. In fact, only tenant administrator and super user can change them.
Modifications
TopicOperation.PRODUCEtoTopicOperation.UPDATE_METADATAin internalUpdatePropertiesAsync methodDocumentation
doc-not-neededMatching PR in forked repository
PR in forked repository: