- Overview
- Documentation
- Contribution
- Installation
- Use as Maven dependency
- Using the tool
- Configuration
Zookeeper Policy Audit Tool (aka zkpolicy) for checking and enforcing ACLs on ZNodes.
This repository contains all the source code for the tool, that uses the ZooKeeper Java API, as well as proposed default configuration for auditing and enforcing policies on the ZooKeeper ZNode tree.
See the current reference docs.
Contributions of any form are welcome, provided that they adhere to the contributor guidelines.
- ZooKeeper >= 3.4.13
- Java SDK >= 1.8
zkpolicy is packaged in RPM and can be installed using:
yum install cerndb-sw-zkpolicy
- Maven >= 3.6
The project is built using maven
. In order to build the project:
- Clone this repository
-
cd zookeeper-policy-audit-tool/zkPolicy mvn package -DskipTests
This command generates the .jar
artifact at the zkPolicy/target/
directory.
To test zkpolicy:
mvn test
In order to use zkpolicy as a Java Dependency, consult the corresponding Sonatype index page for different dependency managers (e.g. Maven, Gradle). Indicatively:
<dependency>
<groupId>ch.cern</groupId>
<artifactId>cerndb-sw-zkpolicy</artifactId>
<version>1.0.1-13</version>
</dependency>
implementation 'ch.cern:cerndb-sw-zkpolicy:1.0.1-13'
The tool can be executed either by the .jar
file:
java -jar ./target/zkpolicy-<Version>.jar [arguments]
or using the alias created by the tool package:
zkpolicy [arguments]
For usage details, please consult the tool man pages or the tool documentation.
The tool execution is configured by the main configuration file that is passed as a parameter to the -c, --config
flag. More information about the structure of the configuration file can be found at the tool documentation.