You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a running arkouda server can be hijacked by anyone on the system that knows the hostname and port. We should implement some sort of authentication, either via a password or a token. My vote is for a token, because it's what Jupyter uses, and it's less of a burden on the user.
arkouda_server.chpl should:
generate a cryptographically secure random token (probably with Crypto.CryptoBuffer
print the token upon server startup (like jupyter notebook)
save the token (and hostname:port) to a user-readable-only file like ~/.arkouda-running-servers, so that a user can find how to reconnect to a running server (jupyter also does something like this)
check for the correct token in the "connect" message
For convenience, ak.connect() should be modified to accept the raw connection string that arkouda_server prints on startup with the hostname, port, and token.
@hokiegeek2 thye system will not allow me to assign this to you for some reason. I am going to create a new issue, link it to this one, and assign that to you.
@mhmerrill@reuster986 I have a prototype of this working in Python using zmq certs for authentication. The server-side is here:
The client side is here:
Here's the print statements, server and client-side, respectively:
The way it works is certificates are generated from zmq and those are used to connect to ZeroMQ and, depending upon the authentication mechanism, authenticate. There are three scenarios I have working:
no authenticator -> still need certs to establish connection, but no authentication is done, including on whitelist or blacklist urls
global authenticator -> lets everyone through for a given domain. Whitelist and blacklist urls can be configured, so where the user is connecting from is the authentication mechanism.
keys -> the zmq certs for approved users (clients) are loaded, users authenticated via their respective zmq certs.
Activity
mhmerrill commentedon Mar 27, 2020
@hokiegeek2 thye system will not allow me to assign this to you for some reason. I am going to create a new issue, link it to this one, and assign that to you.
hokiegeek2 commentedon Mar 27, 2020
mhmerrill commentedon Mar 27, 2020
I can't even assign you to the new issue ;-(
mhmerrill commentedon Mar 27, 2020
now it worked ??? you are assigned @hokiegeek2
enabled configuration of password and custom keyfile/keyfile non-defa…
hokiegeek2 commentedon Jun 4, 2020
@mhmerrill @reuster986 I have a prototype of this working in Python using zmq certs for authentication. The server-side is here:
The client side is here:
Here's the print statements, server and client-side, respectively:
The way it works is certificates are generated from zmq and those are used to connect to ZeroMQ and, depending upon the authentication mechanism, authenticate. There are three scenarios I have working:
Updated to install czmq needed for basic authentication Bears-R-Us#60
incremental checkin Bears-R-Us#60
added logic to get username and user's home directory, genration of t…
Incremental checkin, have token capture and validation working, need …
15 remaining items
added security unit tests, cleaned up a couple of errors, renamed ARK…
missed commit Bears-R-Us#60
Fixed logic error in arkouda_server, added connecting via url Bears-R…
Final cleanup and documentation updates/adds Bears-R-Us#60
changed client.connect params list back to original version, updated …
fixed streams type Bears-R-Us#60
fixed OS-related bug in get_username(), added method to creat.arkouda…
readded hdf5-tools per merge issue Bears-R-Us#60
changed client.connect params list back to original version, updated …
fixed streams type Bears-R-Us#60
fixed OS-related bug in get_username(), added method to creat.arkouda…
Changes per successful integration testing Bears-R-Us#405
hokiegeek2 commentedon Aug 5, 2020
@mhmerrill @reuster986 Are we good to close this issue?
hokiegeek2 commentedon Sep 3, 2020
@mhmerrill is it cool to close this?