nsqauth-contrib icon indicating copy to clipboard operation
nsqauth-contrib copied to clipboard

How to auth nsqadmin users?

Open jetspeed opened this issue 6 years ago • 1 comments

How this project auth nsqadmin users? I found no doc from nsq.io nor from the README.

I run this two py files in 4181 port, and have set auth_http_address to 4181 port, but no auth required when I want to use nsqadmin .

jetspeed avatar Oct 21 '19 08:10 jetspeed

Correct, nsqadmin does not itself have any authentication. This project, nsqauth, does not provide authentication for nsqadmin itself, only for adding an authentication layer on top of nsqlookupd and nsqd, to enable downstream/third-party users to consume specific message streams. If you need to provide an authentication layer in front of nsqadmin, you should run nsqadmin behind a proxy server that handles the authentication. That could be Apache or nginx, using HTTP basic auth, or it could be a specialized authentication proxy.

tpherndon avatar Oct 24 '19 16:10 tpherndon