Skip to content
Docs

Deployment

AgentWatch is CPU-only software with no GPU requirement — model inference happens at the provider or on a customer-hosted inference cluster, while AgentWatch is the governance and observability layer in front of it. That makes deployment a straightforward containerized rollout.

  • Self-hosted — Docker or Kubernetes on customer infrastructure; data never leaves the corporate network.
  • SaaS — Iterate.ai-hosted multi-tenant instance for fastest time to value.
  • Hybrid — control plane in one environment, data plane in the customer VPC.
  • Air-gapped — container plus embedded database plus a local model runtime, with zero outbound dependency; images, model weights, and library mirrors are pulled once at install time from an internal registry. Suitable for classified, sovereign, and heavily regulated deployments.
  • Developer laptop — a single compiled binary with an embedded database and a local model runtime, offline capable.

Three reference tiers cover most deployments. All are pure software — no specialized hardware.

Small Medium Large
Users up to 300 300–500 500–1,000+
Footprint Single container App container + managed PostgreSQL Two app instances (HA) + PostgreSQL + event streaming + analytics DB
Database Embedded Managed PostgreSQL PostgreSQL HA with connection pooling and read replicas
CPU / RAM 4 vCPU / 16 GB 6 vCPU / 16 GB 20 vCPU / 32 GB
Storage 20 GB SSD 120 GB SSD 540 GB SSD
Network 1 GbE 1 GbE 1–10 GbE

The container’s own memory limit must be raised with the host: 12 GB on a 16 GB host (the shipped default from 2.0.388). See Sizing — minimum memory.

Because LLM proxying is I/O-bound, throughput is gated by upstream provider latency rather than AgentWatch CPU. As a reference, a single instance handles roughly 5–10 requests/second at 100 users and 50–100 at 1,000 users; beyond that, add application replicas behind a load balancer. The optional code-knowledge feature is the one component with a materially larger footprint and is sized separately.

Component Minimum
Container runtime Docker 20.10+, containerd 1.6+, or Kubernetes 1.24+
Database PostgreSQL 14+ for production; embedded database for small and edge tiers
Load balancer HAProxy 2.x, NGINX 1.20+, or a cloud load balancer (AWS, GCP, Azure)
Object storage Any S3-compatible service (S3, GCS, Azure Blob, MinIO, R2)
Identity provider Any OIDC-compliant provider, or SAML 2.0, or LDAP/Active Directory
Event streaming / analytics Optional — file-based fallback included

Host platforms: Ubuntu 22.04/24.04 LTS, Debian 11/12, RHEL 8+, or Amazon Linux 2023, on x86_64 or ARM64 (including AWS Graviton and Azure Cobalt) via multi-architecture images. SSD is required for the database tier; NVMe is preferred at the large tier.

Multi-architecture container images, a Helm chart with a pre-hardened security context (non-root, no privilege escalation, minimal capabilities), Docker Compose files for single-host and event-pipeline variants, a single compiled binary for air-gapped and edge installs, signed endpoint-agent installers for macOS, Windows, and Linux, Kubernetes manifests and a Helm chart for the fleet agent, a full API test collection with a CI runner, and architecture reference diagrams for each deployment pattern.

Topology When to use
Direct integration Applications → AgentWatch → providers. Simplest; dev, internal tools, lower-compliance use cases.
Behind a corporate proxy / CASB All egress traverses Zscaler, Forcepoint, or Netskope. Required where CASB controls are mandatory.
Load-balanced HA Multiple replicas behind a load balancer with PostgreSQL replicas. For 500+ users with formal SLAs.
Transparent proxy DNS resolves provider hostnames to AgentWatch. No application changes at all — drop-in shadow-AI elimination for brownfield estates.
Dedicated egress / colocation Egress via a dedicated interconnect to provider regions for predictable latency and cost.
Customer-hosted inference AgentWatch in front of your own inference clusters — including Lifeboat, vLLM, TGI, or Triton — so all traffic stays inside the boundary. Strongest data-residency posture.

Multi-region active/active is supported through a stateless application tier, cross-region database replicas, and global DNS load balancing.

Upgrades are an image swap; schema changes are applied and backfilled automatically at boot, so no manual migration step is required. Multi-instance deployments support zero-downtime rolling upgrades — drain a node, upgrade it, return it to the pool — with in-flight requests preserved through a graceful shutdown window. Documented rollback procedures and a pre-upgrade checklist accompany each release, and an encrypted backup and restore facility covers disaster recovery.

Each deployment is region-local by design: audit records, usage data, and embeddings stay inside the deployment region, and only the model calls leave — to the providers the customer has explicitly authorized. Replacing those with self-hosted inference closes the loop entirely.

Follow the Quick Start: on a host with at least 4 vCPU, 16 GB RAM and 20 GB SSD, download two files, set the secrets in .env, sign in to the private registry with the access token Iterate.ai issued you, and run docker compose up -d. It takes about ten minutes and ends with a request through the gateway showing in Usage Insights. Endpoint rollout is separate — see the Install & Setup Guide; for Kubernetes see the Amazon EKS Install Guide.

