- What should I fill in for Auth username and Auth password?
- How to enable Basic Authentication
- I’m getting error that says “Unable to establish connection with ZooKeeper.”
What should I fill in for Auth username and Auth password?
Auth username and password are optional, so feel free to leave those empty. Every username & password pair entered (you can enter many) serves as an extra ACL identity, so ZNodes can be given some permissions only for users logged in with certain credentials.
How to enable Basic Authentication?
At the moment there is no configuration option to enable Basic Auth out-of-the-box. However, you are still left with two options.
The first one and also the simplest is to place a proxy which supports Basic Auth in front of ZooNavigator Web. For example Traefik.
The other one is to customize the ZooNavigator Web Docker image. It uses Nginx to serve the content so it is possible to mount custom Nginx configuration file with Basic Auth enabled. However, to support configuration via environment variables, Go template of Nginx configuration located at
/etc/nginx/nginx.conf.template is used to generate the final Nginx config so make sure you don’t mount your custom config to
/etc/nginx/nginx.conf as it would get overwritten. If you decide to go down this path, I suggest copying the Nginx config template using
docker run --rm elkozmon/zoonavigator-web:x.y.z cat /etc/nginx/nginx.conf.template > nginx.conf.template and then after you have made your changes remount that file to the original location.
As a side note, you might also consider using ACLs to secure your ZooKeeper cluster.
I’m getting error that says “Unable to establish connection with ZooKeeper.”
Make sure that ZooNavigator API can access the ZooKeeper host(s) in the connection string you entered in the connect form. Especially in case when running ZooNavigator in Docker, since by default it runs on bridged networking mode.