Description
Set domainEndpointOptions.enforceHttps to true on the Pulumi aws:elasticsearch:Domain to require HTTPS from clients.
Potential impact
Search data and credentials sent over plaintext HTTP can be read or changed along the network path.
Remediation
Choose a TLS policy the clients support. Verify that an HTTPS request succeeds with server certificate validation and that the same endpoint rejects the HTTP request.
Examples
Both excerpts target the same domain and retain its TLS policy. Supply the remaining domain settings for deployment.
Before
yaml
resources:
my-elasticsearch-domain:
type: aws:elasticsearch:Domain
properties:
domainEndpointOptions:
enforceHttps: false
tlsSecurityPolicy: Policy-Min-TLS-1-2-2019-07
After
yaml
resources:
my-elasticsearch-domain:
type: aws:elasticsearch:Domain
properties:
domainEndpointOptions:
enforceHttps: true
tlsSecurityPolicy: Policy-Min-TLS-1-2-2019-07
Manage access permissions, node-to-node encryption and storage encryption separately.