Terminal window
docker compose pull && docker compose down && docker compose up -d
curl -s https://<your-agentwatch-host>/health

Verify the version you intended is the version running. A pull that silently kept a cached image is the failure to guard against — compare the version in /health with the tag you deployed, and treat a mismatch as a failed upgrade rather than assuming the tag is right.

Upgrades are a plain image swap: schema changes are applied on boot, and recent feature work deliberately stores state in settings rather than new tables so an upgrade does not need a migration window.

Check Command
Version is what you deployed curl -s …/health
An LLM call still works a minimal /v1/chat/completions
Settings still save change one field in Company Policy
Scanners loaded GET /admin/dlp/ner/status
Traffic is recording one request, then Usage Insights

How do I verify an image came from Iterate?

Section titled “How do I verify an image came from Iterate?”

Every AgentWatch image published from now on is signed with Iterate’s key, and carries a signed SBOM (an SPDX list of every package in the image). Verify before you deploy with cosign 3.x and the public key from the release repository, docs/customer-deploy/cosign.pub:

Terminal window
cosign verify --key cosign.pub --insecure-ignore-tlog iterateai/agentwatch:<version>
# the SBOM attestation
cosign verify-attestation --key cosign.pub --insecure-ignore-tlog \
--type spdxjson iterateai/agentwatch:<version>

A valid image prints the signature payload with the image digest and exits 0. --insecure-ignore-tlog is needed because Iterate signs with its own key and does not upload to the public Sigstore transparency log; the key is what you are trusting. Pin the digest it prints in your compose file if you want later pulls to be the same bytes.

Symptom Cause Fix
no signatures found The image predates signing, or it is not an Iterate image Use a current version; never deploy an unsigned image you cannot account for
invalid signature when validating ASN.1 encoded signature The key does not match Re-download cosign.pub from the release repository
--insecure-ignore-tlog unknown cosign older than 2.0 Upgrade cosign

Per-IP rate limits, sign-in and password-reset throttling, the IP blocklist, audit-log IP addresses, organization mapping by gateway IP, LAN-IP user mapping and the enrollment portal all key on the client address of a request. Behind a proxy, the TCP connection comes from the proxy, so the address is read from X-Forwarded-For.

Each proxy appends the address it received the request from. The entries at the start of the header are whatever the client sent and cannot be trusted. AgentWatch therefore counts back from the end: with AW_TRUSTED_PROXY_HOPS=N it uses the address the outermost of your N proxies saw, the same rule as Express trust proxy = N. Since 2.0.414 this rule applies everywhere. Before, the built-in server took the first entry, so a client could choose its own address.

Your setup Setting
One proxy in front of the app, e.g. the shipped HAProxy (option forwardfor) AW_TRUSTED_PROXY_HOPS=1 (the default)
A cloud load balancer in front of that proxy AW_TRUSTED_PROXY_HOPS=2
Devices connect to port 8787 directly AW_TRUSTED_PROXY_HOPS=0 (X-Forwarded-For is ignored)
A proxy that overwrites one header with the client address, e.g. Cloudflare’s CF-Connecting-IP AW_CLIENT_IP_HEADER=cf-connecting-ip

Set it in .env and restart:

Terminal window
echo 'AW_TRUSTED_PROXY_HOPS=2' >> .env
docker compose up -d

Firewall port 8787 so only your proxy reaches it. A device that can connect to the app port itself takes the place of the proxy and can write any X-Forwarded-For it likes. Only set AW_CLIENT_IP_HEADER when your proxy replaces any copy of that header the client sent.

How do I check it? From a machine whose public address you know, sign in through your organization’s sign-in page (https://<host>/<org-slug>/login). In Settings → Audit Logs, the auth.login.success entry should show that address. If it shows your proxy’s or load balancer’s address, the hop count is too low. If you can make the logged address change by sending your own X-Forwarded-For header, it is too high.

Symptom Cause Fix
Every request shows the load balancer’s address; one client trips the per-IP limit for everyone Two proxies, hop count 1 AW_TRUSTED_PROXY_HOPS=2
Organization mapping by gateway IP stopped matching after the 2.0.414 upgrade The mapping was registered with the address a client sent, not the one your proxy saw Re-register the egress IP shown in Audit Logs, or fix the hop count
A client can choose the address in the audit log Hop count higher than the number of proxies, or port 8787 reachable directly Lower the hop count; firewall 8787

The captive network notice uses the same setting. AW_CAPTIVE_PROXY_HOPS still overrides it for the notice alone.

Multiple instances behind a load balancer share the database and support rolling upgrades with in-flight request preservation. Two consequences worth planning for: settings caches are per process (a change is live within ~30s everywhere, not instantly), and anything holding process-local state — the event pipeline singleton — reads the platform row rather than a per-organization copy.