Skip to content

use default authorization behavior for zk user config#9251

Closed
apucher wants to merge 1 commit intomasterfrom
use-default-authorization-for-zk-user-config
Closed

use default authorization behavior for zk user config#9251
apucher wants to merge 1 commit intomasterfrom
use-default-authorization-for-zk-user-config

Conversation

@apucher
Copy link
Contributor

@apucher apucher commented Aug 19, 2022

Minor refactor of PinotAccessControlUserRestletResource to rely on the AuthFilter's default behavior rather than performing authorization manually.

CC: original author @Innocent-Boy, any subtle issues you see with this?

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2022

Codecov Report

Merging #9251 (51f3562) into master (6c5d85e) will decrease coverage by 2.81%.
The diff coverage is 70.00%.

❗ Current head 51f3562 differs from pull request most recent head 76184bb. Consider uploading reports for the commit 76184bb to get more accurate results

@@             Coverage Diff              @@
##             master    #9251      +/-   ##
============================================
- Coverage     69.91%   67.09%   -2.82%     
- Complexity     4764     4815      +51     
============================================
  Files          1858     1381     -477     
  Lines         99187    71947   -27240     
  Branches      15087    11520    -3567     
============================================
- Hits          69346    48275   -21071     
+ Misses        24930    20168    -4762     
+ Partials       4911     3504    -1407     
Flag Coverage Δ
integration1 ?
integration2 ?
unittests1 67.09% <70.00%> (+0.01%) ⬆️
unittests2 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../java/org/apache/pinot/core/util/GapfillUtils.java 69.87% <70.00%> (-0.25%) ⬇️
...va/org/apache/pinot/core/routing/RoutingTable.java 0.00% <0.00%> (-100.00%) ⬇️
...va/org/apache/pinot/common/config/NettyConfig.java 0.00% <0.00%> (-100.00%) ⬇️
...a/org/apache/pinot/common/metrics/MinionMeter.java 0.00% <0.00%> (-100.00%) ⬇️
...g/apache/pinot/common/metrics/ControllerMeter.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pinot/common/metrics/BrokerQueryPhase.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pinot/common/metrics/MinionQueryPhase.java 0.00% <0.00%> (-100.00%) ⬇️
...ache/pinot/server/access/AccessControlFactory.java 0.00% <0.00%> (-100.00%) ⬇️
...he/pinot/common/messages/SegmentReloadMessage.java 0.00% <0.00%> (-100.00%) ⬇️
...he/pinot/common/messages/TableDeletionMessage.java 0.00% <0.00%> (-100.00%) ⬇️
... and 714 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@apucher
Copy link
Contributor Author

apucher commented Aug 24, 2022

included in #9252

@apucher apucher closed this Aug 24, 2022
@hongkunxu
Copy link
Contributor

That's great work!

@xiangfu0 xiangfu0 deleted the use-default-authorization-for-zk-user-config branch September 8, 2022 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants