-
Notifications
You must be signed in to change notification settings - Fork 383
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
[#3132] improvement(core): Use a more elegant validation of User, Group and Role NameIdentifier #3143
Conversation
@yuqi1129 @qqqttt123 could you please help to review it |
@qqqttt123 I was wondering if we should move |
Could you avoid the concept of NameIdentifier to users? User/Role/Group use some virtual catalog, schema. It's not visible to users. The api module will be exposed to users. |
got it, i will move it into |
Yeah, it is not good to expose the name identifier for user, group to the API. Even if we expose this, user may not know how to use it. |
core/src/main/java/com/datastrato/gravitino/authorization/AuthorizationUtils.java
Show resolved
Hide resolved
core/src/main/java/com/datastrato/gravitino/authorization/AuthorizationUtils.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/datastrato/gravitino/authorization/AuthorizationUtils.java
Show resolved
Hide resolved
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, thanks @lw-yang @jerryshao
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.
…up and Role NameIdentifier (#3143) ### What changes were proposed in this pull request? add `checkUser`, `checkGroup`, `checkRole` in `NameIdentifier` ### Why are the changes needed? Fix: #3132 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? ut --------- Co-authored-by: yangliwei <[email protected]>
…r, Group and Role NameIdentifier (apache#3143) ### What changes were proposed in this pull request? add `checkUser`, `checkGroup`, `checkRole` in `NameIdentifier` ### Why are the changes needed? Fix: apache#3132 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? ut --------- Co-authored-by: yangliwei <[email protected]>
What changes were proposed in this pull request?
add
checkUser
,checkGroup
,checkRole
inNameIdentifier
Why are the changes needed?
Fix: #3132
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
ut