InfraPilot

Own Your Infrastructure. Verify Its Security.

Visit Repo
InfraPilot banner

About

## The problem it 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

  • 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.
  • 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.

Screenshots

InfraPilot screenshot 1

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Quark

At Quark, we revolutionize asset management with omnichain messaging. QuarkVaults lets users deposit assets into managed vaults, each secured by policy-driven smart contracts, ensuring a secure and compliant experience across chains.

ETHVercel

Deploy sovereign applications with ZK-powered location validation, earning Proof of Deployment tokens (ERC-5192). Build your on-chain deployment reputation while maintaining granular access control in a collaborative ecosystem.

DevDeploy

Deploy frontend & backend on-chain in minutes, costless, with seamless testing and iteration.