Skip to content

feat: reacquire durable Cloudflare tunnel - #105

Merged
xnoto merged 1 commit into
mainfrom
feat/reacquire-cluster-tunnel
Aug 28, 2026
Merged

feat: reacquire durable Cloudflare tunnel#105
xnoto merged 1 commit into
mainfrom
feat/reacquire-cluster-tunnel

Conversation

@xnoto

@xnoto xnoto commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • persist the current tunnel credential in the existing SOPS-managed Cloudflare Secret
  • switch ClusterTunnel/cluster-apps from newTunnel to existingTunnel
  • reference the durable tunnel by both ID and name
  • document the Terraform/Argo ownership boundary

Ordering

Do not merge until the companion Terraform PR has merged and its OpenTofu apply has imported the tunnel successfully. After sync, remove the stale newTunnel finalizer and repair the current workload ownership TXT records.

Companion: makeitworkcloud/tfroot-cloudflare#36

Validation

  • rendered the complete Cloudflare operator Kustomization with KSOPS
  • verified the rendered credential document matches the existing tunnel without displaying secret values
  • all local pre-commit, YAML, secret-detection, and KubeLinter checks passed

@xnoto
xnoto requested a review from a team as a code owner August 28, 2026 20:55
xnoto added a commit to makeitworkcloud/tfroot-cloudflare that referenced this pull request Aug 28, 2026
## Summary
- import the live `cluster-apps-k3s` tunnel into OpenTofu as a durable,
locally configured resource
- protect the tunnel from accidental Terraform destruction
- retain Terraform ownership of only the `api` and `k3s` bootstrap
CNAMEs
- document the boundary with cloudflare-operator local routes and
workload DNS

## Migration
The import block adopts the existing tunnel ID; it must not create or
replace the tunnel. Merge and allow the environment-gated OpenTofu apply
to finish before merging the companion Kustomize PR.

Companion: makeitworkcloud/kustomize-cluster#105

## Validation
- `tofu validate -no-color`
- all local pre-commit hooks passed, including TFLint, Checkov,
formatting, generated Terraform docs, and secret detection
- live tunnel is healthy and configured with `config_src=local`
@xnoto
xnoto merged commit 91399dc into main Aug 28, 2026
2 checks passed
@xnoto
xnoto deleted the feat/reacquire-cluster-tunnel branch August 28, 2026 21:00
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.

1 participant