feat(cloudflare): edge demo CF Tunnel public exposure (TRA-957)#152
Merged
mikestankavich merged 7 commits intoJun 8, 2026
Merged
Conversation
Authored + validated (tofu validate passes; hashicorp/random added to lock). tofu plan/apply pending on an instance with R2 state-backend creds.
…el perms (TRA-957)
…TRA-957) Two-label host not covered by Universal SSL's *.trakrf.id; tunnel edge TLS fails (sslv3 handshake) without it. Zone already has ACM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Infra side of TRA-957 — expose the edge demo app at https://app.demo.trakrf.id via a Terraform-managed Cloudflare Tunnel.
What
terraform/cloudflare/demo-tunnel.tf—random_idsecret +cloudflare_zero_trust_tunnel_cloudflared(remotely-managed config) + ingress config (app.demo.trakrf.id→https://traefik:443, box-local legno_tls_verify, catch-all 404) + proxied CNAME replacing the stale private A record.outputs.tf—demo_tunnel_token(sensitive);justfile—tunnel-tokenrecipe.terraform/bootstrap/main.tf— grant theterraform-infrastructureAPI tokenCloudflare Tunnel Read/Write(required to manage the tunnel; in-place token update, value unchanged).Applied
just bootstrap(token perms, 1 changed) thenjust cloudflare(3 added: tunnel, ingress config, CNAME). StaleA app.demo.trakrf.id → 192.168.8.10deleted out-of-band first (CNAME can't coexist with A). Tunnel id0d54500e-fbc2-4486-abbb-8490f55b634f.Box side (separate platform PR)
cloudflaredquadlet + opportunistic LE cert renewal intrakrf/platformdeploy/edge. Until the box connects, the edge returns CF 1016 — expected.Spec + plan:
docs/superpowers/specs|plans/2026-06-08-tra-957-*.🤖 Generated with Claude Code