Skip to content

feat(cloud-dns): DNSSEC enabled by default for public zones#393

Merged
gdrojas merged 2 commits into
mainfrom
fix/cloud-dns-dnssec
Jun 12, 2026
Merged

feat(cloud-dns): DNSSEC enabled by default for public zones#393
gdrojas merged 2 commits into
mainfrom
fix/cloud-dns-dnssec

Conversation

@gdrojas

@gdrojas gdrojas commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a dnssec_enabled variable (default true) to the GCP Cloud DNS module that sets dnssec_config { state = "on" } on the managed zone.
  • Only applies to public zones — Cloud DNS does not support DNSSEC on private zones, so the block is skipped there even if the variable is set.
  • Zone signing is inert until the DS record is published at the domain registrar, so existing zones keep resolving exactly as before. Consumers can opt out with dnssec_enabled = false.

Effect on existing consumers

Next apply on public zones shows an in-place update adding dnssec_config (GCP creates and manages the signing keys). No zone recreation, no downtime, no change in DNS resolution.

Resolves Trivy code-scanning alert #5 (GCP-0013: Cloud DNS should use DNSSEC).

Test plan

  • tofu test — 9/9 pass (3 new: on by default for public zones, explicit opt-out, ignored for private zones)
  • tofu fmt / tofu validate clean (pre-commit)
  • README regenerated with terraform-docs

🤖 Generated with Claude Code

gdrojas added 2 commits June 12, 2026 12:15
Adds a dnssec_enabled variable (default false) that configures
dnssec_config on the managed zone. Only applies to public zones,
since Cloud DNS does not support DNSSEC on private zones.

Addresses Trivy alert GCP-0013 (Cloud DNS should use DNSSEC).
Zone signing is inert until the consumer publishes the DS record at
the domain registrar, so existing zones keep resolving unchanged.
Consumers can opt out with dnssec_enabled = false.

Resolves Trivy alert GCP-0013 (Cloud DNS should use DNSSEC).
@gdrojas gdrojas changed the title feat(cloud-dns): add optional DNSSEC support for public zones feat(cloud-dns): DNSSEC enabled by default for public zones Jun 12, 2026
@gdrojas gdrojas merged commit c2e606d into main Jun 12, 2026
44 checks passed
@gdrojas gdrojas deleted the fix/cloud-dns-dnssec branch June 12, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants