4.3 KiB
type, title, description, tags, timestamp, story_id, status
| type | title | description | tags | timestamp | story_id | status | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| User Story | Operate servers through an RCON console | Administrators execute bounded RCON commands through the server-side portal proxy. |
|
2026-08-08T14:06:09Z | US-022 | verified |
User Story
As an administrator, I want an RCON console in the portal, so that I can operate configured Minecraft servers without exposing credentials to the browser.
Acceptance Criteria
- Existing account-manager administrators can select an enabled connection and execute an RCON command from the admin UI.
- Browsers never connect to RCON directly; commands pass through the authenticated Next.js server runtime to the configured endpoint.
- Every command independently rechecks administrator authorization and the selected connection's enabled state.
- Commands are length-limited, reject control characters, execute with bounded concurrency and a timeout, and return bounded output.
- Command responses are displayed safely, and commands and responses are not persisted in browser storage, audit data, or application logs.
- Audit events record the administrator, connection, command verb and digest, success, and duration without recording complete commands or responses.
- Authentication, timeout, and connection failures return safe operator-facing messages without credentials or stack traces.
- The console spans the available content width and uses the portal color palette to present a terminal-style server header with connection controls, a single keyboard-accessible prompt, pending state, and scrollable latest-response viewport.
- Configured server addresses may be internal or external, and operators receive guidance that RCON network exposure and transport security remain their responsibility.
- Command responses, connection errors, and connection-operation results appear in the terminal viewport, including an actionable empty state when no connection exists.
- The page has no duplicate connection form or connection-list panel outside the terminal workspace.
- A bounded page-memory-only history lets administrators use Arrow Up and Arrow Down to recall and edit commands, then restore the unsent draft after the newest history entry.
- After each command result and server selection change, focus returns to the command input for immediate editing or resubmission.
Implementation
The full-width portal-colored terminal workspace identifies and manages the selected server in its header, accepts one command through a keyboard-focused prompt, and displays command responses plus connection-operation notices in one scrollable viewport. It retains an actionable terminal and Add control when no connections exist, with no duplicate configuration panels. Up to 50 submitted commands remain only in page memory for editable Arrow Up/Arrow Down recall, including restoration of the current unsent draft; focus returns to the prompt after command results and server changes. The client invokes an authenticated server action that revalidates the enabled connection, decrypts its credential only in the server runtime, and executes one bounded command. The gateway limits each process to one operation per server and eight total operations, applies a five-second end-to-end deadline plus bounded cleanup, sanitizes and truncates output, and records keyed command lifecycle audits without command or response content.
Validation
Application behavior is verified with gateway, validation, component, credential, and server-action tests; full workspace tests and type checks; web lint; OKF validation; Semgrep; dependency audit; and a production Next.js build on 2026-08-08. Component validation confirms the full-width workspace, labelled server and command controls, header actions, accessible modal forms, terminal-contained notices, the actionable no-server state, editable command-history navigation with draft restoration, and prompt focus after command results and server changes. The SoMC GitOps deployment verifies Season 4 RCON through an authenticated internal ClusterIP Service backed by a Kubernetes Secret while product guidance also covers external server addresses.