FHIR DrillDocs

Security

How the lab is protected

Which layers stand between the internet and the lab, what each one guarantees and what it doesn't.

Layers#

Layer Protects How
No inbound ports The whole box The router forwards nothing. The tunnel dials out to Cloudflare, so there's nothing to scan
Cloudflare Access fhir.fhirdrill.dev Every request needs an Access session (email code, allow list) or a service token. Unauthenticated requests are redirected to the login before they reach the box
Tunnel routing Everything not routed The tunnel only knows two hostnames: anything else returns 404 at Cloudflare. The engine isn't routed at all
Docker networks The engine and databases The tunnel container shares a network only with HAPI and the web server. Databases publish no ports
Read-only web server fhirdrill.dev nginx runs unprivileged, with a read-only filesystem and all Linux capabilities dropped. It serves static files only

What it doesn't protect#

  • HAPI has no authentication of its own. Anyone on your LAN can read and write it. That's fine at home, but never route HAPI through a tunnel or proxy without Access in front.
  • There's no per-user authorisation. Everyone who passes Access can do everything. SMART on FHIR would add scopes; see SMART on FHIR.
  • MLLP isn't encrypted. Keep it on the LAN.
  • There are no backups and no audit trail. See Backups.

The one rule

Synthetic data only. Every shortcut above is acceptable because nothing here is real.

Checks worth repeating#

Shell
# Unauthenticated requests must be redirected to the login (302), never answered (200)
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://fhir.fhirdrill.dev/fhir/metadata

# The public site serves only docs and brand files
curl -s -o /dev/null -w "%{http_code}\n" https://fhirdrill.dev/brand/

Run these after any change to the tunnel or to Access.

Secrets: where they live#

Secret Location Never in
Tunnel token ~/fhir-lab/tunnel/.env (mode 600) git, docs, chat
Database passwords ~/fhir-lab/hapi/.env, ~/fhir-lab/oie/.env compose files
Engine admin password Your password manager these docs
Access service tokens Your password manager or the tool's secret store URLs, scripts you commit

If a secret leaks, rotate it: Refresh token on the tunnel in Zero Trust, or regenerate a service token.

FHIR Drill lab docs · synthetic data only · built 2026-11-26