You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "jerqi (via GitHub)" <gi...@apache.org> on 2024/08/23 15:24:21 UTC

[PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

jerqi opened a new pull request, #4665:
URL: https://github.com/apache/gravitino/pull/4665

   ### What changes were proposed in this pull request?
   Add the missing annotations fo access control interfaces
   
   ### Why are the changes needed?
   
   Fix: #4664
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   By hand.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi closed pull request #4665: [#4664] fix(server): Add the missing annotations fo access control interfaces
URL: https://github.com/apache/gravitino/pull/4665


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on code in PR #4665:
URL: https://github.com/apache/gravitino/pull/4665#discussion_r1730586147


##########
conf/gravitino.conf.template:
##########
@@ -63,7 +63,7 @@ gravitino.catalog.cache.evictionIntervalMs = 3600000
 # Whether Gravitino enable authorization or not
 gravitino.authorization.enable = false
 # The admins of Gravitino service, multiple admins are spitted by comma.
-gravitino.authorization.serviceAdmin = anonymous
+gravitino.authorization.serviceAdmins= anonymous

Review Comment:
   Please add a space after "xxxAdmins".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #4665:
URL: https://github.com/apache/gravitino/pull/4665#discussion_r1730586908


##########
conf/gravitino.conf.template:
##########
@@ -63,7 +63,7 @@ gravitino.catalog.cache.evictionIntervalMs = 3600000
 # Whether Gravitino enable authorization or not
 gravitino.authorization.enable = false
 # The admins of Gravitino service, multiple admins are spitted by comma.
-gravitino.authorization.serviceAdmin = anonymous
+gravitino.authorization.serviceAdmins= anonymous

Review Comment:
   Added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on PR #4665:
URL: https://github.com/apache/gravitino/pull/4665#issuecomment-2309181329

   > @jerqi Please fix CI failed.
   
   Sorry, I fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "jerqi (via GitHub)" <gi...@apache.org>.
jerqi commented on code in PR #4665:
URL: https://github.com/apache/gravitino/pull/4665#discussion_r1730564226


##########
server/src/main/java/org/apache/gravitino/server/web/rest/PermissionOperations.java:
##########
@@ -40,8 +40,10 @@
 import org.apache.gravitino.lock.LockType;
 import org.apache.gravitino.lock.TreeLockUtils;
 import org.apache.gravitino.metrics.MetricNames;
+import org.apache.gravitino.server.authorization.NameBindings;
 import org.apache.gravitino.server.web.Utils;
 
+@NameBindings.AccessControlInterfaces

Review Comment:
   Added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #4665:
URL: https://github.com/apache/gravitino/pull/4665


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "xunliu (via GitHub)" <gi...@apache.org>.
xunliu commented on code in PR #4665:
URL: https://github.com/apache/gravitino/pull/4665#discussion_r1730189099


##########
server/src/main/java/org/apache/gravitino/server/web/rest/PermissionOperations.java:
##########
@@ -40,8 +40,10 @@
 import org.apache.gravitino.lock.LockType;
 import org.apache.gravitino.lock.TreeLockUtils;
 import org.apache.gravitino.metrics.MetricNames;
+import org.apache.gravitino.server.authorization.NameBindings;
 import org.apache.gravitino.server.web.Utils;
 
+@NameBindings.AccessControlInterfaces

Review Comment:
   Please add comments to describe the Class `NameBindings`.
   I don't know its purpose.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#4664] fix(server): Add the missing annotations fo access control interfaces [gravitino]

Posted by "xunliu (via GitHub)" <gi...@apache.org>.
xunliu commented on PR #4665:
URL: https://github.com/apache/gravitino/pull/4665#issuecomment-2309179867

   @jerqi Please fix CI failed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org