Class ZooAclUtil
java.lang.Object
org.apache.accumulo.server.zookeeper.ZooAclUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Wrapper for decoding ZooKeeper ACLs in context of Accumulo usages. -
Method Summary
Modifier and TypeMethodDescriptioncheckWritableAuth
(List<org.apache.zookeeper.data.ACL> acls) Process the ZooKeeper acls and return a structure that shows if the accumulo user has ALL (cdrwa) access and if any other user has anything other than read access.static String
extractAuthName
(org.apache.zookeeper.data.ACL acl) static String
translateZooPerm
(int perm) translate the ZooKeeper ACL perm bits into a string.
-
Method Details
-
extractAuthName
-
translateZooPerm
translate the ZooKeeper ACL perm bits into a string. The output order is cdrwa (when all perms are set) Copied from `org.apache.zookeeper.ZKUtil.getPermString()` added in more recent ZooKeeper versions. -
checkWritableAuth
public static ZooAclUtil.ZkAccumuloAclStatus checkWritableAuth(List<org.apache.zookeeper.data.ACL> acls) Process the ZooKeeper acls and return a structure that shows if the accumulo user has ALL (cdrwa) access and if any other user has anything other than read access.- Accumulo having access is expected - anything else needs checked
- Anyone having more than read access is unexpected and should be checked.
- Parameters:
acls
- ZooKeeper ACLs for a node- Returns:
- acl status with accumulo and other accesses.
-