Cloud DNS의 DNSSEC 서명 알고리즘 점검

DNSSEC 서명에 권장되는 알고리즘을 사용하고 신뢰 연결을 유지하며 전환하세요.

설명

공개 DNS 영역의 새 서명에는 SHA-1 기반 rsasha1을 사용하지 마세요. DNSSEC는 DNS 데이터의 출처와 무결성을 검증하는 기능이며 응답을 암호화하지 않습니다.

잠재적 영향

서명 키와 상위 영역의 DS 레코드가 맞지 않으면 검증 리졸버가 정상 도메인도 해석하지 못할 수 있습니다.

해결 방법

DNSSEC를 끈 상태에서 default_key_specs에 지원되는 알고리즘을 키 서명용·영역 서명용으로 각각 지정하세요. 이미 서명 중이라면 기존 상위 DS를 제거하고 TTL이 지난 뒤 서명을 끄세요. 키를 바꾸고 다시 서명한 다음 새 DS를 등록하고 검증 리졸버로 확인하세요.

예시

영역 이름, 도메인과 프로젝트를 실제 값으로 바꾸세요. service_account_file의 예시 값 /tmp/auth.pem을 서비스 계정 JSON 파일 경로로 바꾸세요.

변경 전

yaml
- name: create a managed zone
  google.cloud.gcp_dns_managed_zone:
    name: test-zone
    dns_name: test.somewild2.example.com.
    description: test zone
    project: test_project
    auth_kind: serviceaccount
    service_account_file: "/tmp/auth.pem"
    state: present
    dnssec_config:
      default_key_specs:
        - algorithm: rsasha1
          key_type: keySigning
          key_length: 2048
        - algorithm: rsasha1
          key_type: zoneSigning
          key_length: 2048
      state: "off"

두 작업 모두 dnssec_config.state: "off"입니다. state: present는 영역을 관리하는 설정이며 서명을 켜지 않습니다.

변경 후

yaml
- name: create a managed zone
  google.cloud.gcp_dns_managed_zone:
    name: test-zone
    dns_name: test.somewild2.example.com.
    description: test zone
    project: test_project
    auth_kind: serviceaccount
    service_account_file: /tmp/auth.pem
    state: present
    dnssec_config:
      default_key_specs:
        - algorithm: rsasha256
          key_type: keySigning
          key_length: 2048
        - algorithm: rsasha256
          key_type: zoneSigning
          key_length: 2048
      state: "off"

두 번째 작업은 keySigning과 zoneSigning의 알고리즘을 rsasha256으로 지정합니다.

참조