-
Notifications
You must be signed in to change notification settings - Fork 11.9k
[Issue #3922] Fix bugs in ACL modification #3927
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
Merged
Merged
Conversation
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
…ig file did not exist
…t acl config file and config of different accounts can be placed under conf/acl/
# Conflicts: # acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
…e added back after deleting account part in ACL config files
sunxi92
reviewed
Mar 3, 2022
acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java
Outdated
Show resolved
Hide resolved
sunxi92
approved these changes
Mar 4, 2022
yuz10
approved these changes
Mar 5, 2022
ni-ze
approved these changes
Mar 5, 2022
Codecov Report
@@ Coverage Diff @@
## develop #3927 +/- ##
=============================================
+ Coverage 47.51% 47.72% +0.20%
- Complexity 4935 4969 +34
=============================================
Files 633 633
Lines 42572 42576 +4
Branches 5590 5589 -1
=============================================
+ Hits 20229 20318 +89
+ Misses 19833 19763 -70
+ Partials 2510 2495 -15
Continue to review full report at Codecov.
|
6 tasks
Closed
GenerousMan
pushed a commit
to GenerousMan/rocketmq
that referenced
this pull request
Aug 12, 2022
* fix NPE when updating account auth if no accounts defined in acl config file * fix: creating globalWhiteRemoteAddresses failed when default acl config file did not exist * move plain_acl.yml out of conf/acl/: conf/plain_acl.yml is the default acl config file and config of different accounts can be placed under conf/acl/ * fix merge problem * fix: 1. errors when processing empty config files; 2.accounts can't be added back after deleting account part in ACL config files * fix merge problem * fix test bug * add test * add missing test config files
carlvine500
pushed a commit
to carlvine500/rocketmq-apache
that referenced
this pull request
Sep 10, 2024
* fix NPE when updating account auth if no accounts defined in acl config file * fix: creating globalWhiteRemoteAddresses failed when default acl config file did not exist * move plain_acl.yml out of conf/acl/: conf/plain_acl.yml is the default acl config file and config of different accounts can be placed under conf/acl/ * fix merge problem * fix: 1. errors when processing empty config files; 2.accounts can't be added back after deleting account part in ACL config files * fix merge problem * fix test bug * add test * add missing test config files
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.
What is the purpose of the change
Fix #3922
Verifying this change
I checked the following:
Case1: Only
conf/plain_acl.yml
exists:➜ distribution git:(issue-3922) ✗ tree conf
produce and consume messages: OK
change secret key in file and check secretKey is changed
Only /conf/acl/plain_acl.yml exists: In my pr, an empty conf/plain_acl.yml would be created, so it is the same as the next circumstance;
produce and consume messages: OK
change secret key :
Both conf/plain_acl.yml and /conf/acl/plain_acl.yml exists
produce and consume messages: OK
change secret key in file: