elkozmon / zoonavigator

Web-based ZooKeeper UI / editor / browser
https://zoonavigator.elkozmon.com
GNU Affero General Public License v3.0
506 stars 72 forks source link

need website safety #8

Closed yongdi closed 6 years ago

yongdi commented 6 years ago

can you provide a basic authentication just like rockmongo? our zk is no-password so everybody can modify via this website. only a user/password needed, for log in the website

elkozmon commented 6 years ago

If you want basic auth on ZooNavigator it's only a matter of providing custom nginx config (see default template). I shall provide an example on how to do so in README but assuming you are running ZooNavigator web client in Docker, you should mount modified config to the container at path /etc/nginx/nginx.conf.template (note that this is a Go template)

My reason for not including basic auth out of the box is that ideally, you should be using Zookeeper ACLs for this.

yongdi commented 6 years ago

ok, I see. using nginx auth is a good solution. thank you for answering in time, add a star for this

elkozmon commented 6 years ago

You are welcome :)