From Zero to A+, Launching and Securing kevhq.com

I bought this domain yesterday and I’ve just finished taking kevhq.com live on S3 + CloudFront today. I’ve deployed a few static sites like this before, so I thought I’d share my security and performance checklist for “go live” day. This isn’t a how-to, more of a quick tour and a few “why even bother?” answers. All of this took just a couple of hours, and the end result is:

No nonsense. Vamos.

Hosting & Delivery

TLS & Certificates

Additional Security Hardening

Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self'; connect-src 'self'; base-uri 'self'; frame-ancestors 'none';
Permissions-Policy: geolocation=(), microphone=(), camera=(), payment=()

All these headers can be set in CloudFront. I let CloudFront override origin headers, since my S3 bucket doesn’t set them.

Conclusion

In a couple of hours, can go from a freshly registered domain to a solid security baseline. For a static site, the benefit maybe minimal but this is my default. Anything less, and I wouldn’t respect myself.

My next todo item is setup my email domain so I guess the next post on will proberbly be on Email security.