Skip to content

fix: clawbench email dns#177

Merged
Perry2004 merged 2 commits into
mainfrom
clawbench-dns
Mar 20, 2026
Merged

fix: clawbench email dns#177
Perry2004 merged 2 commits into
mainfrom
clawbench-dns

Conversation

@Perry2004
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 02:34
@Perry2004 Perry2004 merged commit df5966f into main Mar 20, 2026
2 of 3 checks passed
@Perry2004 Perry2004 deleted the clawbench-dns branch March 20, 2026 02:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Route53 DNS records for the clawbench.<domain> delegated subzone to address email-related DNS entries (ownership, DKIM, DMARC) in common/dns.

Changes:

  • Updates the ownership TXT record name and lowers its TTL.
  • Changes DKIM record name fields to include the full clawbench.<domain> suffix.
  • Changes DMARC record name to include the full clawbench.<domain> suffix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread common/dns/clawbench.tf
resource "aws_route53_record" "clawbench_ownership" {
zone_id = aws_route53_zone.clawbench_subzone.zone_id
name = ""
name = "clawbench.${var.domain_name}"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this hosted zone (aws_route53_zone.clawbench_subzone), apex records elsewhere in this file use name = "" (e.g., MX/SPF). Using name = "clawbench.${var.domain_name}" here makes naming inconsistent and can be error-prone if the provider treats it as relative to the zone (potentially producing a duplicated name). Consider using the zone apex (name = "") for this ownership TXT record to match the other apex records.

Suggested change
name = "clawbench.${var.domain_name}"
name = ""

Copilot uses AI. Check for mistakes.
Comment thread common/dns/clawbench.tf
Comment on lines 39 to +40
type = "TXT"
ttl = "3600"
ttl = "300"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repo convention elsewhere uses numeric TTL literals (e.g., ttl = 60 / ttl = 600) rather than quoted strings. Consider making this TTL a number (and ideally aligning the rest of the file similarly) to match the established style and avoid implicit type coercion.

Copilot uses AI. Check for mistakes.
Comment thread common/dns/clawbench.tf
Comment on lines 48 to 51
zone_id = aws_route53_zone.clawbench_subzone.zone_id
name = "purelymail1._domainkey"
name = "purelymail1._domainkey.clawbench.${var.domain_name}"
type = "CNAME"
ttl = "3600"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since zone_id already targets the clawbench.${var.domain_name} hosted zone, including .clawbench.${var.domain_name} in the record name is inconsistent with the relative naming used elsewhere in this file and makes future zone/name refactors harder. Consider using the relative record name (e.g., just the selector + ._domainkey) within this hosted zone.

Copilot uses AI. Check for mistakes.
Comment thread common/dns/clawbench.tf
resource "aws_route53_record" "clawbench_dkim_2" {
zone_id = aws_route53_zone.clawbench_subzone.zone_id
name = "purelymail2._domainkey"
name = "purelymail2._domainkey.clawbench.${var.domain_name}"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the other DKIM records: with zone_id pointing at the clawbench subzone, consider using a relative name within the zone rather than embedding .clawbench.${var.domain_name} into the record name for consistency and easier maintenance.

Suggested change
name = "purelymail2._domainkey.clawbench.${var.domain_name}"
name = "purelymail2._domainkey"

Copilot uses AI. Check for mistakes.
Comment thread common/dns/clawbench.tf
Comment on lines 64 to 67
zone_id = aws_route53_zone.clawbench_subzone.zone_id
name = "purelymail3._domainkey"
name = "purelymail3._domainkey.clawbench.${var.domain_name}"
type = "CNAME"
ttl = "3600"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same naming concern as DKIM 1/2: because zone_id is already the clawbench hosted zone, consider using the relative selector name within the zone for consistency (rather than a name that embeds .clawbench.${var.domain_name}).

Copilot uses AI. Check for mistakes.
Comment thread common/dns/clawbench.tf
resource "aws_route53_record" "clawbench_dmarc" {
zone_id = aws_route53_zone.clawbench_subzone.zone_id
name = "_dmarc"
name = "_dmarc.clawbench.${var.domain_name}"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because zone_id is already the clawbench.${var.domain_name} hosted zone, using name = "_dmarc.clawbench.${var.domain_name}" is inconsistent with the relative naming used elsewhere in this file and adds avoidable coupling to the zone name. Consider using the relative _dmarc label within this hosted zone.

Suggested change
name = "_dmarc.clawbench.${var.domain_name}"
name = "_dmarc"

Copilot uses AI. Check for mistakes.
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