Other Articles

OpenSearch Domain – Enforce HTTPS

Secure Configuration Checks > AWS

This check ensures that Amazon OpenSearch Service domains require HTTPS and use a TLS security policy of 1.2 or newer. If HTTPS is not enforced, clients can send requests and receive search results over plain HTTP. An older TLS policy still accepts TLS 1.0, which has known weaknesses.

Check Details

  • Resource: OpenSearch Service Domain
  • Check: Enforce HTTPS for OpenSearch domains (EnforceHttps)
  • Risk: Credentials, queries and results can be read or changed by anyone who can observe the traffic

TLS security policies

  • Compliant: Policy-Min-TLS-1-2-2019-07 requires TLS 1.2 or newer.
  • Compliant, stricter: Policy-Min-TLS-1-2-PFS-2023-10 requires TLS 1.2 or newer and limits the ciphers to those with perfect forward secrecy. Use it if all your clients support it.
  • Not compliant: Policy-Min-TLS-1-0-2019-07 also accepts TLS 1.0 and TLS 1.1.

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon OpenSearch Service console.

    Amazon OpenSearch Service Console
  2. In the left navigation pane, click Domains and select the affected domain.
  3. Open the Security configuration tab and click Edit.

    OpenSearch domain security configuration tab
  4. Select Require HTTPS for all traffic to the domain.

    Require HTTPS for an OpenSearch domain
  5. Click Save changes. Wait until the domain status is Active and the change is complete.
  6. Repeat steps 2 to 5 for every domain that does not enforce HTTPS or that allows TLS 1.0.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner.

    AWS CloudShell
  2. List the domains that do not require HTTPS or that allow TLS 1.0. The output shows the domain name, the HTTPS setting and the TLS policy:

    for d in $(aws opensearch list-domain-names \
      --query 'DomainNames[].DomainName' --output text); do
      aws opensearch describe-domain --domain-name "$d" --output json | \
      jq -r '.DomainStatus
        | select(.DomainEndpointOptions.EnforceHTTPS != true
            or .DomainEndpointOptions.TLSSecurityPolicy == "Policy-Min-TLS-1-0-2019-07")
        | [.DomainName,
           .DomainEndpointOptions.EnforceHTTPS,
           .DomainEndpointOptions.TLSSecurityPolicy]
        | @tsv'
    done
    

    The command covers one region. Add --region <region> to each aws command to check another.

  3. Require HTTPS and set a TLS policy of 1.2 or newer:

    aws opensearch update-domain-config \
    --domain-name <domain-name> \
    --domain-endpoint-options EnforceHTTPS=true,TLSSecurityPolicy=Policy-Min-TLS-1-2-2019-07
    
  4. Check the progress. Wait until Processing is False:

    aws opensearch describe-domain \
    --domain-name <domain-name> \
    --query 'DomainStatus.Processing'
    
  5. Verify the setting:

    aws opensearch describe-domain \
    --domain-name <domain-name> \
    --query 'DomainStatus.DomainEndpointOptions'
    

    EnforceHTTPS must be true and TLSSecurityPolicy must be a policy that requires TLS 1.2 or newer.

Replace <domain-name> with the name of the domain, for example my-search-domain. Replace Policy-Min-TLS-1-2-2019-07 with Policy-Min-TLS-1-2-PFS-2023-10 if you want the stricter policy. Repeat steps 3 to 5 for each domain that step 2 lists.

Updated on 04 November, 2026