Docs/Platform/Services Reference

Services Reference

Configuration and operational reference for each GovernanceAI microservice.

Advanced6 min readUpdated June 2026
GatewayPolicyRiskDLP

GovernanceAI runs as fourteen independent microservices. Each can be scaled, restarted, and deployed independently. This page documents each service, its port, environment variables, and health endpoint.

Service directory

ServicePortPurposeHealth
api-gateway8000Public entry point, auth, orchestration/health
policy-service8001Rule evaluation and RBAC enforcement/health
risk-scorer8002ML-based prompt risk classification/health
dlp-scanner8003Regex-based DLP and PII detection/health
decision-engine8004Merges enforcement decisions/health
audit-service8005Append-only audit log writer/health
tenant-service8006Org, project, and API key CRUD/health
profile-service8007Security profile management/health
provider-adapter8008LLM provider routing and failover/health
notification-service8009Webhook and alert delivery/health
platform-assistant8010LLM-powered DevEx assistant/health
security-assistant8011Threat analysis and red-team reports/health
red-team-simulator8012Adversarial attack simulation/health
metrics-service8013Prometheus metrics aggregation/metrics

Environment variables

All services share a common set of environment variables in .env:

# Database
DATABASE_URL=postgresql://user:pass@localhost:5432/governance

# Redis
REDIS_URL=redis://localhost:6379

# Security
JWT_SECRET_KEY=your-secret-key-min-32-chars
ENVIRONMENT=production         # disables dev bypasses

# LLM Providers
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GROQ_API_KEY=gsk_...
GOOGLE_API_KEY=AIza...

# Feature flags
RATE_LIMITING_ENABLED=true
DLP_REDACTION_MODE=block       # block | redact | warn

Starting all services

docker compose up -d

# Check all services are healthy
docker compose ps
Health monitoringUse GET /health on each service for basic liveness. The gateway aggregates all service health into its own /health response. In production, configure your load balancer to use these endpoints for automatic instance rotation.

Related documentation