Skip to content

feat(aws/route53): add DKIM and dystopia.city apex records - #714

Merged
panicboat merged 1 commit into
mainfrom
feat/route53-additional-records
Aug 5, 2026
Merged

feat(aws/route53): add DKIM and dystopia.city apex records#714
panicboat merged 1 commit into
mainfrom
feat/route53-additional-records

Conversation

@panicboat

@panicboat panicboat commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Google Workspace DKIM public keys for both zones (google._domainkey.panicboat.net, google._domainkey.dystopia.city).
  • Add Google Search Console verification TXT record on the dystopia.city apex.
  • Add single-record Google Workspace MX (1 smtp.google.com.) on the dystopia.city apex.
  • Rename the panicboat DKIM resource to panicboat_net_google_domainkey_txt for symmetry with the newly added dystopia counterpart. State migration used a temporary moved block that has already been consumed and removed within this branch.

Notes

  • 2048-bit DKIM keys exceed the 255-char DNS <character-string> limit, so each value is split into two adjacent character-strings inside a single RR (RFC 1035 concatenates them for the receiver). The AWS provider wraps the whole value in outer quotes on our behalf, so only the inner " " boundary is emitted in HCL.
  • The moved block was applied and then removed within the same branch; a subsequent terragrunt plan reports "No changes."

Test plan

  • terragrunt plan clean before each apply stage.
  • terragrunt apply succeeded for each record — visible via aws route53 list-resource-record-sets and dig @8.8.8.8.
  • terragrunt plan after removing the moved block reports "No changes."
  • Google Search Console verification succeeds for dystopia.city.
  • Google Workspace inbound mail delivery to dystopia.city works end-to-end.
  • DKIM signing enabled in Google Workspace admin for both domains once the DKIM records are picked up.

Summary by CodeRabbit

  • New Features
    • Added Google Workspace email authentication records for panicboat.net and dystopia.city.
    • Added domain verification and mail-routing records for dystopia.city.
    • Updated DNS documentation to cover both domains.

Extend the route53 module to cover Google Workspace mail authentication
across both hosted zones and Search Console verification for dystopia.city:

- TXT google._domainkey.panicboat.net : Google Workspace DKIM public key.
- TXT dystopia.city                    : google-site-verification token.
- MX  dystopia.city                    : "1 smtp.google.com." (single-record
                                         Google Workspace).
- TXT google._domainkey.dystopia.city  : Google Workspace DKIM public key.

Rename the panicboat DKIM resource from google_domainkey_txt to
panicboat_net_google_domainkey_txt for symmetry now that a second zone
carries the same selector. State migration used a moved block that was
applied and then removed within this branch (subsequent plan clean).

Both DKIM keys exceed the 255-char DNS <character-string> limit, so the
values are split into two adjacent character-strings inside a single RR
(the AWS provider wraps the whole value in outer quotes, so only the
inner `" "` boundary is emitted here).

Signed-off-by: panicboat <panicboat@gmail.com>
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c596961-5fb7-4f79-98bf-d1c910096cea

📥 Commits

Reviewing files that changed from the base of the PR and between 712a6a0 and 2c2aaeb.

📒 Files selected for processing (1)
  • aws/route53/modules/main.tf

📝 Walkthrough

Walkthrough

The Route53 module now documents both hosted zones and adds Google Workspace DKIM, verification TXT, and MX records for panicboat.net and dystopia.city.

Changes

Google Workspace DNS configuration

Layer / File(s) Summary
Domain records and hosted-zone description
aws/route53/modules/main.tf
The module description covers both hosted zones. It adds DKIM TXT records for both domains, a verification TXT record for dystopia.city, and an apex MX record targeting smtp.google.com.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

A rabbit checked the DNS with care,
Two domains now send keys through air.
TXT strings split, MX pointing right,
Google records set just right.
Hop, hop—the hosted zones are bright!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@panicboat
panicboat marked this pull request as ready for review August 5, 2026 15:01
@panicboat
panicboat merged commit 5f441d8 into main Aug 5, 2026
6 of 7 checks passed
@panicboat
panicboat deleted the feat/route53-additional-records branch August 5, 2026 15:01
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.

1 participant