All checks
Medium Elasticsearch · regional

Connections to Elasticsearch domains should be encrypted using the latest TLS security policy

Checks that the Elasticsearch domain requires HTTPS and that its endpoint uses Policy-Min-TLS-1-2-PFS-2023-10, the policy AWS's control names as the latest, so clients connect only over TLS 1.2 or later with forward-secrecy ciphers. Policy-Min-TLS-1-2-2019-07 fails, as it does in AWS's control.

service
Elasticsearch
severity
Medium
scope
evaluated in every region

How to fix it

  • Can break clients: Clients that cannot negotiate TLS 1.2 or later with a forward-secrecy cipher, or that still connect over plain HTTP, are refused once this applies.

In the console

OpenSearch Service → Domains → the domain → Actions → Edit security configuration → Encryption

Require HTTPS for all traffic to the domain
Selected
TLS security policy
Policy-Min-TLS-1-2-PFS-2023-10

With the AWS CLI

aws es update-elasticsearch-domain-config --domain-name <domain-name> --domain-endpoint-options EnforceHTTPS=true,TLSSecurityPolicy=Policy-Min-TLS-1-2-PFS-2023-10 --region <region>

With Terraform

resource "aws_elasticsearch_domain" "this" {
  domain_name = var.domain_name

  domain_endpoint_options {
    enforce_https       = true
    tls_security_policy = "Policy-Min-TLS-1-2-PFS-2023-10"
  }
}

See which of your accounts this check is failing on.

Book a live scan