-
Notifications
You must be signed in to change notification settings - Fork 931
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
Infer the proxy user automatically for delete batch operation #5717
Conversation
851a0bd
to
d4ba200
Compare
d4ba200
to
e3670a4
Compare
e3670a4
to
7340401
Compare
7340401
to
cef9e32
Compare
I think it may be useful in the future. Currently, we only have a true-false-switch for roles: admin/non-admin. But in the future, we may introduce the real RBAC system, which means we can control |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5717 +/- ##
============================================
- Coverage 61.40% 61.30% -0.11%
Complexity 23 23
============================================
Files 607 607
Lines 35755 35815 +60
Branches 4900 4912 +12
============================================
+ Hits 21957 21958 +1
- Misses 11413 11467 +54
- Partials 2385 2390 +5 ☔ View full report in Codecov by Sentry. |
kyuubi-ctl/src/test/scala/org/apache/kyuubi/ctl/BatchCliArgumentsSuite.scala
Outdated
Show resolved
Hide resolved
kyuubi-rest-client/src/main/java/org/apache/kyuubi/client/BatchRestApi.java
Show resolved
Hide resolved
have addressed all comments and updated the pr description. @pan3793 |
e6e0b75
to
55bcf40
Compare
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, directly cherry-pick to branch-1.8 may have conflicts
55bcf40
to
70ad7e7
Compare
…tch operation Infer the batch user from session or metadata, user do not need to specify the proxy user anymore. This pr also align the behavior of BatchesResource with that of SessionsResource and OperationsResource(no proxy user parameter). For Kyuubi Batch, Session and Operation, these resources have the user attiribute. So we only need to check whether the authentication user has the permission to access the resource. This pull request fixes # Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) --- - [x] My code follows the [style guidelines](https://kyuubi.readthedocs.io/en/master/contributing/code/style.html) of this project - [x] I have performed a self-review - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) - [x] Pull request title is okay. - [x] No license issues. - [x] Milestone correctly set? - [ ] Test coverage is ok - [x] Assignees are selected. - [x] Minimum number of approvals - [x] No changes are requested **Be nice. Be informative.** Closes apache#5717 from turboFei/hive_server2_proxy_user. Closes apache#5717 70ad7e7 [fwang12] comment c721a75 [fwang12] ignore da92bd5 [fwang12] fix ut 9a197d0 [fwang12] doc c8ed5f9 [fwang12] ut cef9e32 [fwang12] do not use proxy user Authored-by: fwang12 <[email protected]> Signed-off-by: fwang12 <[email protected]> (cherry picked from commit 3478fc9) Signed-off-by: fwang12 <[email protected]>
thanks, merged to master and branch-1.8 |
🔍 Description
Infer the batch user from session or metadata, user do not need to specify the proxy user anymore.
This pr also align the behavior of BatchesResource with that of SessionsResource and OperationsResource(no proxy user parameter).
For Kyuubi Batch, Session and Operation, these resources have the user attiribute.
So we only need to check whether the authentication user has the permission to access the resource.
Issue References 🔗
This pull request fixes #
Describe Your Solution 🔧
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Types of changes 🔖
Test Plan 🧪
Behavior Without This Pull Request ⚰️
Behavior With This Pull Request 🎉
Related Unit Tests
Checklists
📝 Author Self Checklist
📝 Committer Pre-Merge Checklist
Be nice. Be informative.