jackshields.pro / colophon
A portfolio that security-tests itself.
Every change runs through type checks, accessibility checks and an OWASP ZAP scan before it can ship. Here's what's in place and why.
Decisions that shrink the surface.
- No database, no auth, no CMS
- Content lives in typed TypeScript files. Leaving out a backend removes most of the attack surface.
- Per-request CSP nonce
- A proxy issues a fresh random nonce for every request. Scripts only run if they carry it, with no unsafe-inline and no unsafe-eval.
- Trusted Types: not yet
- I tried enforcing it, but the Next.js 16 runtime writes raw strings to innerHTML and breaks hydration. A pass-through policy would only fake the control, so it stays off and is documented here until the framework supports it.
- Fetch Metadata isolation
- Cross-site requests that are not plain page visits get a 403, using the Sec-Fetch-* headers browsers attach. That stops CSRF-style requests and embedding from other sites.
- Zero third-party origins
- Fonts are self-hosted at build time and analytics is first-party and cookieless, so the policy allows nothing off-site.
- Near-zero client JS
- Accordions use native <details>, scroll reveals use CSS scroll-driven animations, and only the split hero hydrates.
- Minimal dependencies
- Four runtime packages, exact-pinned, with installs locked by npm ci.
What every response carries.
Content-Security-Policy
default-src 'self';
script-src 'self' 'nonce-{per-request}' 'strict-dynamic';
style-src 'self' 'nonce-{per-request}';
img-src 'self' data:;
font-src 'self';
connect-src 'self';
object-src 'none';
base-uri 'none';
form-action 'self';
frame-ancestors 'none';
manifest-src 'self';
worker-src 'none';
upgrade-insecure-requestsOther security headers
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload X-Content-Type-Options: nosniff X-Frame-Options: DENY Referrer-Policy: strict-origin-when-cross-origin Cross-Origin-Opener-Policy: same-origin Cross-Origin-Resource-Policy: same-origin Cross-Origin-Embedder-Policy: require-corp X-DNS-Prefetch-Control: off Permissions-Policy: accelerometer=(), autoplay=(), browsing-topics=(), camera=(), display-capture=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), publickey-credentials-get=(), usb=(), interest-cohort=()
This page renders the live config from the same source files the server uses, so it can't drift from reality. You can check it with curl -sI https://jackshields.pro.
Nothing merges until this passes.
- typecheckTypeScript in strict mode
- lintESLint with the Next.js rules
- unitVitest: CSP builder, header config and content integrity
- e2ePlaywright: every route renders and every security header is present and correct
- a11yaxe-core on every route, zero violations allowed
- auditnpm audit, which fails on high-severity advisories
- codeqlGitHub CodeQL static analysis
- secretsgitleaks scan of the full history
- dastOWASP ZAP baseline scan against a production build, warnings fail the build
GitHub Actions are pinned to full commit SHAs, Renovate keeps dependencies current, and the source is public on GitHub.
Found something? Tell me.
Good-faith research is welcome. Please don't run denial-of-service or automated volume testing, and report findings to jackcyberpro30@gmail.com. Valid reports get credited here with your permission.
The machine-readable version is at /.well-known/security.txt (RFC 9116).