Hardened Portfolio Deployment
The portfolio is intentionally simple and runs as a static site in an unprivileged container behind Traefik, with TLS, restrictive browser security policies, self-hosted assets, and health checks.
Deployment model
The site is built into an unprivileged Nginx image and runs in a read-only container. Traefik handles public routing and TLS over the internal Docker network. Keeping the application static keeps the runtime small and dependency-light.
- Non-root. Based on the unprivileged nginx image, so the server process has no root privileges inside the container.
- Read-only filesystem. Only a small tmpfs is writable, for nginx's runtime files.
- No capabilities. All Linux capabilities are dropped and privilege escalation is disabled.
- Only the site is copied in. Build tooling, lint configuration and deploy metadata never reach the image.
- No published host port. The container is reachable only through the reverse proxy, which handles TLS.
Security choices
Responses carry restrictive browser security policies, while the site avoids third-party runtime scripts and keeps the served asset set deliberately small.
- Content-Security-Policy allows scripts, styles, fonts and images only from this origin. There are no inline scripts, so no
unsafe-inline. - Strict-Transport-Security keeps browsers on HTTPS.
- X-Content-Type-Options, Referrer-Policy, Permissions-Policy and Cross-Origin-Opener-Policy close off MIME sniffing, referrer leakage, unused device APIs and cross-window access.
- The Server header doesn't include a version number.
The home page checks these headers live: it re-requests itself when it loads and displays what the server actually returned.
What this project demonstrates
Least-privilege execution · Internal reverse-proxy routing · TLS · Restrictive browser security policies · Self-hosted assets · Repeatable builds · Health checks
Check it yourself
# fetch only the headers curl -sI https://web.adamschussel.com/ # dev files should not be served curl -s -o /dev/null -w "%{http_code}\n" https://web.adamschussel.com/package.json