Files
ExecuteR/IaC/compose/docker-compose.dev.yml
gsadmin bbe5702692 Scaling: agent CA auto-trust, queue-group ingest, IaC (compose/swarm/k8s) [skip ci]
Agent trust for self-signed servers is now abstracted from operators.
The server exposes its public CA chain at GET /api/enrollment/ca; a new
pinned trust mode (TlsTrustMode=pinned) makes the agent fetch, pin,
install and validate against that CA for both enrollment HTTPS and the
NATS WebSocket, and a background CaRefreshService re-pins it across
renewals so trust never lapses. Install scripts, the agent MSI
(TRUSTMODE property), the ADMX template and the Add Device modal all
drive pinned trust for self-signed servers; skip-verify/insecure
remains an escape hatch.

Backend ingest subscriptions (presence, inventory, agent events, job
output/progress) now use a NATS queue group, so multiple backend
replicas share the load instead of each writing duplicates.

Deployment manifests move to IaC/: compose (moved from root, paths
rebased; deploy.sh and docs updated), swarm (replicated stack: Postgres,
3-node JetStream cluster, API replicas + single scheduler worker, shared
key-ring volume), and k8s (namespace/config, Postgres + NATS
StatefulSets, API Deployment + HPA, single worker, WebUI, ingress).

Wiki gains a Scaling and HA page with an HA topology diagram covering
stateless vs stateful tiers, NATS cluster/supercluster, overlay
(Tailscale/NetBird), shared storage (MicroCeph) and service discovery.

Verified: solution builds, Backend 100 / Agent 60 tests, svelte-check
clean, agent + server MSIs build.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 16:39:53 -04:00

16 lines
419 B
YAML

# Development overrides:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# Exposes internal NATS TCP + monitoring on loopback for local tooling and
# integration tests, and runs the backend in Development mode.
services:
nats:
ports:
- '127.0.0.1:14222:4222'
- '127.0.0.1:18222:8222'
backend:
environment:
ASPNETCORE_ENVIRONMENT: 'Development'
LOG_JSON: '0'