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 configurable setting for 4lw.commands.whitelist #28

Open
mikebin opened this issue May 5, 2020 · 1 comment
Open

Add configurable setting for 4lw.commands.whitelist #28

mikebin opened this issue May 5, 2020 · 1 comment
Assignees

Comments

@mikebin
Copy link
Contributor

mikebin commented May 5, 2020

https://github.com/confluentinc/kafka-images/blob/master/zookeeper/include/etc/confluent/docker/zookeeper.properties.template does not currently support configuring 4lw.commands.whitelist. It can alternatively be done with a JVM system property, so this isn't a blocker, but would be useful to have a configurable settings for this: ZOOKEEPER_4LW_COMMANDS_WHITELIST

@mikebin mikebin self-assigned this May 5, 2020
mikebin added a commit to mikebin/kafka-images that referenced this issue May 5, 2020
@ankon
Copy link

ankon commented May 25, 2020

I'm hitting the same issue when trying to configure a development environment, some more context for making this pop up higher in Google:

$ echo mntr | nc localhost 2181
mntr is not executed because it is not in the whitelist.

Looking at the logs:

[2020-05-25 14:16:23,984] INFO The list of known four letter word commands is : [{1936881266=srvr, 1937006964=stat, 2003003491=wchc, 1685417328=dump, 1668445044=crst, 1936880500=srst, 1701738089=envi, 1668247142=conf, -720899=telnet close, 2003003507=wchs, 2003003504=wchp, 1684632179=dirs, 1668247155=cons, 1835955314=mntr, 1769173615=isro, 1920298859=ruok, 1735683435=gtmk, 1937010027=stmk}] (org.apache.zookeeper.server.command.FourLetterCommands)
[2020-05-25 14:16:23,984] INFO The list of enabled four letter word commands is : [[srvr]] (org.apache.zookeeper.server.command.FourLetterCommands)

(This is from confluentinc/cp-zookeeper:5.4.1)

It can alternatively be done with a JVM system property, so this isn't a blocker

@mikebin I couldn't find how to do that, do you have a pointer/example how do set the system property with the docker images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants