http icon indicating copy to clipboard operation
http copied to clipboard

SSL support

Open vmakhaev opened this issue 8 years ago • 7 comments

One of possible use cases: AWS Lambda functions does not support non SSL endpoints: https://forums.aws.amazon.com/message.jspa?messageID=665904

vmakhaev avatar Aug 06 '16 11:08 vmakhaev

Any news on a http server with SSL support please?

cbalano avatar Feb 03 '18 08:02 cbalano

Implementing SSL support with openssl is definitely possible, though it's not trivial to do, and will likely not happen in the nearest future, unless there is a contributor that is willing to work on it.

The primary reason it's not high on the list of priorities is that there are lots of mature SSL reverse-proxies. For example, nginx.

knazarov avatar Feb 03 '18 17:02 knazarov

Please also note that we do have ssl support in http.client already.

kostja avatar Feb 03 '18 19:02 kostja

Alright, thank you; I finally saw the light. The TNT http connection will be unencrypted in the local docker network. For servicing the routes outside the local network, I will configure an NGINX container to act as an edge server.

cbalano avatar Feb 04 '18 00:02 cbalano

Please also note that we do have ssl support in http.client already.

The http.client is not interesting because it's blocking. Using a high speed db like Tarantool only to wait on the completion of your http requests is not a compelling scenario.

cbalano avatar Feb 04 '18 00:02 cbalano

@cbalano yes, that's how I do it. My rule of thumb is to always start with the plain http server (tarantool/http) and add SSL on top with nginx. In case if you'd need pipelining or some obscure http features that the Lua module doesn't handle, you can transition to the tarantool-nginx module later https://github.com/tarantool/nginx_upstream_module .

knazarov avatar Feb 05 '18 10:02 knazarov

that would not work where encryption on transit is required including a local loopback/unix domain server. So it would be good to have support for an optional SSL.

rohitjoshi avatar Jun 01 '18 20:06 rohitjoshi