OpenSearch node-to-node encryption needs review

Encrypt internal node-to-node traffic in Elasticsearch and OpenSearch domains.

Description

Node-to-node encryption protects replication and search traffic inside an Elasticsearch or OpenSearch domain with TLS.

Potential impact

Unencrypted internal traffic can expose sensitive documents or index data to someone with access to that path.

Remediation

Set NodeToNodeEncryptionOptions.Enabled to true. Enabling it on an existing domain requires OpenSearch or Elasticsearch 6.7 or later. Review the change set for service impact, then verify node-to-node encryption on the deployed domain. Set client HTTPS, encryption at rest and access permissions separately.

Examples

Both AWS::OpenSearchService::Domain excerpts enable encryption at rest. Only the second specifies node-to-node encryption. Supply the actual at-rest KMS key, engine, node, storage and access settings.

Before

yaml
Resources:
  OpenSearchDomain:
    Type: AWS::OpenSearchService::Domain
    Properties:
      DomainName: my-domain
      EncryptionAtRestOptions:
        Enabled: true

After

yaml
Resources:
  OpenSearchDomain:
    Type: AWS::OpenSearchService::Domain
    Properties:
      DomainName: my-domain
      NodeToNodeEncryptionOptions:
        Enabled: true
      EncryptionAtRestOptions:
        Enabled: true

References