Elasticsearch HTTPS 강제 설정 점검

도메인 엔드포인트에 HTTPS를 요구해 전송 중인 데이터를 보호하세요.

설명

Pulumi의 aws:elasticsearch:Domain에서 domainEndpointOptions.enforceHttps를 true로 설정해 클라이언트에 HTTPS를 요구하세요.

잠재적 영향

평문 HTTP로 보내는 검색 데이터와 인증 정보는 통신 경로에서 읽거나 변경할 수 있습니다.

해결 방법

클라이언트가 지원하는 TLS 정책을 선택하세요. 서버 인증서를 검증한 HTTPS 요청이 성공하고 같은 엔드포인트의 HTTP 요청은 거부되는지 확인하세요.

예시

두 발췌는 같은 도메인과 TLS 정책을 사용합니다. 실제 배포에 필요한 나머지 도메인 설정을 추가하세요.

변경 전

yaml
resources:
  my-elasticsearch-domain:
    type: aws:elasticsearch:Domain
    properties:
      domainEndpointOptions:
        enforceHttps: false
        tlsSecurityPolicy: Policy-Min-TLS-1-2-2019-07

변경 후

yaml
resources:
  my-elasticsearch-domain:
    type: aws:elasticsearch:Domain
    properties:
      domainEndpointOptions:
        enforceHttps: true
        tlsSecurityPolicy: Policy-Min-TLS-1-2-2019-07

변경 후에도 접근 권한, 노드 간 암호화와 저장 데이터 암호화는 따로 관리하세요.

참조