Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add whitelist commands in zoo.cfg #135

Closed
swmadmsys opened this issue Aug 8, 2019 · 1 comment
Closed

Add whitelist commands in zoo.cfg #135

swmadmsys opened this issue Aug 8, 2019 · 1 comment
Labels

Comments

@swmadmsys
Copy link

Please add a variable to manage whitelist commands in configuration file zoo.cfg

From https://zookeeper.apache.org/doc/r3.4.12/zookeeperAdmin.html

4lw.commands.whitelist
(Java system property: zookeeper.4lw.commands.whitelist)

New in 3.4.10: This property contains a list of comma separated Four Letter Words commands. It is introduced to provide fine grained control over the set of commands ZooKeeper can execute, so users can turn off certain commands if necessary. By default it contains all supported four letter word commands except "wchp" and "wchc", if the property is not specified. If the property is specified, then only commands listed in the whitelist are enabled.

Here's an example of the configuration that enables stat, ruok, conf, and isro command while disabling the rest of Four Letter Words command:

            4lw.commands.whitelist=stat, ruok, conf, isro

Users can also use asterisk option so they don't have to include every command one by one in the list. As an example, this will enable all four letter word commands:

            4lw.commands.whitelist=*
@deric
Copy link
Owner

deric commented Aug 12, 2019

Implemented and released in v0.8.6.

@deric deric closed this as completed Aug 12, 2019
@deric deric added the feature label Aug 12, 2019
cegeka-jenkins pushed a commit to cegeka/puppet-zookeeper that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants