Skip to content

Reach bazelflare through its edge-TLS front door - #8693

Merged
danlapid merged 1 commit into
mainfrom
dlapid/bazelflare-edge-tls
Nov 20, 2026
Merged

danlapid merged 1 commit into
mainfrom
dlapid/bazelflare-edge-tls

Conversation

@danlapid

@danlapid danlapid commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

bazelflare now has two front doors on the same Worker:

  • bazelflare.workers-runtime-playground.cloudflareworkers.com:8980: Spectrum tls: off, the Worker terminates TLS with the private CA that clients pin (build/bazelflare/ca.pem). Unchanged, for clients that haven't moved.
  • remote.workers-runtime-playground.cloudflareworkers.com:8980: Spectrum terminates TLS at the edge with ALPN h2 (edge_alpn_protocols), presenting the zone's publicly trusted certificate.

The Worker tells them apart by the connection's first byte (a TLS ClientHello vs the h2c preface). This moves workerd to the second one and drops the pin, so it can merge any time without breaking anyone. build/bazelflare/ca.pem stays until the old app retires: edgeworker's v8.py passes it to siso as RBE_tls_ca_cert.

🤖 Generated with Claude Code

@danlapid
danlapid force-pushed the dlapid/bazelflare-edge-tls branch from aa46dc8 to 946d0b5 Compare November 19, 2026 21:40
@danlapid danlapid changed the title Trust bazelflare's edge certificate instead of a private CA Reach bazelflare through its edge-TLS front door Nov 19, 2026
bazelflare has a second Spectrum app, remote.workers-runtime-playground
.cloudflareworkers.com, which terminates TLS at Cloudflare's edge with
ALPN h2 (edge_alpn_protocols) and presents the zone's publicly trusted
certificate, so Bazel's default trust store verifies it and the private
CA pin goes away. The old hostname keeps serving the pinned private CA
for clients that haven't moved yet, and build/bazelflare/ca.pem stays
for them: edgeworker's v8.py hands it to siso.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danlapid
danlapid force-pushed the dlapid/bazelflare-edge-tls branch from 946d0b5 to 47ae01e Compare November 19, 2026 21:41
@danlapid
danlapid marked this pull request as ready for review November 19, 2026 23:16
@danlapid
danlapid requested review from a team as code owners November 19, 2026 23:16

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — Small, consistent .bazelrc change with no issues found.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code reviewer: ✅ LGTM

The remote executor host and credential helper host key match, and no stale references to the old hostname or the removed TLS certificate flag remain.


Reviewed commit: 47ae01e0

@danlapid
danlapid merged commit 59a4c4a into main Nov 20, 2026
44 of 53 checks passed
@danlapid
danlapid deleted the dlapid/bazelflare-edge-tls branch November 20, 2026 00:03
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.

3 participants