Saltar al contenido principal

alphaswarm-admin

Internal-only admin dashboard for AlphaSwarm staff. Audit-first: every action lands a security_audit_events row before mutating anything; no destructive surface bypasses the ledger.

Authenticated via the AlphaSwarm staff Entra tenant. Outbound M2M calls use a per-deployment Entra Agent Identity provisioned by the alphaswarm_admin_agent_identity Terraform module.

Identity

FieldValue
Service idalphaswarm-admin
Roleadmin
Packagealphaswarm_admin/
Image (key)admin
Built fromalphaswarm_admin/Dockerfile (FastAPI backend, port 8900) + alphaswarm_admin/frontend/Dockerfile (Next.js 15 UI). Two ECR repos: alphaswarm-admin + alphaswarm-admin-frontend.

Wire

FieldValue
ProtocolHTTP/1.1 + WebSocket
Port8900
HealthGET /admin/health (public; backs the Docker + ECS container health checks)
Public URLhttps://admin.alpha-swarm.ai (Cloudflare tunnel + Pomerium IAP)
IdentityAlphaSwarm staff Entra tenant; actor_kind is user for human staff and agent for the per-deployment Agent Identity (RFC 8693 act claim)

Surfaces

PrefixPurpose
/admin/*FastAPI backend — managed-services CRUD, company accounts, audit log, billing
/admin/platform/ecs/*Platform deployment control — boto3 → AWS ECS + CloudWatch for the platform's OWN Fargate services (rollout status, redeploy, scale, logs, metrics, alarms). Distinct from /admin/deployments (customer workloads, brokered). Redeploy + scale are audit-first + step-up-MFA gated.
/api/auth/entra/*Next.js BFF proxy to alphaswarm-cp /auth/*
/dashboard, /platform, /managed-services, /companies, /audit-log, /billingNext.js frontend pages

Deployment surfaces

SurfaceWhere
Composeservice alphaswarm-admin in deployments/compose/docker-compose.admin.yml
Kustomizerolled into the per-cell base — namespace alphaswarm-admin
ECS Fargateinfrastructure/modules/ecs-fargate-control-plane, wired in infrastructure/envs/minimum. Container health check on /admin/health; the admin task carries the self-management policy so /admin/platform/ecs/* can drive the cluster.
AQP CRAQPAdmin
Terraform modulealphaswarm_admin_agent_identity (Entra Agent Identity provisioning)

Dependencies

Upstream:

  • alphaswarm-cp (/auth/*, /manage/*).
  • alphaswarm-core (/api/* for read-only platform queries).
  • postgres for the admin's own ledger tables.
  • Stripe (optional) for billing integration.

Downstream:

  • AlphaSwarm staff admins only — public ingress is wrapped by Pomerium with the alphaswarm-staff Entra group as the sole authenticated population.

Operations

  • Audit-first: every mutating endpoint writes a security_audit_events row BEFORE acting; rollbacks compensate the row.
  • No customer data exposure: the admin reads aggregate signals only — never raw operator strategy code or RL weights.
  • Step-up MFA: required for company-account suspensions, billing refunds, kill-switch fan-out.
  • Boundary: alphaswarm_admin MUST NOT import alphaswarm.* — it is HTTP-only against alphaswarm-cp and alphaswarm-core. The guard is enforced by alphaswarm_admin/AGENTS.md.

See also