Add support to TLS
Closed this issue · 6 comments
Since version 1.5.13, Memcached supports TLS.
Motivation
At OpenStack, we use python-binary-memcached in one of our oslo.cache Memcache backend drivers. To accommodate some cloud security requirements, we will need to enable TLS in Memcached as data must be encrypted in the wire in some scenarios.
I looked over the documentation and couldn't find anything related to TLS support. If there is a way to achieve that, please let us know.
I would like to help with the implementation of this if needed.
Hey there, right now there is no TLS support.
I didn't read how TLS support is implemented on the binary protocol but I assume it would be just a matter of wrapping the inner socket with a TLS context?
I would be greatly appreciated if you could submit a PR for this.
Yeah, I got to that line yesterday. Today I'm on PTO but I plan to do it on Monday.
[OFF TOPIC] and... are you Brazilian? [/OFF TOPIC]
Hey @moisesguimaraes thanks for the help!
Yes, I am brazilian :)
Cool, I got some changes working locally, now I'm trying to figure out how to get it covered by tests.
Would you like me to create a PR already and then we can iterate over it?
Hey, sorry for the delay.
Yes with the PR we can talk abou what you are doing.
TLS support added in #211