nchan_redis_tls_ciphers

The 'nchan_redis_tls_ciphers' directive specifies the list of allowed TLS cipher suites for secure connections to Redis in Nchan.

Syntaxnchan_redis_tls_ciphers cipher_list;
Defaultnone
Contextupstream
Arguments1

Description

The 'nchan_redis_tls_ciphers' directive is used in Nchan to define the specific set of TLS (Transport Layer Security) ciphers that will be permitted when establishing secure connections to a Redis instance. This directive is crucial for ensuring that the connections are not only encrypted but also secured against known vulnerabilities by adhering to a defined set of ciphers. The ciphers specified will be utilized by OpenSSL when Nchan interfaces with Redis over TLS, so it becomes essential to configure them based on both security requirements and compatibility with the Redis server.

The argument for this directive is a string that lists the ciphers, following the format expected by OpenSSL. You can specify multiple ciphers, separated by colons, allowing you to build a flexible and secure cipher suite that aligns with the security policies of your overall application. The direction taken in configuring these ciphers can affect performance, security, and compatibility, making it essential to consider the implications of chosen algorithms.

This directive is generally used within the 'upstream' context of the Nginx configuration, which dictates that it only applies to upstream server blocks where TLS connections to Redis are configured. Proper use of the 'nchan_redis_tls_ciphers' directive ensures that communication with Redis does not expose sensitive data to eavesdropping and man-in-the-middle attacks while maintaining compliance with security standards.

Config Example

upstream redis {
    server redis-instance-1:6379;
    nchan_redis_tls_ciphers 'HIGH:!aNULL:!MD5';
}

Ensure the specified TLS ciphers are supported by both the Nginx server and the Redis instance to avoid connection failures.

Using weak ciphers can compromise the security of the connection, so it’s essential to regularly review and update the cipher list based on current security standards.

← Back to all directives