Skip to Content
AgentShield
Self-Hosting

Production Deployment

A production readiness checklist for AgentShield covering images, data stores, network exposure, secrets, monitoring, and operations.

This checklist turns a working evaluation into a production deployment. Production mode enforces many items automatically; the rest are operational decisions.

Start from the production overlay

infrastructure/kubernetes/overlays/production is a starting point. Hosts, TLS, managed data stores, and Secrets are yours to supply. Review the rendered YAML before applying it.

Images and supply chain

  • Use released images from ghcr.io/johannes7549/agentshield-<service>.
  • Verify each image's cosign signature against the release workflow identity.
  • Pin every image by digest.
  • Optionally enforce signatures at admission with a policy controller.

Data stores

  • PostgreSQL 16 with TLS, all migrations applied, backups configured.
  • Services connect as agentshield_app with a strong password; the owner role is used only for migrations and bootstrap.
  • Redis with TLS (rediss://) and durability appropriate to the 130-second nonce window.
  • NATS JetStream over tls://, with storage for seven days of events.
  • Private S3-compatible bucket over TLS; object lock or versioning if deletion is a concern.

Configuration

  • AGENTSHIELD_ENV=production on every service.
  • INTELLIGENCE_TOKEN (32+ characters) on the gateway and analyzer; INTELLIGENCE_URL on loopback (the production overlay's sidecar) or over HTTPS.
  • SMTP_URL with smtps:// or require_tls=true, and an HTTPS DASHBOARD_URL, if invitations are emailed.
  • Tools file with only the hosts you need, credentials from Secrets, and no development flags.
  • NODE_ENV=production on the dashboard so the session cookie is Secure.
  • DASHBOARD_ORIGIN set if a proxy rewrites the Host header.

Network

  • TLS terminates in front of the gateway, control plane (if exposed), and dashboard.
  • Only /api/v1/runtime/ on the gateway is exposed to agents.
  • The analyzer is reachable only from the gateway.
  • Metrics ports are reachable only from Prometheus.
  • NetworkPolicy is enforced by your network plugin.
  • Gateway egress is limited to public HTTPS and the data stores.

Identity and access

  • The bootstrap owner changes their password after first sign-in.
  • Members have the least role they need; approvers and auditors use their dedicated roles.
  • Each agent workload has its own agent, seed, and policy.
  • Agent seeds are stored in a secret manager.

Policy

  • An organization policy denies actions no agent should ever take.
  • Irreversible actions require approval.
  • Policy changes are reviewed before they are applied.

Monitoring and response

  • Prometheus scrapes every service; the provided alert rules are loaded.
  • An Alertmanager routes alerts to people.
  • Someone triages content alerts and incidents.
  • Audit heads are exported on a schedule and copied off-database.
  • Runbooks exist for suspending agents and rotating credentials.

Verification

After deploying:

curl -fsS https://gateway.example.com/health/ready
curl -fsS https://agentshield.example.com/api/health

Then authorize a sample.echo call from a test agent, confirm the decision appears in the console, and run the chaos catalog from the Chaos section to confirm defensive properties hold in your environment.

Was this page helpful?

On this page