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

Post-quantum: the game agent's channel uses a hybrid key exchange #18074

opened this in answer to

Merged 10h 53m ago, live in production

scout/forge:scout/18032-post-quantum-the-game-agent-s-channel-us → main 0 commits fork 2 threads · 2 unresolved

  • Merged. scout/18032-post-quantum-the-game-agent-s-channel-us was merged into main as 2df3631.

Review

Sign in to review this change.
8 files changed +145 −6
docs/features/game-box.md +5 −1
@@ -13,7 +13,7 @@ experiment.
1313
1414 - **Plan one (agents):** `infra` with `{ action: "plan", want: { game: true, where: "digitalocean/main@digitalocean:nyc3:s-4vcpu-8gb", repo: "you/mc-network", name?: "mc", host?: "mc.trevato.dev" } }`, then `apply` its id. The plan says "Start a 4 vCPU, 8 GB game box in New York running you/mc-network's compose file" and waits for the address and the DNS record, not for an https answer. The web and terminal doors are `/games` and the Games screen. `repo` is always named. One box a compose file: a second box on a file another box runs is refused, because a change to one would change both.
1515 - **The boot config's size:** a cloud takes only so much (DigitalOcean 64 KiB, Hetzner 32 KiB; OVHcloud names no limit, so its own error is shown). The plan, a deploy, a restore, an update, a rollback and a new claim link measure the real one first and refuse one that is over, in a sentence with the size and the limit, before anything is made or deleted (`src/cloud/boot_size.ts`).
16 - **The machine:** Ubuntu with Docker and its compose plugin (Ubuntu's packages, data on the box's volume), 4 GB of swap for the JVMs, and a firewall that lets in only 25565/tcp (Java) and 19132/udp (Bedrock, through Geyser on the proxy): no SSH, no web, no backend port. A cloud firewall the forge makes on request opens only the web ports, so a game box should not be given one. Password and root logins are off and updates are on, as on a forge.
16 - **The machine:** Ubuntu 26.04 (a game box needs a 26.04 image and fails when the provider lists none; OpenSSL 3.5 is what offers the post-quantum `X25519MLKEM768` group to the forge, #18032) with Docker and its compose plugin (Ubuntu's packages, data on the box's volume), 4 GB of swap for the JVMs, and a firewall that lets in only 25565/tcp (Java) and 19132/udp (Bedrock, through Geyser on the proxy): no SSH, no web, no backend port. A cloud firewall the forge makes on request opens only the web ports, so a game box should not be given one. Password and root logins are off and updates are on, as on a forge.
1717 - **The agent:** `/opt/forge-game/agent.sh` (`src/games/agent.sh`) under systemd (`forge-game-agent`). The boot config does not carry it, for size: `fetch.sh` gets it from the forge with the box's token and checks its sha256. The boot repeats that every 5 s without end, before it mounts the volume or installs Docker, and each failed try prints its HTTP code on the console. A box that was rebooted before its first sync: replace it; the volume is kept. Every 5 s it POSTs the services, their CPU and memory, new log lines, command results and the host to `/api/v1/games/agent/sync`, and does what the answer asks: writes `compose.yml` and the answer's `.env` beside it (only that name: `FORWARDING_SECRET` and an `RCON_<SERVICE>` for every service; any other name is ignored and logged, so nothing can land on the agent's own files), runs `docker compose -p game --project-directory /opt/forge-game up -d --remove-orphans` when they change, and runs queued commands (rcon through `docker compose exec -T <service> rcon-cli -- <text>`, by service name, or restart, stop, start, pull, recreate). Nothing dials in to the box; a failed sync is tried again in 5 s, forever.
1818 - **When it is up but not playing:** the boot installs Docker, its compose plugin and jq in `runcmd`, each apt call waiting up to ten minutes for the lock a first boot's unattended upgrade holds, three tries (a `packages:` list failed on that lock and left box `mc` with no jq). Its last step, `agent.sh --boot-report`, posts cloud-init's status to the sync once. An agent missing jq or docker still posts `{"agent":1,"boot":"missing jq: <cloud-init status>"}`, built by hand with curl, every 30 s until they are there. The forge keeps that word until a full sync clears it, and `/games` and the terminal's Games say "Box is up but missing jq: …".
1919 - **Never blind:** compose up, pull and the power verbs run in a background job queue, one at a time, output to `.up.log`; the agent keeps syncing every 5 s whatever runs, and a failed up is not retried for the same compose. Every sync carries `diag`, about 8 KB: the job (label, since, running, last exit) and the tail of `.up.log`, `docker ps -a` and `docker images` (bounded), the agent's and Docker's journal, cloud-init's status, `df -h /`, where Docker's data root is mounted and whether the volume is, and the versions. The whole diag runs within one deadline (8 s; every docker read in a sync is capped at 5 s), and over it the sync carries `{"note":"diag ran over 8 s"}`, so a docker that hangs never holds the sync. A job interrupted under the agent (a stale pid with no exit status, or a pid that is now another program's, by its command line) is queued again, never marked failed. The forge keeps the latest (16 KB at most). The box's owner (and forge admins) read it whole; anyone else who may see one of its services reads only what it is doing ("Applying since …", "N of M running"), naming no container, image, error or journal. For the owner, `/games/<box>` has a Box section of plain lines ("Pulling …", "compose up failed: <its last error line>", "Docker's data is on the root disk, not the volume", "The volume is not mounted at …") over a folded run log of the raw tails; the terminal's Games shows the top line (`b` there opens the box: the same plain lines and raw tails) and the MCP games tool's `list` up to three.
@@ -47,3 +47,7 @@ Code: `src/games/store.ts` (the `game_box` row and its token, the games store's)
4747 - **A join:** `docker events` (a container starting) is read by the agent, and in that reader: claiming stops (`.wake`), every `forge-job-*` cgroup is frozen at once (`cgroup.freeze`), and nothing waits on the job. While a step runs, a guard looks twice a second: still frozen and `MemAvailable` under the floor, or frozen for 5 minutes (`FORGE_GAME_LEND_FROZEN_S`), and the job is killed (`cgroup.kill`, then the unit stopped) and answered `interrupted`; a quiet box (90 s, memory above the floor) thaws it. `interrupted` puts the job back in the queue with no result: it is never red, and its claim is not counted, so it is never a try of that check's `MAX_CLAIMS` (the check's log says "stopped the job … not a try, nor a result"). The guard also renews the lease every 10 s, frozen or not.
4848 - **Not done, and not proved yet:** nothing here has run on a real box (it waits for the owner's go): tps and mspt of an awake server with and without a job, and the wake time on a join with one running, are still to be measured from `src/games/metrics.ts`'s samples. The cell was checked against stand-ins (`test/game-lend-box.test.ts`), not against a real kernel's bubblewrap.
4949 - **What an eviction keeps (#17579):** a stopped check loses at most the shard that was running. The agent reads the check's output for the shards that ended green (`── shard N/M done (exit 0`) and sends their test files with `interrupted` (`kept`). The forge puts them on the job's own env as `FORGE_CHECK_DONE` (a bounded set; a second stop adds to it), the job is queued again, and `scripts/test-shards.ts` leaves those files out of the next run ("FORGE_CHECK_DONE keeps N finished file(s)"). A frozen job that is not stopped needs none of this: it thaws when the box is quiet again within `FORGE_GAME_LEND_FROZEN_S` (300 s), else it is stopped and queued as interrupted.
50
51 ## Key exchange (#18032)
52
53 Every hour the agent reads the TLS group its HTTPS to the forge negotiates (`openssl s_client`), logs it (`TLS key exchange with the forge: X25519MLKEM768`) and sends it as `diag.tlsGroup`. The box's owner reads it under "Key exchange with the forge" on `/games/<box>` and in the terminal's box screen (`b` in Games): a hybrid with ML-KEM reads "(post-quantum hybrid)", any other group "(classical)". Nothing is refused for a classical group, and an older or unreadable box shows no line. New boxes only: the live `mc` box stays on 24.04 until it is moved on purpose.
src/cloud/droplet.ts +1 −1
@@ -69,7 +69,7 @@ export const digitalocean: Driver = {
6969 const key = await makeThrowawayKey(call, KEYS, p.name);
7070 try {
7171 const d = await call("POST", "/droplets", {
72 name: `forge-${p.name}`, region: p.datacenter, size: p.size, image: "ubuntu-24-04-x64",
72 name: `forge-${p.name}`, region: p.datacenter, size: p.size, image: p.boots !== "game" ? "ubuntu-24-04-x64" : "ubuntu-26-04-x64",
7373 volumes: [volume], user_data: bootConfig(p), tags: ["forge-pinned", forgeTag(p.name)], ssh_keys: [Number(key)],
7474 });
7575 return String(d.droplet?.id ?? "");
src/cloud/hetzner.ts +7 −1
@@ -18,6 +18,12 @@ import { bootConfig as boot, ipv4, numericId, paged, volumeName, type Booted, ty
1818
1919 const IMAGE = "ubuntu-24.04";
2020
21 /**
22 * A game box boots Ubuntu 26.04, whose OpenSSL 3.5 offers X25519MLKEM768 to the forge (#18032); a
23 * forge stays on 24.04.
24 */
25 const GAME_IMAGE = "ubuntu-26.04";
26
2127 /** Hetzner mounts an attached volume, when automount is asked for, under /mnt/HC_Volume_<id>. */
2228 const dataDir = (volume: string) => `/mnt/HC_Volume_${volume}`;
2329
@@ -64,7 +70,7 @@ export const hetzner: Driver = {
6470 const key = await makeThrowawayKey(call, KEYS, p.name);
6571 try {
6672 const s = await call("POST", "/servers", {
67 name: `forge-${p.name}`, server_type: p.size, location: p.datacenter, image: image === undefined ? IMAGE : numericId(image, "snapshot"),
73 name: `forge-${p.name}`, server_type: p.size, location: p.datacenter, image: image === undefined ? (p.boots !== "game" ? IMAGE : GAME_IMAGE) : numericId(image, "snapshot"),
6874 volumes: [numericId(volume, "volume")], automount: true, user_data: bootConfig(p, volume), ssh_keys: [numericId(key, "throwaway key")],
6975 public_net: { enable_ipv4: true, enable_ipv6: true }, start_after_create: true, labels: { "forge-pinned": "true", forge: p.name },
7076 });
src/cloud/ovh.ts +6 −2
@@ -19,6 +19,9 @@ import { ovhCall } from "./ovh_sign.ts";
1919 /** The image every forge boots, by the name OVHcloud lists it under. */
2020 export const OVH_IMAGE = "Ubuntu 24.04";
2121
22 /** A game box boots Ubuntu 26.04, whose OpenSSL 3.5 offers X25519MLKEM768 to the forge (#18032). */
23 const OVH_GAME_IMAGE = "Ubuntu 26.04";
24
2225 /** How long a create waits for the instance to turn active before it attaches the volume. */
2326 export const ACTIVE = { waitMs: 300_000, everyMs: 5_000 };
2427
@@ -83,8 +86,9 @@ export const ovh: Driver = {
8386 const flavor = flavors.find((x) => x?.name === p.size && typeof x.id === "string");
8487 if (!flavor) throw new Error(`OVHcloud has no flavor ${p.size} in ${p.datacenter}. Nothing new was made.`);
8588 const images: any[] = (await call("GET", `/image?region=${q(p.datacenter)}&osType=linux`)) ?? [];
86 const image = images.find((x) => x?.name === OVH_IMAGE && typeof x.id === "string");
87 if (!image) throw new Error(`OVHcloud lists no ${OVH_IMAGE} image in ${p.datacenter}. Nothing new was made.`);
89 const wanted = p.boots !== "game" ? OVH_IMAGE : OVH_GAME_IMAGE;

No test covers this branch or its error message; add one beside the DigitalOcean and Hetzner cases.

90 const image = images.find((x) => x?.name === wanted && typeof x.id === "string");
91 if (!image) throw new Error(`OVHcloud lists no ${wanted} image in ${p.datacenter}. Nothing new was made.`);
8892 const made = await call("POST", "/instance", { name: `forge-${p.name}`, flavorId: flavor.id, imageId: image.id, region: p.datacenter, userData: bootConfig(p, volume), monthlyBilling: false });
8993 const id = String(made?.id ?? "");
9094 if (id === "") throw new Error("api.us.ovhcloud.com made no instance");
src/games/agent.sh +30
@@ -1125,6 +1125,34 @@ apply() {
11251125 done 3< <(jq -c '.commands // [] | .[]' <<<"$answer" 2>/dev/null)
11261126 }
11271127
1128 # The key exchange group this box's HTTPS to the forge negotiates (#18032), e.g. X25519MLKEM768 on
1129 # OpenSSL 3.5 (Ubuntu 26.04) and X25519 on 3.0 (Ubuntu 24.04), read with openssl s_client against the
1130 # forge's own host and kept for an hour in .tls.group. Empty when it cannot be read; the forge shows
1131 # that as unknown, never as a refusal.
1132 tls_group() {
1133 local f="$DIR/.tls.group" host port out g
1134 if [ -s "$f" ] && [ -n "$(find "$f" -mmin -60 2>/dev/null)" ]; then cat "$f"; return; fi
1135 host="${FORGE_URL#*://}"
1136 host="${host%%/*}"
1137 port=443
1138 case "$host" in *:*) port="${host##*:}"; host="${host%:*}" ;; esac
1139 [[ "$host" =~ ^[A-Za-z0-9.-]{1,253}$ && "$port" =~ ^[0-9]{1,5}$ ]] || return 0
1140 command -v openssl >/dev/null 2>&1 || return 0
1141 # Real output (checked against s_server on 3.5): -brief prints "Negotiated TLS1.3 group: X25519MLKEM768"
1142 # for a group 3.5 names, and "Peer Temp Key: X25519, 253 bits" (3.0 says "Server Temp Key") for a
outdated

Unverified against real openssl s_client -brief output on 3.0 and 3.5. Run it on both images and make the pattern match what they print.

1143 # classical one. The same sed reads the plain output, the fallback when -brief prints neither.
1144 local pick='s/^Negotiated TLS1\.3 group: *//p; s/^\(Server\|Peer\) Temp Key: *//p' brief
1145 for brief in -brief ""; do
1146 out="$(capped 5 openssl s_client -connect "$host:$port" -servername "$host" -tls1_3 $brief </dev/null 2>&1)"
1147 g="$(sed -n "$pick" <<<"$out" | head -n 1 | sed 's/, *[0-9]* bits.*$//; s/, */-/g' | tr -cd 'A-Za-z0-9_-' | head -c 40)"
1148 [ -n "$g" ] && break
1149 done
1150 [ -n "$g" ] || return 0
1151 printf '%s' "$g" | keep_file "$f"
1152 echo "forge-game-agent: TLS key exchange with the forge: $g" >&2
1153 printf '%s' "$g"
1154 }
1155
11281156 # What a person needs to see why a box is not playing, in about 8 KB: the running job and the tail
11291157 # of .up.log, the containers and images, the agent's and Docker's journal, cloud-init's status, the
11301158 # disks (and whether Docker's data is on the volume), and the versions.
@@ -1149,6 +1177,7 @@ diag() {
11491177 --arg agent "$(probe 1200 journalctl -u forge-game-agent -n 30 --no-pager -o cat)" \
11501178 --arg docker "$(probe 1000 journalctl -u docker -n 20 --no-pager -o cat)" \
11511179 --arg cloud "$(boot_status | tail -c 600)" \
1180 --arg tls "$(tls_group)" \
11521181 --arg df "$(probe 300 df -h /)" \
11531182 --arg root "$root" \
11541183 --arg volume "$volume" \
@@ -1164,6 +1193,7 @@ diag() {
11641193 images: [($images | split("\n")[] | fromjson? | {image: ((.Repository // "") + ":" + (.Tag // "")), size: (.Size // "")})][0:20],
11651194 journal: {agent: $agent, docker: $docker},
11661195 cloudInit: $cloud,
1196 tlsGroup: $tls,
11671197 metadata: $metadata,
11681198 disk: {root: $df, dataRoot: $root, volume: $volume, device: $vdev, log: $vlog, mountOfDataRoot: ($mount | rtrimstr("\n")), volumeMounted: ($mounted == "yes"), onVolume: ($volume != "" and ($mount | rtrimstr("\n")) == $volume)},
11691199 versions: {docker: ($dockerv | rtrimstr("\n")), compose: ($composev | rtrimstr("\n"))}
src/games/diag.ts +16
@@ -16,6 +16,11 @@ export interface Diag {
1616 readonly images?: readonly { readonly image?: string; readonly size?: string }[];
1717 readonly journal?: { readonly agent?: string; readonly docker?: string };
1818 readonly cloudInit?: string;
19 /**
20 * The TLS key exchange group the box's HTTPS to the forge negotiated; an older agent, or one that
21 * could not read it, does not say.
22 */
23 readonly tlsGroup?: string;
1924 /** Whether the box's firewall keeps containers from the cloud's metadata; an older agent does not say. */
2025 readonly metadata?: "closed" | "open";
2126 readonly disk?: { readonly root?: string; readonly dataRoot?: string; readonly volume?: string; readonly mountOfDataRoot?: string; readonly volumeMounted?: boolean; readonly onVolume?: boolean; readonly device?: string; readonly log?: string };
@@ -61,6 +66,16 @@ export function readDiag(text: string): Diag {
6166 }
6267 }
6368
69 /**
70 * The group in words (#18032): a hybrid with ML-KEM is post-quantum; any other group is classical,
71 * shown and never refused.
72 */
73 function tlsWord(group: string | undefined): string {
74 const g = typeof group === "string" ? group.replace(/[^A-Za-z0-9_-]/g, "").slice(0, 40) : "";
75 if (g === "") return "";
76 return /MLKEM|KYBER/i.test(g) ? `${g} (post-quantum hybrid)` : `${g} (classical)`;
77 }
78
6479 const lastLine = (text: string, pick: RegExp = /./): string =>
6580 text
6681 .split("\n")
@@ -99,6 +114,7 @@ export function boxTails(d: Diag): [string, string][] {
99114 ["The agent's journal", d.journal?.agent],
100115 ["Docker's journal", d.journal?.docker],
101116 ["cloud-init", d.cloudInit],
117 ["Key exchange with the forge", tlsWord(d.tlsGroup)],
102118 ["Disks", [disk?.root, disk?.dataRoot ? `data-root ${disk.dataRoot} on ${disk.mountOfDataRoot || "?"}` : ""].filter(Boolean).join("\n")],
103119 [
104120 "The volume (.volume.log)",
test/game-diag.test.ts +37 −1
@@ -15,7 +15,7 @@ import { createApp, type App } from "../src/app.ts";
1515 import { createSession } from "../src/core/sessions.ts";
1616 import { createToken } from "../src/core/tokens.ts";
1717 import { createUser, type User } from "../src/core/users.ts";
18 import { DIAG_MOST, boxStatus, boxStatusShared, keptDiag } from "../src/games/diag.ts";
18 import { DIAG_MOST, boxStatus, boxStatusShared, boxTails, keptDiag } from "../src/games/diag.ts";
1919 import { boxNamed, createGameBox, grant, recordSync } from "../src/games/store.ts";
2020 import { serve, type Servers } from "../src/http/server.ts";
2121 import { createForgeApp } from "../src/tui/forge.ts";
@@ -163,6 +163,42 @@ esac
163163 }
164164 });
165165
166 test.skipIf(lacks.length > 0)("the agent says the key exchange group it negotiated, and the forge words it: hybrid is post-quantum, any other classical", async () => {
167 for (const [said, word] of [
168 ["Negotiated TLS1.3 group: X25519MLKEM768", "X25519MLKEM768 (post-quantum hybrid)"],
169 ["Peer Temp Key: X25519, 253 bits", "X25519 (classical)"],
170 ["Server Temp Key: X25519, 253 bits", "X25519 (classical)"],
171 ["Peer Temp Key: ECDH, prime256v1, 256 bits", "ECDH-prime256v1 (classical)"],
172 ] as const) {
173 const box = scratch("#!/usr/bin/env bash\n");
174 writeFileSync(join(box.bin, "openssl"), `#!/usr/bin/env bash\necho '${said}'\n`);
175 chmodSync(join(box.bin, "openssl"), 0o755);
176 const agent = Bun.spawn(["bash", AGENT], { env: box.env({ FORGE_GAME_ONCE: "1" }), stdout: "pipe", stderr: "pipe" });
177 try {
178 expect(await agent.exited).toBe(0);
179 const diag = box.bodies[0]!["diag"];
180 expect(diag["tlsGroup"]).toBe(word.split(" ")[0]!);
181 expect(boxTails(diag)).toContainEqual(["Key exchange with the forge", word]);
182 } finally {
183 await box.done();
184 }
185 }
186 });
187
188 test.skipIf(lacks.length > 0)("a box that cannot read its group still checks in, and shows no key exchange line", async () => {
189 const box = scratch("#!/usr/bin/env bash\n");
190 writeFileSync(join(box.bin, "openssl"), "#!/usr/bin/env bash\nexit 1\n");
191 chmodSync(join(box.bin, "openssl"), 0o755);
192 const agent = Bun.spawn(["bash", AGENT], { env: box.env({ FORGE_GAME_ONCE: "1" }), stdout: "pipe", stderr: "pipe" });
193 try {
194 expect(await agent.exited).toBe(0);
195 expect(box.bodies).toHaveLength(1);
196 expect(boxTails(box.bodies[0]!["diag"]).map((t) => t[0])).not.toContain("Key exchange with the forge");
197 } finally {
198 await box.done();
199 }
200 });
201
166202 test.skipIf(lacks.length > 0)("a hung docker never holds the sync: the diag says it ran over its deadline", async () => {
167203 const box = scratch(`#!/usr/bin/env bash\ncase "$*" in\n "ps -a --format json") sleep 20 ;;\nesac\n`);
168204 const started = Date.now();
test/pinned-harden.test.ts +43
@@ -8,6 +8,7 @@ import {
88 bootConfig as digitaloceanBoot,
99 digitalocean,
1010 } from "../src/cloud/droplet.ts";
11 import { ovh } from "../src/cloud/ovh.ts";
1112 import { PUBLIC_PORTS } from "../src/cloud/harden.ts";
1213 import { hetzner, bootConfig as hetznerBoot } from "../src/cloud/hetzner.ts";
1314 import type { Call } from "../src/cloud/machine.ts";
@@ -357,6 +358,48 @@ describe("no root password is ever made", () => {
357358 expect(asked[1]!.body.user_data).toContain("PermitRootLogin no");
358359 });
359360
361 test("a game box boots Ubuntu 26.04 (OpenSSL 3.5, X25519MLKEM768) and a forge stays on 24.04 (#18032)", async () => {
362 const game = { ...row, boots: "game" as const, game: { forgeUrl: "https://forge.example", token: "fgb_abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG" } };
363 for (const [driver, path, plain, made] of [
364 [digitalocean, "/droplets", "ubuntu-24-04-x64", "ubuntu-26-04-x64"],
365 [hetzner, "/servers", "ubuntu-24.04", "ubuntu-26.04"],
366 ] as const) {
367 const a = recorder();
368 await driver.createMachine(a.call, row, "77");
369 const b = recorder();
370 await driver.createMachine(b.call, game, "77");
371 expect(a.asked.find((x) => x.path === path)!.body.image).toBe(plain);
372 expect(b.asked.find((x) => x.path === path)!.body.image).toBe(made);
373 }
374 });
375
376 test("OVHcloud: a game box takes the Ubuntu 26.04 image, a forge 24.04, and no 26.04 listed is an error (#18032)", async () => {
377 const game = { ...row, boots: "game" as const, datacenter: "US-EAST-VA-1", size: "b2-7", game: { forgeUrl: "https://forge.example", token: "fgb_abcdefghijklmnopqrstuvwxyz0123456789ABCDEFG" } };
378 const plain = { ...game, boots: "forge" as const };
379 const only = (names: string[]) => {
380 const asked: { method: string; path: string; body: any }[] = [];
381 const call: Call = async (method, path, body) => {
382 asked.push({ method, path, body });
383 if (path.startsWith("/flavor")) return [{ name: "b2-7", id: "f1" }];
384 if (path.startsWith("/image")) return names.map((n, i) => ({ name: n, id: `img${i}` }));
385 if (path === "/instance") return { id: "i1" };
386 if (path === "/instance/i1") return { status: "ACTIVE" };
387 return {};
388 };
389 return { asked, call };
390 };
391 const both = ["Ubuntu 24.04", "Ubuntu 26.04"];
392 const a = only(both);
393 await ovh.createMachine(a.call, plain, "vol");
394 const b = only(both);
395 await ovh.createMachine(b.call, game, "vol");
396 expect(a.asked.find((x) => x.path === "/instance")!.body.imageId).toBe("img0");
397 expect(b.asked.find((x) => x.path === "/instance")!.body.imageId).toBe("img1");
398 const none = only(["Ubuntu 24.04"]);
399 await expect(ovh.createMachine(none.call, game, "vol")).rejects.toThrow("OVHcloud lists no Ubuntu 26.04 image in US-EAST-VA-1");
400 expect(none.asked.some((x) => x.path === "/instance")).toBe(false);
401 });
402
360403 test("the private half is never in anything sent", async () => {
361404 const { asked, call } = recorder();
362405 await hetzner.createMachine(call, row, "77");

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

Keyboard shortcuts

Docs