Skip to content

Production deployment

What every internet-facing installation needs, wherever it runs: TLS, rate limits, client addresses, a closed admin API, MongoDB with authentication and least privilege, isolated functions and files. Then how Docker Compose and Kubernetes do it, and where to host.

backd deliberately leaves some protections to the infrastructure around it: TLS, request rate limits and sign-up spam, body size limits at the edge, and database security. They are the same wherever backd runs. This section separates what to put in place, on this page, from the technology that does it (Docker Compose or Kubernetes) and from the place it runs (cloud providers).

What every installation needs

ProtectionWhat it meansDocker ComposeKubernetes
TLSbackd serves plain HTTP; terminate TLS in front of it and redirect HTTP to HTTPSTLSTraffic in
Rate limitsLimit requests per address, with a stricter zone for sign-up, password reset and verificationRate limitsTraffic in
Client addressesThe proxy overwrites X-Forwarded-For; TRUSTED_PROXIES lists only your proxiesClient addressesTraffic in
Body sizeCap request bodies at the edgeRequest body sizeTraffic in
A closed admin APIPublic instances serve no admin API (BACKD_ADMIN_API=false); a separate internal instance doesAdmin APIWho may reach the admin host
MongoDBAuthentication and TLS, reachable only from backd, a user limited to the configured collections, PROVISION_MODE=verifyMongoDB with authentication and TLS, Least-privilege provisioningNetwork policies; what a managed database allows
Functions and filesThe executor reaches only backd-server egress and the internal listener; object storage sits on a network only backd and its worker shareFunctions, FilesNetwork policies
SecretsRandom, long, kept out of the configuration and the images, rotated without downtimeAdministrators and API keys, Rotating passwordsSecrets on Kubernetes

Before going public, go through the hardening checklist, and before exposing a realm the security checklist.

Pick the technology, then the place

  • Docker Compose: a tested reference deployment (deploy/production), end-to-end tested by CI. One host, or the model for your own.
  • Kubernetes: a Helm chart, the configuration baked into the image, a release pipeline, and the secrets of an installation.
  • Cloud providers: where the infrastructure comes from: the Terraform and the walkthrough for a provider.
Edit this page · Last updated 13 Nov 2026