1.0 KiB
1.0 KiB
Server Plane Implementation (v1)
Implemented Components
- Laravel server registry routes and controllers under
panel-api. - Agent enrollment/capability/session endpoints in
panel-api. - Go command contract and dispatcher interface in
control-plane-go. agent-gatewayprocess entrypoint for session and heartbeat responsibilities.
End-to-End Control Flow
- User creates server via
POST /api/v1/servers. - User requests one-time enrollment token.
- Agent enrolls with gateway, obtains persistent identity.
- Laravel writes job and dispatches command envelope.
- Go dispatcher publishes command to execution topic.
- Agent executes command and streams results back.
- Laravel updates job state and exposes real-time status to UI.
Next Implementation Edges
- Persist server/agent entities in Eloquent models.
- Add request validation and RBAC middleware to server routes.
- Implement Redis Streams/NATS queue adapter for dispatcher queue interface.
- Add gateway gRPC service and heartbeat/session persistence adapter.