You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/09/26 18:37:08 UTC

[GitHub] [accumulo] EdColeman opened a new pull request, #2964: fix #2955 - upgrade zk authorization check

EdColeman opened a new pull request, #2964:
URL: https://github.com/apache/accumulo/pull/2964

   Fixes https://github.com/apache/accumulo/issues/2955 by using ZooKeeper digest in ACL checks.
   
   Manually performed upgrade from 2.0.1 to 2.1-0-SNAPHOT without problems.


-- 
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: notifications-unsubscribe@accumulo.apache.org

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


[GitHub] [accumulo] EdColeman merged pull request #2964: fix #2955 - upgrade zk authorization check

Posted by GitBox <gi...@apache.org>.
EdColeman merged PR #2964:
URL: https://github.com/apache/accumulo/pull/2964


-- 
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: notifications-unsubscribe@accumulo.apache.org

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


[GitHub] [accumulo] dlmarion commented on a diff in pull request #2964: fix #2955 - upgrade zk authorization check

Posted by GitBox <gi...@apache.org>.
dlmarion commented on code in PR #2964:
URL: https://github.com/apache/accumulo/pull/2964#discussion_r980380544


##########
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java:
##########
@@ -162,6 +165,21 @@ private static String getFmtTime(final long epoch) {
     return fmt.format(timestamp);
   }
 
+  /**
+   * Get the ZooKeeper digest based on the instance secret that is used within ZooKeeper for
+   * authentication. This method is primary intended to be used to valid ZooKeeper ACLs. Use

Review Comment:
   ```suggestion
      * authentication. This method is primary intended to be used to validate ZooKeeper ACLs. Use
   ```



##########
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java:
##########
@@ -162,6 +165,21 @@ private static String getFmtTime(final long epoch) {
     return fmt.format(timestamp);
   }
 
+  /**
+   * Get the ZooKeeper digest based on the instance secret that is used within ZooKeeper for
+   * authentication. This method is primary intended to be used to valid ZooKeeper ACLs. Use
+   * {@link #digestAuth(ZooKeeper, String)} to add authorizations to ZooKeeper.
+   */
+  public static Id getZkAuthId(final String secret) {

Review Comment:
   ```suggestion
     public static Id getZkDigestAuthId(final String secret) {
   ```



-- 
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: notifications-unsubscribe@accumulo.apache.org

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


[GitHub] [accumulo] EdColeman commented on a diff in pull request #2964: fix #2955 - upgrade zk authorization check

Posted by GitBox <gi...@apache.org>.
EdColeman commented on code in PR #2964:
URL: https://github.com/apache/accumulo/pull/2964#discussion_r980394958


##########
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java:
##########
@@ -162,6 +165,21 @@ private static String getFmtTime(final long epoch) {
     return fmt.format(timestamp);
   }
 
+  /**
+   * Get the ZooKeeper digest based on the instance secret that is used within ZooKeeper for
+   * authentication. This method is primary intended to be used to valid ZooKeeper ACLs. Use
+   * {@link #digestAuth(ZooKeeper, String)} to add authorizations to ZooKeeper.
+   */
+  public static Id getZkAuthId(final String secret) {

Review Comment:
   Addressed with e24e4d593f



##########
core/src/main/java/org/apache/accumulo/fate/zookeeper/ZooUtil.java:
##########
@@ -162,6 +165,21 @@ private static String getFmtTime(final long epoch) {
     return fmt.format(timestamp);
   }
 
+  /**
+   * Get the ZooKeeper digest based on the instance secret that is used within ZooKeeper for
+   * authentication. This method is primary intended to be used to valid ZooKeeper ACLs. Use

Review Comment:
   Addressed with e24e4d593f



-- 
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: notifications-unsubscribe@accumulo.apache.org

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