8000 problem with "Adding auth entry to a Preset Connection" · Issue #60 · elkozmon/zoonavigator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

problem with "Adding auth entry to a Preset Connection" #60

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

Closed
AlexDormash opened this issue Jul 28, 2020 · 5 comments
Closed

problem with "Adding auth entry to a Preset Connection" #60

AlexDormash opened this issue Jul 28, 2020 · 5 comments

Comments

@AlexDormash
Copy link

Hello,
i have a problem with setting params in
CONNECTION_<ID>_AUTH_<AUTHID>_SCHEME
and
CONNECTION_<ID>_AUTH_<AUTHID>_SCHEME,
i was successfully using CONNECTION_LOCALZK_NAME and CONNECTION_LOCALZK_CONN, it works for me, but when i try to add auth entry, ACL permissions doesn't work. I can't find documentation or examples what i need to set in variables <ID>, <AUTHID>.
f you can direct me on this issue or to some documentation or give me example it would be great!

@elkozmon
Copy link
Owner
elkozmon commented Jul 29, 2020

Hi,

sorry, maybe it's a bit confusing in the documentation but <ID> is the connection id for which you're defining auth entries so in your case LOCALZK. <AUTHID> is chosen arbitrarily, like connection id, but obviously needs to match for the CONNECTION_<ID>_AUTH_<AUTHID>_ID and CONNECTION_<ID>_AUTH_<AUTHID>_SCHEME to produce an ACL entry pair.

So for example:

CONNECTION_LOCALZK_NAME = my-local-zk
CONNECTION_LOCALZK_CONN = localhost:2181
CONNECTION_LOCALZK_AUTH_AUTH001_ID = user@DOMAIN.COM
CONNECTION_LOCALZK_AUTH_AUTH001_SCHEME = sasl
CONNECTION_LOCALZK_AUTH_AUTH002_ID = ...
CONNECTION_LOCALZK_AUTH_AUTH002_SCHEME = ...

@AlexDormash
Copy link
Author

ok, can i use it with scheme "digest"?
If so, how it use in UI ACL in app?
I mean how to link it correctly ID from field ID in app tab ACL and <AUTHID> or there are another way?

See, in a image below there are scheme digest with user "test" and password "test", Id in a scheme digest forms as login:encoded(login:password) and we se it in a app as test:V28q/NynI4JI3Rk54h0r8O5kMug=
I tried different options to use id from ACL app in CONNECTION_<ID>_AUTH_<AUTHID>_SCHEME, CONNECTION_<ID>_AUTH_<AUTHID>_SCHEME, but all of them doesn't work.
Can you help with it or this functionality not supported in app now?
image

@elkozmon
Copy link
Owner

You filled the UI ACL form correctly. I assume the problem is that you set the environment variables wrong.

According to ZooKeeper docs you need to authenticate using clear text user:pass, so try using these env variables:

CONNECTION_LOCALZK_AUTH_AUTH1_SCHEME=digest
CONNECTION_LOCALZK_AUTH_AUTH1_ID=test:test

I've just tested it and it works as expected (at least on latest build 36e5f4ce08c6).

@AlexDormash
Copy link
Author

Great, It works!
Thank you very much!)

@elkozmon
Copy link
Owner

Glad to help :)

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
0