ElastiCache transit encryption is disabled

Use TLS for ElastiCache Redis connections and check whether plaintext connections remain allowed.

Description

For a Redis OSS replication group, set TransitEncryptionEnabled: true to encrypt client and node traffic. The AtRestEncryptionEnabled setting covers stored data.

Potential impact

On an unencrypted connection, someone on the network path can read or change cache requests and responses, including sensitive session data.

Remediation

  • Configure clients to use TLS and verify the server certificate. Check network access, user permissions and storage encryption separately.
  • To enable TLS on an existing Redis OSS group, first upgrade to version 7 or later if needed. Enable TLS with TransitEncryptionMode: preferred. After all clients connect over TLS, switch to required and verify plaintext connections are rejected.

Examples

For deployment, also provide the required group description, a supported engine version and node type, and a cache subnet group in your VPC.

Before

yaml
Resources:
  ReplicationGroup:
    Type: AWS::ElastiCache::ReplicationGroup
    Properties:
      Engine: redis
      AtRestEncryptionEnabled: true
      TransitEncryptionEnabled: false

TransitEncryptionEnabled: false leaves connections unencrypted even though storage encryption is on.

After

yaml
Resources:
  ReplicationGroup:
    Type: AWS::ElastiCache::ReplicationGroup
    Properties:
      Engine: redis
      AtRestEncryptionEnabled: true
      TransitEncryptionEnabled: true

Setting the flag to true enables TLS. The excerpts omit the mode used to migrate existing clients.

References