Skip to content

v1.2.0 — self-uninstall, verified downloads, safer teardown

Choose a tag to compare

@Jonathansl17 Jonathansl17 released this 29 Sep 17:27
· 6 commits to master since this release

New

  • cftun uninstall (and "Uninstall everything" in the menu) now also removes cftun itself and its shell completions. Use --keep-cftun to remove only cloudflared.
  • Uninstall also deletes leftover temporary tunnel configs (/tmp/cftun-quick-*.yml).

Security

  • cloudflared downloads (deb, rpm, static binary) are verified against the SHA-256 digest published on the GitHub release before the privileged install, and only over HTTPS.
  • Uninstall validates every path before deleting: --config must be a regular file, ~/.cloudflared must be a real directory; anything else aborts without deleting.
  • Uninstall stops if the package manager query fails, instead of deleting the binary by hand.
  • install.sh now fails if sha256sum is missing instead of installing unverified.

Changed

  • cftun token set no longer accepts the token as an argument (it would stay in shell history). Paste it at the prompt or set CLOUDFLARE_API_TOKEN.
  • If creating the DNS record fails on add/edit, the previous config is restored and the service is not restarted.
  • All scripts accept -h/--help.

Internal

Full best-practices refactor: consistent package layout, no hardcoded values, command groups with narrow dependencies, menu built from the command tree.

curl -fsSL https://raw.githubusercontent.com/Jonathansl17/cftun/master/install.sh | bash