Does clojure support authentication?

I checked both repl from lein and clojure 1.8 socket repl, it looks like neither of them supports username / password. if I open the answer to an external connection, how to make it safe? Or do you need to use ssh to enter the host, and then from this host to connect to repl?

+5
source share
1 answer

By default, the REPL socket is bound to a loopback, so it will only accept connections made from this machine. This is probably the safest method. Then you can use any auth methods that you would like to get on this machine. SSH or my personal favorite mosh are good options.

It is plausible that you could create some kind of authentication system by providing your own REPL function and allowing only authenticated connections from everyone who wants it, but I think this can be extremely unreasonable and unsafe.

+4
source

Source: https://habr.com/ru/post/1241407/


All Articles