Proxy + TLS Discussion #1173
Replies: 2 comments 9 replies
-
Thanks! Good notes.
RE: the state of backend TLS support... To be completely honest the user who lit a fire about it did not end up deploying it (their priorities changed). So while I've done my own testing on it there is limited production level testing for the TLS backends. Please let me know if you run into trouble with it. TLS frontend is fine though. For connecting to the proxy via TLS it is the same exact code as connecting to TLS on a normal memcached daemon. A few things are going on in parallel right now as I try to polish things:
|
Beta Was this translation helpful? Give feedback.
-
It'd been a while, so I'll share some updates and probably close this thread down soon:
My biggest nice to haves at this point (and I'll probably hack something for myself short term) would be:
|
Beta Was this translation helpful? Give feedback.
-
Per 8a9b709, I was gonna start a thread on use of the proxy + TLS.
Some intro bits:
This will be a bit slow to update, as the initial POC is quick for us, but a production rollout is much dicier and will be slower to release.
The build process:
./configure --enable-proxy --enable-proxy-tls --enable-tls
seemed to work well for me, although docs were not present so it took some spelunking to find--enable-proxy-tls
as someone who hasn't done a lot of custom building of the projectopenssl11-devel (1.1.1+) fixed that and then it built correctly, but I think those are still things you could work around using ifdefs if you wanted. Either way, documenting that requirement would be nice
Configuration:
The route lib was a bit spooky having not really looked in there before, but the change seemed reasonable, I added...
inside the first lines of https://github.com/memcached/memcached-proxylibs/blob/main/lib/routelib/routelib.lua#L709. I still kind of wish that route lib was distributed in the binary in some way, it's a somewhat clunky file to be editing to add TLS, but also I understand.
Initial Execution
At this point, it just worked. TLS seemed to happily work on our TLS required nodes, everything seemed hunky dory. My next steps are more about internal roll out and testing, but as we start to flex this at scale I'll reach out if anything gets weird? I'm also not sure how "prod-ready" y'all feel about the TLS+Proxy, or if this is a thing I should totally be avoiding.
Beta Was this translation helpful? Give feedback.
All reactions