Skip to content

Serve chkbuild logs through logs.rubyci.org - #58

Merged
hsbt merged 2 commits into
masterfrom
vault-rubyci-fastly
Jul 29, 2026
Merged

Serve chkbuild logs through logs.rubyci.org#58
hsbt merged 2 commits into
masterfrom
vault-rubyci-fastly

Conversation

@hsbt

@hsbt hsbt commented Jul 29, 2026

Copy link
Copy Markdown
Member

rubyci.org links build logs straight at the public rubyci S3 bucket, so every hit is a billed GET plus egress and repeated reads during triage get no caching. This puts a Fastly service in front of the bucket at logs.rubyci.org.

Timestamped keys under /log/ are immutable and get a one year TTL. Keys that chkbuild overwrites, such as recent.html, get 300s. The service shields at tyo-tokyo-jp to match the bucket region, enables HTTP/3, serves stale on origin error, forces TLS, requires authentication for PURGE, and ships access logs to Datadog.

The service, its TLS subscription and both CNAME records are already applied, and terraform plan and dnscontrol preview are clean. Switching the link generation over happens in ruby/rubyci. Existing S3 URLs keep working, so that can land separately.

hsbt and others added 2 commits July 29, 2026 21:07
rubyci.org currently links to build logs on the public rubyci S3
bucket directly, so every fetch including crawler traffic hits S3
request and egress billing. Fronting the bucket with Fastly caches
the immutable timestamped logs for a year, keeps overwritten keys
like cur/ on a short TTL, and gives us edge logging and UA control.
DNS records are staged as a TODO because certificate issuance needs
the ACME challenge from terraform output first.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vault implied secret storage; these are public read-only build logs, so
logs says what it serves.

The TLS subscription needs an explicit configuration_id because the
account has no default configuration. Picking "HTTP/3 & TLS v1.3" keeps
the negotiated protocols in line with http3 on the service, and it is
what decides the m.sni.global.fastly.net CNAME target.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit e1542cb into master Jul 29, 2026
1 check passed
@hsbt
hsbt deleted the vault-rubyci-fastly branch July 29, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant