Skip to content
I

InfraPilot

Own Your Infrastructure. Verify Its Security.

Created on 14th June 2026

•

I

InfraPilot

Own Your Infrastructure. Verify Its Security.

The problem InfraPilot solves

InfraPilot solves the critical gap between managed ease-of-use and self-hosted control by treating security as the foundation of the deployment pipeline rather than an afterthought.

The Problem

  1. Managed Platforms (e.g. Vercel, Netlify, Railway): They make shipping code incredibly simple, but keep developers in the dark regarding their application's security posture. They also lock projects into expensive, proprietary hosting ecosystems.
  2. Self-Hosted Infrastructure (e.g. VPS, EC2, Home Labs): Deploying to your own servers grants full ownership and significantly lowers costs, but leaves complex security configuration entirely up to the developer. It is incredibly easy to accidentally expose default database ports, run containers with dangerous root privileges, or leave SSH authentication misconfigured.

The Solution

InfraPilot integrates automated security intelligence directly into the build and deploy workflow. It simplifies and secures infrastructure management in three ways:

  • Automatic Security Auditing: Developers connect a GitHub repository, and before any code is built or run, the system scans for leaked secrets (AWS, OpenAI, Stripe, Slack keys), committed env files, and Dockerfile misconfigurations. It computes a Security Score (0-100) to give immediate visibility into the build risk.
  • Non-Root Isolation by Default: It generates secure Docker templates that run applications under unprivileged system accounts (such as a restricted node user or an appuser group), mitigating the risk of host-takeover exploits.
  • Full Asset Cleanups: When deleting a deployment, the system leaves no trace behind. It stops and removes the container, deletes the dynamic Caddy proxy routes, wipes the built Docker image, and deletes the local repository files from the host to prevent VPS disk bloat.

By auditing configurations and exposing vulnerabilities before the code goes live, InfraPilot makes deploying to personal servers as simple as a PaaS, and far safer than manual scripting.

Challenges we ran into

While building InfraPilot, we encountered several challenging technical hurdles across container orchestration, reverse proxy management, and pipeline state synchronization:

1. Docker-in-Docker Constraints for User Builds

Initially, we attempted to package the entire backend system inside a Docker container. However, because InfraPilot builds and runs user application containers dynamically, this required a complex Docker-in-Docker (DinD) or socket-sharing setup. This introduced permission issues, slow build times, and instability on low-resource ARM64 VPS instances.

  • The Solution: We re-architected the platform so that the FastAPI backend runs natively on the host VPS using PM2. This allowed the backend direct, native access to the host's Docker CLI and host resources, while keeping postgres, Caddy, and the Next.js frontend isolated in their own docker containers.

2. Caddy Reverse Proxy Dynamic Routing Conflicts

We integrated Caddy's admin API to dynamically add and remove subdomain reverse proxy routes as containers spun up and down. However, we ran into configuration conflicts when Caddy refused to permit duplicate route definitions or overlapping port 80/443 listener scopes across separate server blocks.

  • The Solution: We shifted from creating independent servers to querying and appending route rules directly into Caddy's default HTTP server router instance (srv0). We also built database-backed checks to verify that subdomains are clean and fully removed before applying new routes.

3. Subdomain Unique Database Collisions

Because the database model enforces a unique constraint on subdomains, assigning the subdomain to the project name when the deployment was first queued caused immediate database blockages when running concurrent builds or redeploying the same project.

  • The Solution: We implemented a two-step subdomain mapping system. When a build is initially queued, it receives a temporary, guaranteed-unique ID. Once the repository is cloned and the pipeline extracts the commit SHA, the system updates the subdomain to the final [project-name]-[5-letter-commit-sha] format, handling collisions by appending unique incrementing suffixes.

Discussion

Builders also viewed

See more projects on Devfolio