Site distribution
The CloudFront distribution and private S3 bucket that serve hirekylebuhrmann.com. One template builds the same stack in Sandbox and Dev, on CloudFront's default domain.
In SandboxCloudFront's default domain and certificate, with a noindex header. Every site build lands here first. The same template builds it in Dev and Prod.
Flow
A request reaches the bucket only through CloudFront, and only the site pipeline writes to it.
Distribution
| Setting | Value |
|---|---|
| Protocols | HTTP/2 and HTTP/3, IPv6; HTTP redirects to HTTPS; GET and HEAD only |
| Certificate | ACM, DNS-validated in the hkb-dns zone; sni-only, minimum TLSv1.2_2025. Sandbox and Dev use CloudFront's default certificate |
| Edge locations | PriceClass_100: North America and Europe |
| Caching | The managed CachingOptimized policy, compression on |
| Origin | The site bucket, through an origin access control that signs every request with SigV4 |
| Viewer-request function | cloudfront-js-2.0: /x/ serves /x/index.html, /x redirects to /x/, and any other host name redirects to the domain |
| Errors | 403 and 404 from the origin serve /404.html with status 404, cached 60 seconds. Without list access, S3 answers 403 for a missing key |
| Switch | The SiteOnline parameter: false disables the distribution and keeps the bucket, key and DNS zone |
| Web ACL | None. An accepted Security Hub finding: a static site with GET and HEAD only, behind a cost cutoff |
Response headers
One response headers policy in every environment, overriding anything the origin sends.
| Header | Value |
|---|---|
| Strict-Transport-Security | max-age=63072000; includeSubDomains |
| Content-Security-Policy | default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'none'; connect-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none' |
| X-Content-Type-Options | nosniff |
| X-Frame-Options | DENY |
| Referrer-Policy | strict-origin-when-cross-origin |
| Permissions-Policy | camera=(), microphone=(), geolocation=(), interest-cohort=() |
| Cross-Origin-Opener-Policy | same-origin |
| Cache-Control | no-cache |
| X-Robots-Tag | noindex (Sandbox and Dev only) |
Bucket
| Setting | Value |
|---|---|
| Name | hkb-site-<account>, us-east-1 |
| Public access | All four Block Public Access settings on; ACLs off (bucket owner enforced) |
| Encryption | SSE-KMS under alias/hkb-site, rotation on, with an S3 Bucket Key. The key lets CloudFront decrypt only for this account's distributions |
| Bucket policy | TLS only; s3:GetObject only by CloudFront, for this distribution |
| Versions | Versioned; older versions expire after 30 days, incomplete uploads after 7 |
| Writers | Only the site pipeline: hkb-pipeline-cfn-site deploys the stack and hkb-pipeline-site-sync uploads the files, after the same build has deployed to Sandbox and Dev |
Sources
Page information
- Owner
- Platform Engineering
- Status
- current Current: generated from the templates and records in the repository at this build.
- Generated from
workloads/hkb-site.yaml,workloads/hkb-dns.yaml- Linked from
- Sandbox