Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 34 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,32 @@ Gameplane integrates with **10 mod registries**: Modrinth, CurseForge, Thunderst

## Architecture

```text
Dashboard UI (React + TypeScript + Vite + HeroUI v3)
│ HTTPS / WSS
Central API (Go): authentication, RBAC, REST, WebSocket, aggregation
│
├── Direct Kubernetes API access ───────────────────────────────┐
│ Resource management, Pod logs, PTY attach │
│ ▼
│ ┌── Each registered cluster (local or remote) ──────────────────┐
│ │ Kubernetes API ◄── Operator (Go, controller-runtime) │
│ │ │ reconciles CRDs into local resources │
│ │ ├── GameServer Pods + Services + PVCs │
│ │ ├── Backup / restore Jobs │
│ │ ├── Sentinel wake-on-connect Pods │
│ │ └── Tunnel relay Pods │
│ │ │
└───┼── Private mTLS ──► Optional per-cluster agent gateway │
│ ├── mTLS ──► Agent sidecars (:8090) │
│ │ RCON, logs, files, mods │
│ └── mTLS ──► Capture sidecars (:9091) │
│ Capture downloads/cleanup │
└──────────────────────────────────────────────────────────────┘
```mermaid
flowchart TB
ui["Dashboard UI<br/>React + TypeScript + Vite + HeroUI v3"]
api["Central API (Go)<br/>auth, RBAC, REST, WebSocket, aggregation"]
ui -- "HTTPS / WSS" --> api
subgraph cluster["Each registered cluster (local or remote)"]
kube["Kubernetes API"]
op["Operator (Go, controller-runtime)"]
gs["GameServer Pods + Services + PVCs"]
jobs["Backup / restore Jobs"]
sen["Sentinel wake-on-connect Pods"]
tun["Tunnel relay Pods"]
gw["Optional agent gateway"]
agent["Agent sidecars :8090<br/>RCON, logs, files, mods"]
cap["Capture sidecars :9091<br/>capture downloads, cleanup"]
op -- "reconciles CRDs" --> kube
op --> gs
op --> jobs
op --> sen
op --> tun
gs --- agent
gw -- mTLS --> agent
gw -- mTLS --> cap
end
api -- "resources, pod logs, PTY attach" --> kube
api -- "private mTLS (remote clusters)" --> gw
```

In a combined installation, the central API connects directly to agents in its local cluster. Remote agent
Expand Down Expand Up @@ -159,6 +163,8 @@ legacy default for custom deployments. See [storage and recovery](docs/standalon
| `charts/` | Helm | Official Helm deployment chart for operator, API gateway, ingress, and helper services. |
| `gameproto/` | Go | Shared protocol library for parsing game handshakes (Minecraft, Terraria) in `sentinel`. |
| `gameaction/` | Go | Security guard and command renderer for custom module admin actions. |
| `i18n/` | Go | Shared language packs, ICU message formatter and pack checker used by the API, dashboard, operator and `gp-module`. |
| `gp-module/` | Go | Module authoring CLI: scaffold, offline validate, dry-run preview and OCI package. |
| `netguard/` | Go | SSRF protection layer for outgoing mod downloads and OCI module fetches. |
| `svcutil/` | Go | Shared HTTP server lifecycle and environment configuration utilities. |
| `telemetryschema/` | Go | Shared telemetry report contract (types, strict decoder, official module catalog, report signing) used by the API and `telemetry-receiver`. |
Expand All @@ -178,6 +184,7 @@ Gameplane extends Kubernetes using custom resources under `gameplane.local/v1alp
- **`Module`**: An installed game bundle managed by the operator to materialize a `GameTemplate`.
- **`ModuleSource`**: A registered game template repository (OCI registry, Git repository, HTTP server, or local upload).
- **`Cluster`**: A registered remote Kubernetes cluster target for multi-cluster control plane management.
- **`NetworkCapture`**: An admin-only packet capture on one game server, run by the capture sidecar.

## Repository Layout

Expand All @@ -196,6 +203,9 @@ Gameplane extends Kubernetes using custom resources under `gameplane.local/v1alp
├── website/ # Submodule: Public documentation site
├── gameproto/ # Wire-protocol parsing library (Minecraft, Terraria)
├── gameaction/ # Console injection guard & action command renderer
├── i18n/ # Shared language packs, ICU formatter, pack checker
├── gp-module/ # Module authoring CLI (init, validate, preview, package)
├── capture-sidecar/ # Optional packet capture sidecar
├── netguard/ # SSRF dial-guard library
├── svcutil/ # Shared HTTP server & env utilities
├── telemetryschema/ # Shared telemetry report contract (types, decoder, signing)
Expand All @@ -207,6 +217,8 @@ Gameplane extends Kubernetes using custom resources under `gameplane.local/v1alp
├── deploy/standalone/ # API + dashboard Docker Compose deployment
├── docs/ # Technical documentation & guides
├── specs/ # Feature specifications and proposals
├── changelog/unreleased/ # One changelog entry per pull request
├── signing/ # cosign public keys for images and modules
└── test/ # Integration & end-to-end kind test suites
```

Expand Down
9 changes: 8 additions & 1 deletion docs/agent-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ This document is the **first stop** for AI agents modifying or extending Gamepla
| **Telemetry-Receiver** | `telemetry-receiver/specs.md` | Ingests and processes anonymous usage telemetry from the API. |
| **Telemetryschema** | `telemetryschema/specs.md` | Shared telemetry report contract (types, enumerations, strict decode, official module catalog, report signing) used by the API and the telemetry-receiver. |
| **MCP-Server** | `mcp-server/specs.md` (submodule `GameplanePanel/mcp`) | Read-only Model Context Protocol server exposing cluster state to AI tools. |
| **Svcutil** | `svcutil/specs.md` | Shared stdlib-only env and graceful-shutdown helpers used by backend components. |
| **Svcutil** | `svcutil/specs.md` | Shared stdlib-only env and graceful-shutdown helpers. No module imports it yet; new backend binaries may adopt it. |

## Shared Libraries & Tooling

| Component | `specs.md` location | Primary Responsibilities |
| --- | --- | --- |
| **i18n** | `i18n/specs.md` | Shared language packs (`go:embed`), the ICU MessageFormat subset, the pack validator and the `i18n-check` CI tool. Imported by the API, the operator and `gp-module`. |
| **gp-module** | `gp-module/specs.md` | Module authoring CLI: scaffold, offline validate, dry-run preview and OCI package. Its `pkg/` packages are imported by the API and `test/e2e`. |

## Frontend & Other

Expand Down
Loading
Loading