Add DNS and Caddy config for myvibes.world #458
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform!458
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "457-add-dns-and-caddy-config-for-myvibes-wor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add GoDaddy DNS A record and Caddy reverse proxy configuration for
myvibes.world, routing public traffic through the Hetzner edge VPS to themy-vibes-worldTailscale service. Follows the established pattern frompalinks.appandlandscaping-assistant.app.Changes
terraform/dns.tf-- Addedgodaddy_dns_record.myvibes_world_aA record pointingmyvibes.worldtomodule.hetzner_edge.server_ipv4with TTL 600salt/pillar/caddy.sls-- Addedmy-vibes-worldsite entry undercaddy.siteswith domainmyvibes.world, proxy targetmy-vibes-world.tail5b443a.ts.net, and www redirect enabledtofu plan Output
Unable to run
tofu planin agent context (requires provider credentials and state access). The changes are purely additive -- one newgodaddy_dns_recordresource with no modifications to existing resources.tofu fmt -checkpassed with no issues.Test Plan
tofu fmt -check terraform/dns.tfpasses (verified)tofu planshows only the newgodaddy_dns_record.myvibes_world_aresource to addtofu applycreates the A record on GoDaddydig myvibes.worldresolves to the Hetzner edge IPcurl -I https://myvibes.worldreturns a response proxied from the Tailscale serviceReview Checklist
Related Notes
ldraney/pal-e-platform #457-- the Forgejo issue this PR implementspal-e-platform-- the project this work belongs toCloses #457
PR #458 Review
Parent issue: #457
Branch:
457-add-dns-and-caddy-config-for-myvibes-worFiles changed:
terraform/dns.tf,salt/pillar/caddy.slsDOMAIN REVIEW
Stack identified: Terraform (GoDaddy DNS provider) + Salt (pillar YAML + Jinja2 template)
Terraform (dns.tf):
godaddy_dns_record.myvibes_world_aresource follows the exact pattern of the existingpalinks_aandlandscaping_assistant_arecords: apex@A record, TTL 600, pointing tomodule.hetzner_edge.server_ipv4.godaddyprovider is already configured inproviders.tf-- no new provider dependency needed.{domain_slug}_a.tofu fmtcompliance claimed in PR body and the file reads clean.Salt (caddy.sls):
my-vibes-worldsite entry follows the existing pillar structure exactly:domain,proxy_target,www_redirect.pillar['caddy']['sites']and generates site blocks dynamically -- no template modification needed.www_redirect: trueis consistent with existing sites and will generate awww.myvibes.world -> myvibes.worldpermanent redirect block.caddy-reloadstate insalt/states/caddy/init.slsusesonchangesto triggercaddy reloadwhen the Caddyfile changes -- the new pillar entry will trigger this automatically on highstate.my-vibes-world.tail5b443a.ts.netfollows the Tailscale MagicDNS naming convention used by the other services.No secrets exposure: All sensitive values (GoDaddy API key/secret, Hetzner token, etc.) are referenced via Terraform variables, not hardcoded.
BLOCKERS
None.
NITS
Minor comment staleness in init.sls (pre-existing, not introduced by this PR): Line 23 of
salt/states/caddy/init.slsshowsproxy_target: landscaping.tail5b443a.ts.netin the example pillar structure, but the actual pillar incaddy.slsuseslandscaping-assistant.tail5b443a.ts.net. This is a pre-existing documentation drift, not introduced by this PR, but worth noting for a future cleanup.Deployment verification note: The PR body correctly acknowledges that
tofu plancould not be run in agent context. The test plan covers the right verification steps (dig, curl). Ensuremy-vibes-worldis registered as a Tailscale service before applying, or the Caddy upstream will fail health checks.SOP COMPLIANCE
Add DNS and Caddy config for myvibes.worldCloses #457present -- issue will auto-close on mergePROCESS OBSERVATIONS
VERDICT: APPROVED
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.