Skip to content

console: sync to fold-console@cdd97bafb725 — auth fix, current wordmark - #40

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

blakebauman merged 1 commit into
mainfrom
console-sync-polish

Conversation

@blakebauman

Copy link
Copy Markdown
Member

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

Upstream: fold-run/fold-console#4 and #5.

⚠️ One of these fixes a bug that is live in shipped binaries

The Bearer token field did not work. preact/compat aliases React's
onChange onto the input event, so declaring both onInput and onChange left
one handler clobbering the other. Keystrokes were swallowed and a pasted token
authenticated nothing:

value after fill: ""                    # the input rejected its own keystrokes
Authorization:    (absent, every time)

Against a gateway with auth enabled — the only configuration where that
field is even rendered — the console is unusable.
Every static check upstream
passed while that was true; it took an end-to-end test to find it, on the first
run of their new suite.

That alone is the argument for merging this rather than waiting for Monday's
console-sync.

The wordmark was the pre-v1.9 mark

Operators have been looking at the stroked geometric lockup that the 2026-08-10
identity revision replaced. It is now the outlined Black Ops One derivative,
matching fold.run. Upstream also verified the colour tokens against
DESIGN.json in the same pass; those had not drifted.

Two consequences visible in this diff:

  • gateway/console/fonts/OFL.txt now 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 — the licence bundle already existed, so
    MANIFEST is untouched.
  • index.html carries a favicon as an inline data: URI. img-src 'self' data: already admits it, and doing it this way avoids adding a file to the
    embedded set for 300 bytes.

Also in this bump

A polish pass: a freshness indicator in the top bar, loading skeletons, a skip
link, route announcements for screen readers, pointer targets ≥44px on the
controls too small to hit, and three layout bugs that only a screenshot would
have caught (a bare header selector indenting every page title by 24px, a grid
absorbing flex slack into a 140px hole on narrow screens, and a wire log that
had stopped following its own tail).

gateway/console grows 241,487 → 247,933 bytes, still well 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 any drift between source and
dist/, so the bytes here are entailed by it.

Worth knowing for a supply-chain read: upstream's suite now includes a test 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 as text and assert no element or side effect results.

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.5s
  • Embedded file set unchanged; all four font files still distinct

🤖 Generated with Claude Code

Two upstream merges. One of them fixes a bug that is live in shipped binaries.

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 on — the only configuration
where that field is shown — the console was unusable, and every static check
upstream passed while it was. Their new end-to-end suite caught it on its first
run.

THE WORDMARK WAS THE PRE-v1.9 MARK. Operators have been looking at the stroked
geometric lockup that fold's 2026-08-10 identity revision replaced. It is now
the outlined Black Ops One derivative, matching fold.run. Two consequences
visible in this diff: gateway/console/OFL.txt names Black Ops One alongside the
two text faces, because outlines are a derivative of the Font Software even
where no font binary ships; and index.html carries a favicon as an inline
data: URI, which img-src 'self' data: already admits and which needs no new
file in MANIFEST.

Upstream also landed a polish pass: a freshness indicator, loading skeletons, a
skip link, route announcements, larger pointer targets, and three layout bugs
that only a screenshot would have caught. gateway/console grows 241487 ->
247933 bytes, still well inside upstream's 320 KiB budget.

The embedded file set is unchanged, so MANIFEST and introspection_test.go need
no edit.

Reviewing: app.js is minified bundle output, so read the upstream diff on src/
rather than this one. Upstream CI rebuilds and fails on drift between source
and dist/, and its suite now includes a test that walks the whole app 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 eb727e7 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. This is the bump where that
matters most: it is the first to add new executable surface rather than swap
bytes.

What this shipped, in order of consequence

A fix for a bug that was live in released binaries. preact/compat aliases
React's onChange onto the input event; the console declared both onInput and
onChange on the token field, so one handler clobbered the other, keystrokes
were swallowed, and a pasted token authenticated nothing. With auth enabled —
the only configuration where the field renders — the console could not
authenticate. Established by observing an empty value after fill() and an
absent Authorization header across every subsequent /api/federation request,
then both correct after the fix.

A new wordmark, outlined glyph paths derived from Black Ops One (SIL OFL
1.1). gateway/console/fonts/OFL.txt gained a Black Ops One entry: outlines are
a derivative of the Font Software even where no font binary ships. No new file,
so MANIFEST was untouched.

A favicon as an inline data: URI in index.html. Admitted by
img-src 'self' data: in consoleCSP; chosen over a file specifically to avoid
a MANIFEST change.

Verified

  • make console-check, go build ./..., go test ./gateway (full package);
    CI green on all seven jobs.
  • Embedded file set unchanged.
  • Upstream's suite includes a test that walks the whole application under
    this repo's exact CSP — their preview server replays consoleCSP's base
    policy byte-for-byte — asserting no securitypolicyviolation fires. That is
    the check most relevant to this repo's threat model, and it covers the new
    favicon and the new inline SVG paths.
  • Upstream also asserts that hostile tool names, upstream errors, labels and
    tool results render as text: no element parsed out of the payload, no side
    effect. Those strings arrive from federated servers this gateway does not
    control and render same-origin next to a Bearer token in page memory.

Not reviewed

The minified app.js was not read. The new wordmark path data was not
independently verified against Black Ops One's outlines; it was copied from
fold.run's lib/wordmark.ts, which is also unaudited from here. The
licence assessment above is a reading of OFL 1.1, not legal advice.

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