Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into support for secure TLS connections to memcached/redis servers #647

Open
TysonAndre opened this issue Aug 12, 2021 · 3 comments
Open

Comments

@TysonAndre
Copy link
Collaborator

Resources:
https://github.com/memcached/memcached/blob/master/testapp.c
https://wiki.openssl.org/index.php/SSL/TLS_Client
https://www.openssl.org/docs/man1.0.2/man3/SSL_CTX_new.html

Related to #583

This would probably be done by

  • Adding a tls: true section to twemproxy pool configuration files
  • Adding a ./configure option to depend on openssl
  • Changing callers of nc_write/nc_writev to call a helper method for the nc_conn instead
@TysonAndre TysonAndre changed the title Look into support for tls connections to memcached/redis servers Look into support for secure TLS connections to memcached/redis servers Aug 12, 2021
@selverob
Copy link

selverob commented Oct 5, 2021

Just as an example of how this could be useful / enable new use cases:
We're using Google's Memorystore for Redis. Unfortunately, its network connection patterns require the instances to be exposed to our whole (large) VPC. For security, we use TLS and Redis AUTH commands. However, handling that that puts some load on developers of services which use Redis.

These services run in Kubernetes with Istio, so we were looking into deploying Twemproxy into each cluster and having it handle the TLS termination and AUTH strings and letting services running in the clusters just connect without authentication or TLS, with the access policy being handled by Istio. However, the lack of TLS support is kind of blocking this use case for us.

@marcelobartsch
Copy link

for AWS ElastiCache for Redis, AUTH is only possible over TLS, so this is also something we would love to have so we can use ElastiCache with AUTH as there is no way to use it without TLS :(

@criess
Copy link

criess commented May 3, 2022

Also for our usecase twemproxy terminating TLS connections from caching backends would be cools as our caching servers are available on internet and for then obvious security reason should only communicate inside TLS connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants