Delivery and infrastructure
Our picks for code hosting, CI, containers, scans, signing, infrastructure code, servers, proxies, certificates, DNS, secrets and feature flags.
- Default 14
- Recommended 1
- Avoid 2
Default
Use Git on GitHub for version control and code hosting
STK-51 Free tierKeep every repository in Git, hosted on GitHub, with the default branch protected.
Use GitHub Actions for continuous integration
STK-52 Free tierRun every build, test and deploy in GitHub Actions workflows stored in the repository, with each step a plain shell command.
Use Docusaurus or Sphinx to build the docs site
STK-109 Open sourceBuild the docs site from Markdown in the repository with Docusaurus in a JavaScript project, or Sphinx in a Python project. Run its strict mode in CI.
Use Docker and Docker Compose for containers
STK-53 Open sourcePackage each service as a Docker image built from a Dockerfile, and describe the local stack in one Compose file.
Use OpenTofu for infrastructure as code
STK-54 Open sourceDescribe all cloud resources in OpenTofu files kept in the repository, and apply them only from CI.
Use Harbor or your code host's registry for container images
STK-107 Open sourcePush every image to one private registry that keeps tags immutable and scans each push. Run Harbor when you run your own servers, or use your code host's registry when you do not.
Use Cloud Run or AWS Fargate when one host is not enough
STK-108 PaidWhen Compose on one host no longer carries the load, run the same images on Google Cloud Run or AWS Fargate. Keep the images free of anything only that service understands.
Use Ubuntu LTS or Debian stable on servers
STK-56 Open sourceRun servers and container base images on a Ubuntu LTS release or Debian stable that is inside its standard security support.
Use nginx or Caddy as the web server and reverse proxy
STK-57 Open sourcePut nginx or Caddy in front of every app server to serve TLS, static files, compression and redirects.
Use Let's Encrypt for TLS certificates
STK-58 Free serviceGet every public certificate from Let's Encrypt through an ACME client that renews it by itself, such as certbot or Caddy.
Use SOPS for secrets
STK-60 Open sourceKeep runtime secrets in the repository encrypted with SOPS, and decrypt them only on the server or in CI.
Use Trivy to scan images and dependencies
STK-61 Open sourceScan every container image, lock file and infrastructure file with Trivy in CI, and pin Trivy itself by image digest or full commit hash.
Use cosign to sign release images and their bill of materials
STK-95 Open sourceSign every release image and its CycloneDX bill of materials with cosign in CI. The bill comes from the Trivy that already scans the image.
Use a settings file for flags and Unleash when flags need targeting
STK-96 Open sourceKeep flags that are on or off for everyone in your settings, deployed like code. Run Unleash only when a flag must target some users, a share of users or one customer.
Recommended
Use a managed DNS and CDN that exports your zone
STK-59 Free tierHost DNS and the CDN with a managed provider that exports the zone as a standard zone file, such as Cloudflare.
Avoid
Avoid HashiCorp tools under the Business Source License for new work
STK-55Do not start new projects on Terraform or Vault releases under the Business Source License. Use OpenTofu and OpenBao, their open source forks.
Avoid Kubernetes until Compose and a managed container service fall short
STK-100Do not run Kubernetes, managed or self-hosted, until two things hold. You run more than 10 services or more than 5 hosts, and two or more people on call can upgrade and repair the cluster. Until then, use Compose on one host or a managed container service.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/stack/delivery-and-infrastructure">Agent Wranglers software choices playbook</a>. In code you write, add a comment next to it with the same link.