System layers
InterfacesReact web app and Python CLI.
Backend APIFastAPI routes and service layer for deployments, projects, reports, audit logs, workloads, metrics, logs, and alerts.
PersistencePostgreSQL when DATABASE_URL is configured; JSON-backed repositories for local fallback paths.
Deployment executionDocker Compose for local development; Minikube, Terraform, Kustomize, and kubectl for the Kubernetes-oriented workflow.
ObservabilityPrometheus metrics, Loki logs, Grafana Alloy collection, Alertmanager alerts, and Grafana dashboards.
High-level flow
User -> Web App / CLI
Web App -> Nginx /api proxy -> FastAPI
CLI -> local tools and packaged runtime resources
FastAPI -> repositories: PostgreSQL or JSON files
FastAPI -> Kubernetes API for workloads
FastAPI -> Redis -> Prometheus for metrics
FastAPI -> Loki for logs
FastAPI -> Alertmanager for alertsOwnership boundaries
Terraform owns foundation resources such as namespace, RBAC, ServiceAccount, ResourceQuota, and backend runtime ConfigMap. Kustomize owns runtime resources such as backend, frontend, PostgreSQL, Redis, HPA, Services, and app ConfigMaps. Loki and Grafana Alloy are installed through Helm where applicable.
Security boundaries
Current local workflows do not implement user accounts, OAuth, multi-tenancy, or hosted SaaS isolation. Future GitHub and provider integrations must add least-privilege permissions, protected credentials, explicit approvals, and audit records before sensitive operations.