gravitino
gravitino copied to clipboard
[#3342] feat(core): Refactor the role and privilege model
What changes were proposed in this pull request?
Add support for ALLOW/DENY effect for privileges. Move privileges from the role to the securable object.
Why are the changes needed?
Fix: #3342
Does this PR introduce any user-facing change?
Yes.
How was this patch tested?
UT passed.
@jerqi is this ready for review?
https://docs.starburst.io/latest/security/biac-privileges.html
After last review,
- I remove
bindPrivileges
and make the interface immutable. - I change the effect to condition.
Could you give me further review? @jerryshao
@jerryshao Could you review again?
@jerryshao Comments are addressed.