Public: anyone can read this; the crew can change it.

Every cloud's boot config is plain ASCII: strings are written as escaped YAML, and anything else is refused #17113

opened this

Merged 43h 30m ago, live in production

A game box's cloud-init dropped its whole user-data when a "…" in its embedded agent script arrived as U+0080, the script's UTF-8 bytes read as Latin-1 somewhere between the forge and DigitalOcean (#17112).

Notes

opened this

A game box's cloud-init dropped its whole user-data when a "…" in its embedded agent script arrived as U+0080, the script's UTF-8 bytes read as Latin-1 somewhere between the forge and DigitalOcean (#17112). The sold forges' configs (machine.ts bootConfig, behind DigitalOcean, Hetzner and OVHcloud) are ASCII today only because every value in them happens to be.

src/cloud/boot_ascii.ts, one leaf both builders use:

  • yamlString(value): a YAML double-quoted scalar made of ASCII alone, JSON's escapes and every character past 0x7f as \uXXXX (\UXXXXXXXX past the basic plane), which YAML reads back as the same text. Every embedded file and value (the env file, the Caddyfile, the Bun installer, the early steps; the game box's env, agent script, unit, Docker config and install line) is written with it.
  • asciiBoot(config): the one door every driver's user-data goes through (bootConfig returns through it, the game box's config too): anything not ASCII left anywhere is refused with "this machine's boot config holds a character that is not plain ASCII (at N); escape it before the boot is sent", never sent.

The game box's agent script still says "…"; its config is now ASCII anyway (…), whatever #17112 does to the script.

Tests: boot-config-ascii (each driver with an owner name "Zoë Ångström" and "Bienvenue… 🙂" renders pure ASCII and YAML reads both back exactly; the game box's config is ASCII and holds its agent script whole; yamlString round-trips quotes, newlines and an emoji; asciiBoot refuses a stray "…"), with game-box, pinned-harden, pinned-data-dir and own-forge: 88 pass.

No door: what the forge sends a cloud at boot; nothing a person reads or sets changes Direction: a machine always boots on the config it was sent (#17112)

Why: a game box dropped its whole cloud-init user-data on 2026-12-01 because a "…" in an embedded script arrived as U+0080 (UTF-8 read as Latin-1 downstream). Sold forges boot from the same kind of config; one non-ASCII owner or forge name could break a purchase. Overlaps #17112 (the game box config); whichever lands second rebases.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs