Skip to content

fix: harden Cloudflare Tunnel repository setup - #41

Merged
LucaLin233 merged 39 commits into
mainfrom
luno/fix-cloudflare-tunnel-source-security
Sep 8, 2026
Merged

LucaLin233 merged 39 commits into
mainfrom
luno/fix-cloudflare-tunnel-source-security

Conversation

@LucaLin233

Copy link
Copy Markdown
Owner

Summary

  • validate Cloudflare signing key as one primary key with pinned fingerprint and UID
  • stage and commit key/source as one generation with strict path, type, ownership, mode, and source validation
  • roll back old key/source on write, rename, APT probe/install, exit, or HUP/INT/TERM failure while preserving evidence
  • retain legacy source migration and existing package/service behavior

Verification

  • git diff --check
  • find . -type f -name '*.sh' -print0 | xargs -0 -n1 bash -n
  • dedicated Cloudflare suite: 54 PASS
  • full suite under CI locale: 2754 PASS across 13 suites
  • ShellCheck warning scope and repository error scope passed

Tests use fake curl/gpg/apt/systemctl commands. No real Cloudflare, APT source, server, or deployment operation was performed.

Intentionally left unmerged for independent LENS review.

@LucaLin233
LucaLin233 merged commit 2303d44 into main Sep 8, 2026
9 checks passed
@LucaLin233
LucaLin233 deleted the luno/fix-cloudflare-tunnel-source-security branch September 8, 2026 20:30
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