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

Rustls support for Redis #231

Open
rbozan opened this issue Nov 6, 2024 · 0 comments
Open

Rustls support for Redis #231

rbozan opened this issue Nov 6, 2024 · 0 comments

Comments

@rbozan
Copy link

rbozan commented Nov 6, 2024

Hi, using cached and Redis now forces you to have OpenSSL. An alternative to OpenSSL is Rustls, which does not need any extra library.

I suggest something like this:

 redis_connection_manager = ["redis_store", "redis/connection-manager"]
 redis_async_std = ["redis_store", "async", "redis/aio", "redis/async-std-comp", "redis/tls", "redis/async-std-tls-comp"]
-redis_tokio = ["redis_store", "async", "redis/aio", "redis/tokio-comp", "redis/tls", "redis/tokio-native-tls-comp"]
+redis_tokio = ["redis_store", "async", "redis/aio", "redis/tokio-comp"]
+redis_tokio_native-tls = ["redis/tokio-native-tls-comp"]
+redis_tokio_rustls = ["redis/tokio-rustls-comp"]
 redis_ahash = ["redis_store", "redis/ahash"]
 disk_store = ["sled", "serde", "rmp-serde", "directories"]
 wasm = []

The user has to supply that he wants redis_tokio and either redis_tokio_native-tls or redis_tokio_rustls. This way he/she can choose. But an extra feature flag could also be useful.

@rbozan rbozan changed the title Rustls support Rustls support for Redis Nov 6, 2024
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

1 participant