Skip to content

Rewrite for cloudflare tunnel architecture with spot, r2 backup, and ssm secrets - #369

Merged
eana merged 11 commits into
masterfrom
ipv6-cloudflare
Aug 5, 2026
Merged

Rewrite for cloudflare tunnel architecture with spot, r2 backup, and ssm secrets#369
eana merged 11 commits into
masterfrom
ipv6-cloudflare

Conversation

@eana

@eana eana commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates vaultwarden to a Cloudflare Tunnel + R2 architecture: no public
IPv4, no LetsEncrypt/nginx, spot instances with fallback across types.

Motivation

  • Eliminate public IPv4 exposure and LetsEncrypt/Traefik dependency.
  • Cut AWS costs by moving backups S3 -> R2 and using spot instances with fallback.

Changes

  • Cloudflare Tunnel proxies HTTPS and SSH; secrets (.env, tunnel token) live in SSM.
  • Backups moved S3 -> R2; add backup/restore/spot-termination scripts and aws-login.
  • Spot instance fallback (t4g.nano/micro) on Amazon Linux 2023 + Docker.
  • Rewrite CI from CircleCI to GitHub Actions; module reusable + example, Makefile/tofu wrapper, nix flake dev tooling; rewrite README + architecture diagram.
  • Update branch protection to require Pre-commit, Flake check, Tofu module, Tofu example; remove CircleCI gate.

Breaking changes

  • Providers, module variables, and required versions changed; existing state and callers need migration.

eana added 11 commits July 24, 2026 12:50
- Add flake with pre-commit, treefmt, tofu, and terraform wrapper
- Add makefiles for module and example workflows
- Add aws-login script with credential redaction
- Remove pre-commit config as it is generated by nix
- Restrict push trigger to master to prevent double runs on PRs
- Fix checkout SHA comment from v7 to v4
- Add permissions: read-all at workflow level
- Add concurrency group to cancel redundant runs on non-master
- Extract NIX_VERSION to env var to reduce duplication
- Add flake path filter and gate flake-check job on it
- Remove useDaemon: true from cachix-action (no-op across runners)
- Fix tofu-example nix develop invocation to resolve from repo root
@eana
eana force-pushed the ipv6-cloudflare branch from a40ac3f to e81e531 Compare August 5, 2026 22:55
@eana
eana merged commit 61cf213 into master Aug 5, 2026
4 checks passed
@eana
eana deleted the ipv6-cloudflare branch August 5, 2026 22:57
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