Pushing code to production should be effortless, but in a self-hosted multi-service environment, letting arbitrary user code execute without safeguards is a security disaster waiting to happen. For Nexus-Deploy, we built a modern push-to-deploy platform with rock-solid security invariants from day one.
The Security Problem with Traditional PaaS
Typical self-hosted PaaS solutions run application containers as root or mount the host’s /var/run/docker.sock directly into build containers. Any privilege escalation or container breakout immediately grants root access to the host machine. Furthermore, containers running in standard bridge networks can easily scan and probe internal loopback services (127.0.0.1:5432, internal Redis, etcd) or reach the local private network (LAN).
Nexus-Deploy solves both vectors cleanly:
- Rootless Docker Daemon: Nexus-Deploy builds and runs containers entirely inside a dedicated unprivileged user namespace (
nexus-deployuser). Even in the event of a theoretical container breakout, the attacker lands as an unprivileged user with UID > 100,000 on the host. - Loopback & LAN Egress Isolation: Built-in network restrictions ensure container workloads cannot reach host loopback services or the internal LAN, while public DNS resolution and WAN traffic continue to operate smoothly.
- Dedicated Size-Capped Filesystem: Deploy storage is mounted onto a dedicated loopback image with a hard quota, guaranteeing that runaway builds or logs can never starve the host system’s disk space.
graph TD
Repo["Git Push / Repository"] --> Builder["Railpack Multi-Language Builder"]
Builder --> OCI["Hardened OCI Image"]
OCI --> Sandbox["Rootless Docker Sandbox<br/>(UID 100000+, No Root, No Caps)"]
Sandbox --> Net["Network Egress Filter"]
Net -.->|BLOCKED| HostLoopback["Host Loopback & LAN (127.0.0.1, 192.168.x)"]
Net -->|ALLOWED| WAN["Public Internet (HTTPS/DNS)"]
Sandbox --> Proxy["Nexus Proxy Plane (:8080 / Caddy)"]
Proxy --> Public["deploy.tnhc.dev & *.tnhc.dev"]
Zero-Config Builds with Railpack
Rather than forcing developers to write boilerplate Dockerfiles for every microservice, Nexus-Deploy integrates Railpack. It analyzes the repository’s manifest (package.json, Cargo.toml, requirements.txt, go.mod), detects runtimes, compiles binaries in isolated layers, and outputs optimized, lean production images.
Live in the Ecosystem
Nexus-Deploy is now live at deploy.tnhc.dev and integrated with Nexus-Cloud for automatic route registration and service heartbeat synchronization.