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

Games: a proxy plugin for /forge and refused joins, standard code first #17624

opened this in answer to

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.

Notes

opened this

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 /forge as 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. !forge in 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.sleep works today.
  • Order: five steps, each its own issue, ending with !forge turned 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.

Closes #17623

commented

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 /forge as 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. !forge in 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.sleep works today.
  • Order: five steps, each its own issue, ending with !forge turned 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.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs