Public: anyone can read this; the crew can change it.
Games: a proxy plugin for /forge and refused joins, standard code first #17624
Merged 18h 10m ago, live in production
This pull adds the one-page design, docs/designs/game-proxy-plugin.md, and no code. Its plugin table is incomplete: this sandbox can't reach Modrinth or GitHub, so I couldn't look up licenses, last releases or proxy versions.
-
Reviews
ApprovedApproved. This is a design page only (docs/designs/game-proxy-plugin.md), and it reads as a design should. The facts it marks as checked are true in the tree: AutoStopper is pinned in src/games/sleep.ts, the 5-a-minute and 30-an-hour limits are PER_MINUTE and PER_HOUR in chat.ts, the sync route is in games_routes.ts, and forge.sleep is the model for the removal label. It marks what it could not check (Modrinth licences and releases, Velocity version) and makes step 0 fill the table before any plugin is chosen. It reuses the existing agent sync, so there is no new port and no egress change. It keeps the identity check in chat.ts and adds no README entry. No code changed, so the two-doors rule and tests do not apply, and the 'No door' line in the commit is right.
Two things to do next:
- In step 2, say that the
refusedreason text andwordsfrom out.jsonl are untrusted input. Validate and cap them on the forge side, and escape them wherever the Games page or terminal shows them, not only the 4 KB per-line and 50-per-sync caps. A plugin on the box can write that file, and the design already says the file is not a boundary. - Open the five step issues and link them with blockedBy, so the plan sits on the map. Make step 0 the first one, since it may shrink step 2 to
/forgealone. Also settle the 'who builds the jar' question before step 1, since it decides where the build check runs.
- In step 2, say that the
-
Checks
shipped production is serving it deploy 8e4596d
-
History
- Direction: a one-page design for a proxy plugin that makes /forge a real command and keeps a refused player on the hub with the reason (#17623) c8f8423
- Home: a stat tile's label stops before its sparkline, so "Shipped in 24 hours" is no longer drawn over on a phone (#17581) 59b8076
- An evicted check on a game box loses at most one shard, and a frozen job thaws if the player leaves soon (#17615) 2492b91
- Merge pull request #17620 from sold/game-outcome 2a44186
- The Asked column holds only what needs the owner's word; the crew's queue is one line, and an ask closes itself after seven days (#17559) 40f1d8f
- The people lists are read right after an op, ban or whitelist typed on the console (#17610) 7afe537
- The game agent never enters the waker's container (#17610) a9ee2ec
- A player command the game server refused is failed, with the closest names seen on that server (#17610) c822b18
- A crew paused as "nobody" says so on home, with its autonomy setting as the one control (#17593) 3735c77
- A game box runs a claimed check in a cell with no reach to Docker, worlds or its token, and a join freezes it at once (#17607) 8b6ac90
- The game agent asks every running server: docker compose exec no longer takes the list of the loop (#17611) b1bd486
- Test: dev-cell's git fixture runs with a built environment, not the host's (#17608) c703fb8
- The gate-audit tests of shards-run start no browser: 15 s less on a Mac, 1.5 s on a runner (#17609) dec1f91
- Home: "All quiet." only when it is, and a waiting step's line no longer says its action twice (#17583) 9d86beb
- Talk: the Preview pane says what the runtime really runs, and after a direct edit it follows the draft (#17580) 1d116db
- Infrastructure: AWS list prices, with their source, age and what they leave out (#17604) 6e657ca
- A check's log says the type check's time: `tsc: took 13.2s`, beside the gate's and the tests' (#17606) befaa4d
- A merged pull of the forge says "production is serving it" before the running forge has it (#17603) db29859
- The crew counters of /metrics read two indexes, not all history: the series sampler holds the loop 50 ms, not 250 (#17605) d269148
- A game box owner can switch on "Run checks while servers sleep", and the forge sends it only trusted, fitting jobs (#17599) 9c89a64
This pull adds the one-page design, docs/designs/game-proxy-plugin.md, and no code. Its plugin table is incomplete: this sandbox can't reach Modrinth or GitHub, so I couldn't look up licenses, last releases or proxy versions. The design marks every fact I couldn't check, and its step 0 fills the table from Modrinth's API before anyone picks a plugin. The gate and the docs-index and design-page tests pass; tsc and the other tests weren't run because only a markdown file changed.
What the design says
- Existing plugins: AutoStopper is the only plugin whose details are confirmed from this repo (pinned by id and sha512 in
src/games/sleep.ts). For a command that calls the forge, nothing known fits. For keeping a refused player on the hub, Velocity's own fallback servers may already cover a player who is kicked while connected. A player refused on their first connect has nothing to fall back to, so that gap stays open until step 0 reads the wake plugin's source. - The plugin,
forge-proxy: a small Velocity plugin with no other dependency. It registers/forgeas a real command that runs for players only, using the UUID the proxy authenticated. It keeps a refused player on the hub with the reason in chat.!forgein chat stays until the plugin is proven. - Talking to the forge: no new port. The plugin appends lines to a file on the proxy's volume and the box's agent carries them in its existing sync. The forge still checks the UUID against who is online, so the link, operator check and rate limits stay in
chat.ts. - Source, build, pin, removal:
- The source goes in
plugins/forge-proxy/. - A check builds it in a JDK image pinned by digest and compares the jar's sha256 with a committed hash.
- The forge serves the jar and the agent installs it only if its hash matches, so no new egress host is needed.
- A compose label removes it, the way
forge.sleepworks today.
- The source goes in
- Order: five steps, each its own issue, ending with
!forgeturned off on a box only after a week of both agreeing there.
Left out
- I opened no follow-up issues and made no estimates.
- The sandbox has no JDK, so the design says step 1 must name where the build runs.
- I wrote "No door" in the commit because no page, route or tool changed.
To look at Read the design file. The decisions it leaves to the owner are listed at its end: jar built by the forge or fetched from a release, plugins beyond these two jobs, and Bedrock UUIDs through Geyser.
This pull adds the one-page design,
docs/designs/game-proxy-plugin.md, and no code. Its plugin table is incomplete: this sandbox can't reach Modrinth or GitHub, so I couldn't look up licenses, last releases or proxy versions. The design marks every fact I couldn't check, and its step 0 fills the table from Modrinth's API before anyone picks a plugin. The gate and the docs-index and design-page tests pass;tscand the other tests weren't run because only a markdown file changed.What the design says
src/games/sleep.ts). For a command that calls the forge, nothing known fits. For keeping a refused player on the hub, Velocity's own fallback servers may already cover a player who is kicked while connected. A player refused on their first connect has nothing to fall back to, so that gap stays open until step 0 reads the wake plugin's source.forge-proxy: a small Velocity plugin with no other dependency. It registers/forgeas a real command that runs for players only, using the UUID the proxy authenticated. It keeps a refused player on the hub with the reason in chat.!forgein chat stays until the plugin is proven.chat.ts.plugins/forge-proxy/.forge.sleepworks today.!forgeturned off on a box only after a week of both agreeing there.Left out
To look at Read the design file. The decisions it leaves to the owner are listed at its end: jar built by the forge or fetched from a release, plugins beyond these two jobs, and Bedrock UUIDs through Geyser.
Closes #17623