Review the ELB listener TLS security policy

Use a supported security policy for an ELB HTTPS listener and restrict obsolete TLS protocols and weak cipher suites.

Description

Set sslPolicy on the Crossplane ELBv2 HTTPS listener to the name of an AWS security policy. That policy selects the TLS versions and ciphers the listener accepts from clients.

Potential impact

Connections that negotiate an obsolete protocol or weak cipher can leave data in transit less protected.

Remediation

Choose a listener policy requiring TLS 1.2 or later that supports the clients you need. Verify that clients validate the server certificate and connect, and that prohibited protocols are refused. Check encryption to the targets separately.

Examples

Both excerpts use port 443 on test-listener. Supply the referenced ProviderConfig, load balancer, HTTPS certificate and default action.

Before

yaml
apiVersion: elbv2.aws.crossplane.io/v1alpha1
kind: Listener
metadata:
  name: test-listener
spec:
  forProvider:
    region: us-east-1
    port: 443
    protocol: HTTPS
    sslPolicy: ELBSecurityPolicy-2016-08
  providerConfigRef:
    name: example

ELBSecurityPolicy-2016-08 also permits TLS 1.0 and 1.1.

After

yaml
apiVersion: elbv2.aws.crossplane.io/v1alpha1
kind: Listener
metadata:
  name: test-listener
spec:
  forProvider:
    region: us-east-1
    port: 443
    protocol: HTTPS
    sslPolicy: ELBSecurityPolicy-TLS13-1-2-2021-06
  providerConfigRef:
    name: example

ELBSecurityPolicy-TLS13-1-2-2021-06 permits only TLS 1.2 and 1.3.

References