Skip to content

console: sync to fold-console@0d4fee98dbdd — a drawing of the federation - #41

Merged
blakebauman merged 1 commit into
mainfrom
console-sync-topology
Aug 11, 2026
Merged

blakebauman merged 1 commit into
mainfrom
console-sync-topology

Conversation

@blakebauman

Copy link
Copy Markdown
Member

Pin bump only: f1d5aad → 0d4fee9. No change to scripts/sync-console.sh's
logic, MANIFEST, or any Go code.

This catches the console up across three upstream merges
(fold-run/fold-console#4, #5, #6). One of them fixes a bug that is live in
shipped binaries today.

The Bearer token field did not work

preact/compat aliases React's onChange onto the input event, so the console
declaring both onInput and onChange left one handler clobbering the other.
Keystrokes were swallowed and a pasted token authenticated nothing. Against a
gateway with auth enabled — the only configuration where that field is
rendered — the console was unusable.
Every static check upstream passed while
that was true; their new end-to-end suite caught it on its first run.

New: a drawing of the federation

/console/#/upstreams?view=map renders the federation in this project's own
fold-line vocabulary (DESIGN.md §5), generated from /api/federation rather
than authored: dashed fold-lines, nodes on Rack with Trace strokes, the gateway
stroked in Live and carrying the wordmark, notch marks at the governed
boundary, and a grain arrow on each route that is carrying.

      ┌────────┐ ═══════▶ │ github__*    │  12 ms
  ║│  │  fold  │ ╌╌╌╌╌╌╌▶ │ payments__*  │  unreachable
  ║│  │  /mcp  │ ═══════▶ │ jobs__*      │  41 ms
      └────────┘
     deny · 3 rules

It is the first surface anywhere that shows an operator the shape of their own
federation: one endpoint in front of N servers, with every route crossing the
same auth/policy/audit seam.

Also in this bump

  • The current wordmark. The console had been shipping the stroked
    geometric mark that the 2026-08-10 identity revision replaced.
  • A polish pass: freshness indicator, loading skeletons, a skip link, route
    announcements, larger pointer targets, and three layout bugs only a
    screenshot would have caught.
  • OFL.txt names Black Ops One alongside Plex and Geist — outlines are a
    derivative of the Font Software even where no font binary ships. No new file.
  • A favicon as an inline data: URI, which img-src 'self' data: already
    admits and which needs no addition to MANIFEST.

gateway/console totals 252,505 bytes, inside upstream's 320 KiB budget.

Reviewing this

app.js is minified bundle output. Read the upstream diff on src/, not
this one. Upstream CI rebuilds and fails on drift between source and dist/.

For a supply-chain read: their suite now runs 61 end-to-end tests, including
one that walks the whole application under this repo's exact CSP (their
preview server replays consoleCSP's base policy byte-for-byte) and asserts no
securitypolicyviolation fires, plus tests that render hostile tool names,
upstream errors and labels and assert they produce no element and no side
effect.

Verification

  • ./scripts/sync-console.sh — vendors 8 files, writes the pin
  • make console-check — gateway/console matches its pin
  • go build ./...
  • go test ./gateway — full package, ok in 8.6s
  • Embedded file set unchanged; index.html, fonts and OFL.txt untouched by
    this bump

🤖 Generated with Claude Code

Adds /console/#/upstreams?view=map: the federation drawn in this project's own
fold-line vocabulary, generated from /api/federation rather than authored.
Dashed fold-lines, nodes on Rack with Trace strokes, the gateway stroked in
Live and carrying the wordmark, notch marks at the governed boundary, and a
grain arrow on each route that is carrying.

It is the first surface anywhere that shows an operator the shape of their own
federation: one endpoint in front of N servers, with every route crossing the
same auth/policy/audit seam. gateway/console grows 247933 -> 252505 bytes.

Only app.js and style.css move. index.html, the fonts and OFL.txt are
unchanged, and the embedded file set is the same, so MANIFEST and
introspection_test.go need no edit.

Reviewing: app.js is minified bundle output; read the upstream diff on src/.
Upstream CI rebuilds and fails on drift between source and dist/, and its suite
now runs 61 end-to-end tests, including one that walks the whole application
under this repo's exact CSP and asserts no violation fires.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@blakebauman
blakebauman merged commit 0f1f063 into main Aug 11, 2026
7 checks passed
@blakebauman

Copy link
Copy Markdown
Member Author

Retrospective verification record

This is not an independent review. Written with Claude Code in the same
session that authored the change, and filed because
.github/workflows/console-sync.yml calls for a human plus a security-auditor
pass on console bumps and neither is recorded here.

What moved

Only gateway/console/app.js and style.css. index.html, the four font
subsets and OFL.txt are byte-identical to the previous pin, and the embedded
file set is unchanged, so MANIFEST and gateway/introspection_test.go
needed no edit.

This bump spans three upstream merges. The one with operational consequence is
the Bearer-token fix described on #40; the visible addition is a generated
topology drawing at /console/#/upstreams?view=map.

Verified

  • ./scripts/sync-console.sh at the pinned commit; make console-check
    reports gateway/console matches its pin.
  • go build ./..., go test ./gateway (full package, 8.6s); CI green on all
    seven jobs, including console and conformance.
  • 61 upstream end-to-end tests pass, including the CSP walk against this
    repo's exact policy and the untrusted-string tests.

Worth a second pair of eyes

The topology view is generated SVG built from /api/federation data, which
is the first drawing in this project not hand-authored. Two properties of that
were checked upstream but are worth an auditor's attention here:

  1. Upstream ids, namespaces and error strings are interpolated into SVG text
    nodes and into an aria-label. They are rendered as text children, and
    upstream tests assert a hostile id produces no element and no side effect —
    but SVG is a different sink from HTML and this is its first use.
  2. Each node is an <a href="#/upstreams/…"> built with
    encodeURIComponent. The href is fragment-only, so it cannot leave the
    origin, but the encoding is the only thing standing between an upstream id
    and the router's path parser.

Not reviewed

The minified app.js was not read. This record relies on upstream CI rebuilding
dist/ from src/ and failing on drift; that guarantee is unaudited from
here
, and it is the single assumption the whole vendoring arrangement rests
on.

@blakebauman
blakebauman deleted the console-sync-topology branch August 13, 2026 16:13
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