DNSSEC should not use the RSASHA1 algorithm, which is considered weak and vulnerable to cryptographic attacks. If a dnssec_config block contains a default_key_specs attribute with algorithm = "rsasha1", attackers may be able to exploit known weaknesses in the algorithm to forge DNS records, potentially redirecting users to malicious sites or causing other security issues. Instead, use a stronger algorithm such as rsasha256:
resource"google_dns_managed_zone""negative1"{name="example-zone"dns_name="example-${random_id.rnd.hex}.com."description="Example DNS zone"labels={foo="bar"}dnssec_config{default_key_specs{algorithm="rsasha256"}}}
Non-Compliant Code Examples
resource"google_dns_managed_zone""positive1"{name="example-zone"dns_name="example-${random_id.rnd.hex}.com."description="Example DNS zone"labels={foo="bar"}dnssec_config{default_key_specs{algorithm="rsasha1"}}}
1
2
rulesets:- Terraform / GCP # Rules to enforce / GCP.
맞춤형 데모 요청
Datadog 시작하기
Ask AI
AI-generated responses may be inaccurate. Verify important info.