Re-Review R3: Infra: Dockerfile, pipeline, IaC, Tailscale Funnel, godaddy-tofu DNS, deploy to prod

review-1522-2026-06-21-r3 Review

review approved

Verdict: APPROVED

Round 3 re-review of board item #1522. Previous reviews: review-1522-2026-06-20 (5 findings), review-1522-2026-06-20-r2 (2 remaining). Both remaining findings resolved.

Previous Findings Disposition

  • [x] [BODY] k3s.tfvars clarification -- RESOLVED in r2. Issue states "local tofu apply, NOT a PR" with full path.
  • [x] [BODY] godaddy-tofu file targets -- RESOLVED in r2. DNS targets listed under pal-e-platform: terraform/dns.tf + salt/pillar/caddy.sls.
  • [x] [BODY] Missing AC for DNS -- RESOLVED in r2. AC includes "theavatarbrothers.com resolves and serves the app via Caddy reverse proxy" and "CNPG databases created". Total: 8 AC.
  • [x] [SCOPE] Create arch-iac note -- RESOLVED. arch:iac added to convention-architecture-ids under Infrastructure category: "IaC provisioning (tofu apply, service onboarding, DNS records)". The convention note is the canonical backing definition for arch labels; a separate arch-iac note is not required.
  • [x] [DECOMPOSE] Decomposition needed -- DISMISSED by project owner. This is standard three-repo service onboarding (patterned work following landscaping-assistant, not novel). 8 points is appropriate for the scope.

Template Completeness

  • [x] Type -- Feature
  • [x] Lineage -- Standalone, follows docs ticket (#1)
  • [x] Repo -- ldraney/the-avatar-brothers (primary), with pal-e-deployments, pal-e-platform, pal-e-services identified
  • [x] User Story -- well-formed (developer wants CI/CD + prod deployment)
  • [x] Context -- references three-repo IaC pattern, explains no Keycloak, lists all infrastructure components
  • [x] File Targets -- comprehensive with create/modify/do-not-touch sections across all 4 repos
  • [x] Feature Flag -- none (correct for infra work)
  • [x] Acceptance Criteria -- 8 items, all testable
  • [x] Test Expectations -- present with run command (bundle exec rspec)
  • [x] Constraints -- present, references patterns, base images, port convention
  • [x] Checklist -- present with multi-repo PR tracking (3 PRs + 1 local tofu apply)
  • [x] Related -- present (the-avatar-brothers, landscaping-assistant reference)
All required sections present and complete.

Traceability

  • [x] story:project-bootstrap label -- present on board item
  • [x] story note verified -- "project-bootstrap" found in project-the-avatar-brothers user-stories section (Key: project-bootstrap, Role: Developer (Lucas), Summary: "Docs, infra, and pipeline deployed", Metric: "theavatarbrothers.com serves a page, CI/CD works")
  • [x] arch:iac label -- present on board item
  • [x] arch note verified -- arch:iac defined in convention-architecture-ids under Infrastructure category: "IaC provisioning (tofu apply, service onboarding, DNS records)"
  • [x] Forgejo issue -- https://forgejo.tail5b443a.ts.net/ldraney/the-avatar-brothers/issues/2, state: open

File Targets

In the-avatar-brothers (currently docs-only):
  • [x] Dockerfile -- to create. Harbor base images specified.
  • [x] .woodpecker.yaml -- to create
  • [x] docker-compose.yml -- to create
  • [x] Gemfile / Gemfile.lock -- to create
  • [x] Full Rails app skeleton -- to create
  • [x] bin/setup -- to create
In pal-e-services (local tofu apply, NOT a PR):
  • [x] ~/secrets/pal-e-services/k3s.tfvars -- correctly identified as local-only (gitignored). Add to services map and service_databases map. Run tofu apply.
In pal-e-deployments:
  • [x] overlays/the-avatar-brothers/prod/kustomization.yaml -- to create
  • [x] overlays/the-avatar-brothers/prod/deployment-patch.yaml -- to create
  • [x] overlays/the-avatar-brothers/prod/secrets.enc.yaml -- to create (SOPS-encrypted)
In pal-e-platform:
  • [x] terraform/network-policies.tf -- to modify (postgres ingress allowlist)
  • [x] terraform/dns.tf -- to modify (godaddy_dns_record for theavatarbrothers.com A record)
  • [x] salt/pillar/caddy.sls -- to modify (reverse proxy entry)
All file targets verified in r1/r2. No changes since.

Repo Placement

Correct. Issue filed on ldraney/the-avatar-brothers as primary repo. Work spans 4 repos matching the established three-repo IaC pattern plus pal-e-services for provisioning. Checklist tracks all 4 work items (3 PRs + 1 local tofu apply).

Dependencies

  • [x] #1 (Docs) -- in done column. No blocker.
  • #1541 "Hello world: Meet Lucas & Marcus landing page" (backlog, 3pts) -- depends on this infra ticket. Implicit from project-bootstrap story.
  • #1525 "Spike: iOS app deployment" (backlog, 3pts) -- depends on infra being deployed.

Acceptance Criteria

8 acceptance criteria. All testable by an agent:
  • [x] docker compose up on port 7143 -- verifiable locally
  • [x] Woodpecker pipeline passes (lint, test, build) -- verifiable via Woodpecker MCP
  • [x] Harbor image pushed on main merge -- verifiable via Harbor API
  • [x] ArgoCD syncs and deploys -- verifiable via ArgoCD
  • [x] Tailscale Funnel URL shows page -- verifiable via curl
  • [x] theavatarbrothers.com resolves and serves via Caddy -- verifiable via curl/dig
  • [x] Health check /up responds 200 -- verifiable via curl
  • [x] CNPG databases created (primary, cache, queue, cable) -- verifiable via kubectl/psql

Blast Radius

Low. All changes are additive: new namespace entry in network-policies.tf, new DNS record, new Caddy site entry, new service in tofu var.services. No existing services modified.

Decomposition Assessment

Owner-dismissed. This is standard three-repo service onboarding patterned on landscaping-assistant. The work is repetitive infrastructure bootstrap, not novel development. 8 points is appropriate. No decomposition needed.

Recommendations

No action needed.