Skip to content
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

[AUTHZ] Supports check hoodie procedures show_commits resource privileges #5965

Closed
wants to merge 1 commit into from
Closed

[AUTHZ] Supports check hoodie procedures show_commits resource privileges #5965

wants to merge 1 commit into from

Conversation

yikf
Copy link
Contributor

@yikf yikf commented Jan 12, 2024

🔍 Description

Issue References 🔗

This pull request aims to make AuthZ supports check hoodie procedures show_commits resource privileges

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 🔖

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪

Behavior Without This Pull Request ⚰️

CALL show_commits passes permission checks whether they have permission or not

Behavior With This Pull Request 🎉

CALL show_commits will not pass without permission

Related Unit Tests

New test added, extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/HudiCatalogRangerSparkExtensionSuite.scala#ShowCommitsProcedure


Checklist 📝

Be nice. Be informative.

@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b9ce95b) 61.23% compared to head (4e609b0) 61.17%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5965      +/-   ##
============================================
- Coverage     61.23%   61.17%   -0.07%     
  Complexity       23       23              
============================================
  Files           622      622              
  Lines         36884    36887       +3     
  Branches       5014     5014              
============================================
- Hits          22586    22565      -21     
- Misses        11857    11879      +22     
- Partials       2441     2443       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@pan3793 pan3793 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, cc @AngersZhuuuu

@yikf yikf added this to the v1.9.0 milestone Jan 14, 2024
@yikf yikf closed this in 3af7551 Jan 14, 2024
@yikf
Copy link
Contributor Author

yikf commented Jan 14, 2024

thanks, merged to master

@yikf yikf deleted the hudi-showcommits branch January 15, 2024 06:56
zhaohehuhu pushed a commit to zhaohehuhu/incubator-kyuubi that referenced this pull request Mar 21, 2024
…mmits resource privileges

# 🔍 Description
## Issue References 🔗

This pull request aims to make AuthZ supports check [hoodie procedures show_commits](https://hudi.apache.org/docs/procedures#show_commits) resource privileges

## 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 🔖

- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan 🧪

#### Behavior Without This Pull Request ⚰️
`CALL show_commits` passes permission checks whether they have permission or not

#### Behavior With This Pull Request 🎉
`CALL show_commits` will not pass without permission

#### Related Unit Tests
New test added, extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/HudiCatalogRangerSparkExtensionSuite.scala#ShowCommitsProcedure

---

# Checklist 📝

- [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes apache#5965 from Yikf/hudi-showcommits.

Closes apache#5965

4e609b0 [yikaifei] Supports check hoodie procedures show_commits resource privileges

Authored-by: yikaifei <[email protected]>
Signed-off-by: yikaifei <[email protected]>
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