> gatekeeper
A small public edge that owns TLS, filters traffic and keeps origins off the internet.
Objectives
- Harden an internet-facing node against probing and denial of service without trusting a large framework.
- Terminate TLS and route each hostname to a loopback origin, so no origin ever faces the public socket.
- Stay small enough for one vCPU and about one gigabyte of RAM, and auditable enough to defend.
Qualities
- Minimal, in-house Go proxy sized for a slim Linux image.
- Least privilege and platform-agnostic by design: if it needs a cloud, it talks to it as an external entity.
- Defensibility before availability: above a compiled-in request rate it closes its listener and exits cleanly, and systemd does not restart it until a human does.
- Certificates are issued and renewed with certbot; a billing kill switch stops the instance at three quarters of the monthly budget.
Technical details
A Go binary under systemd, with certificates managed by certbot and routes compiled in.
-
Routes
demian.appandsoma.demian.appto loopback origins, with room forsenderoholistico.comandmrth.demian.app. An unclaimed hostname is refused or sent to the default upstream. -
Certbot certificates are published to
/etc/gatekeeper/certs/. -
docs/PANIC.mddocuments the panic action;billing-guard/holds the account-level kill switch. - A configuration interface is planned, so a build can be selected and hash-checked before deployment without allowing reconfiguration afterwards.
Not a user-facing tool; it is the public edge for every origin.