rdev/internal/adapter
jordan ee1c214b7e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: correct Resend DNS record type, name, and MX priority
Three bugs in the notify provisioner DNS record upsert:

1. rec.Record ("DKIM"/"SPF") was used as the DNS record type — Cloudflare
   doesn't know those labels. Fix: use rec.DNSType ("TXT"/"MX") from the
   resendDNSRecord.type JSON field, which is the actual DNS record type.

2. rec.Name from Resend is already relative to the zone apex
   (e.g., "resend._domainkey.mail.project-name"), not relative to the
   registered domain. Code was doing rec.Name + "." + host which produced
   a doubled subdomain. Fix: pass rec.Name directly — Cloudflare's
   normalizeName appends ".baseDomain" to build the correct FQDN.

3. MX records have priority 10 in Resend's response but DNSRecord had no
   Priority field and Cloudflare CreateRecord/UpdateRecord didn't send it.
   Fix: add Priority int to domain.DNSRecord and include it in the body
   for both Create and Update when non-zero.

These bugs caused DKIM/SPF DNS records to never be created for any project.
Re-provision affected projects using POST /projects/{id}/notify/provision
after clearing NOTIFY_RESEND_DOMAIN_ID from the credential store.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 19:52:11 -07:00
..
cached feat: Implement hexagonal architecture with services, webhooks, queue, and telemetry 2026-01-25 19:57:46 -07:00
citadel feat: add GCS-based persistent media storage, AI generation pipeline, and composable skeleton packages 2026-02-19 21:29:09 -07:00
claudebox refactor: add timeout constants for agent execution tiers 2026-02-11 10:48:24 -07:00
cloudflare fix: correct Resend DNS record type, name, and MX priority 2026-02-23 19:52:11 -07:00
cockroach chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
codeagent fix(worker): include stdout in error messages when Claude command fails 2026-02-10 17:55:46 -07:00
deployer feat: add GCS-based persistent media storage, AI generation pipeline, and composable skeleton packages 2026-02-19 21:29:09 -07:00
gcs fix(templates): upgrade Go to 1.25 and fix Woodpecker syntax 2026-02-08 23:57:38 -07:00
gitea chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
kubernetes feat(sessions): add command execution endpoint and activity tracking 2026-02-13 08:41:05 -07:00
memory feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
notify fix: correct Resend DNS record type, name, and MX priority 2026-02-23 19:52:11 -07:00
postgres feat: implement project access enforcement and management API 2026-02-21 15:38:37 -07:00
redis fix: handle missing Redis credentials and redis.Nil in provisioner 2026-02-23 05:19:00 -07:00
sdlc refactor: add timeout constants for agent execution tiers 2026-02-11 10:48:24 -07:00
templates fix: make NOTIFY_API_KEY optional — fall back to log-only email mode 2026-02-23 05:52:58 -07:00
woodpecker chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
zot chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00