latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

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 DevCloudFront's default domain and certificate, with a noindex header. Each site build reaches Dev after Sandbox and before Prod. The same template builds it in Sandbox and Prod.

Flow

Site distribution flowA visitor's browser resolves hirekylebuhrmann.com in Route 53 to the CloudFront distribution in the Prod account, which serves HTTPS with an ACM certificate, minimum TLSv1.2. A viewer-request function maps each path to its file, and a response headers policy adds HSTS, CSP and the other headers. CloudFront reads the private site bucket through an origin access control, which signs each request, and the bucket's objects are encrypted with the site's KMS key. The site pipeline in Shared Services assumes two roles in Prod: one deploys the stack, the other uploads the files.AWS CloudProd · hkb-prodShared ServicesAttached to the distributionVisitorbrowserRoute 53alias recordCloudFrontHTTP/2 and 3, NA and EuropeViewer-request functionResponse headers policyACM certificate, TLSv1.2Site bucketprivate, versionedSite keyalias/hkb-sitehkb-pipeline-cfn-sitedeploys the stackhkb-pipeline-site-syncuploads the filesSite pipelinehkb-pipeline-siteMissing pages: 403 and 404 from the bucket serve /404.html with a 404.The same build deploys to Sandbox and Dev before Prod.Legend1Request or run orderRequest / dataDeploy (assumes a role)Attached / governsBlueOpens its pageDNS1HTTPS2GetObject, signed (OAC)3encryptsassume roleassume roleuploads
Site distribution flowOpen full sizeClose

A request reaches the bucket only through CloudFront, and only the site pipeline writes to it.

Distribution

SettingValue
ProtocolsHTTP/2 and HTTP/3, IPv6; HTTP redirects to HTTPS; GET and HEAD only
CertificateACM, DNS-validated in the hkb-dns zone; sni-only, minimum TLSv1.2_2025. Sandbox and Dev use CloudFront's default certificate
Edge locationsPriceClass_100: North America and Europe
CachingThe managed CachingOptimized policy, compression on
OriginThe site bucket, through an origin access control that signs every request with SigV4
Viewer-request functioncloudfront-js-2.0: /x/ serves /x/index.html, /x redirects to /x/, and any other host name redirects to the domain
Errors403 and 404 from the origin serve /404.html with status 404, cached 60 seconds. Without list access, S3 answers 403 for a missing key
SwitchThe SiteOnline parameter: false disables the distribution and keeps the bucket, key and DNS zone
Web ACLNone. 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.

HeaderValue
Strict-Transport-Securitymax-age=63072000; includeSubDomains
Content-Security-Policydefault-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-Optionsnosniff
X-Frame-OptionsDENY
Referrer-Policystrict-origin-when-cross-origin
Permissions-Policycamera=(), microphone=(), geolocation=(), interest-cohort=()
Cross-Origin-Opener-Policysame-origin
Cache-Controlno-cache
X-Robots-Tagnoindex (Sandbox and Dev only)

Bucket

SettingValue
Namehkb-site-<account>, us-east-1
Public accessAll four Block Public Access settings on; ACLs off (bucket owner enforced)
EncryptionSSE-KMS under alias/hkb-site, rotation on, with an S3 Bucket Key. The key lets CloudFront decrypt only for this account's distributions
Bucket policyTLS only; s3:GetObject only by CloudFront, for this distribution
VersionsVersioned; older versions expire after 30 days, incomplete uploads after 7
WritersOnly 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

  • Templates and scripts: workloads/hkb-site.yaml, workloads/hkb-dns.yaml
  • Decisions: DQ-27, DQ-53, DQ-68, DQ-124

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
Dev