Skip to main content
This is the supported deployment path for running Sariva without Kubernetes: one Docker container on a Linux host — an EC2 instance, an on-prem VM, any cloud VM — connecting to existing Confluent Cloud clusters. Every command on this page has been run end to end on a real Amazon Linux 2023 EC2 host, including an in-place upgrade.
ⓘINFO
What this path is. The wizard emits docker-compose.yml, .env, config/customer_config.yaml, and a secrets/ directory (mounted read-only at /app/secrets for per-cluster credential files) — no values.yaml, no setup-secret.sh, no GitOps scaffold, nothing that needs kubectl or Helm. You connect Confluent Cloud clusters that already exist; infrastructure provisioning through the GitOps scaffold stays on the Kubernetes paths.
✓SUCCESS
Read-only against your Kafka by construction. The per-cluster Kafka key Sariva uses carries exactly four describe-only ACLs — Cluster:DESCRIBE, Topic:DESCRIBE, Topic:DESCRIBE_CONFIGS, Group:DESCRIBE — with no data-plane READ: Sariva can never consume your messages. The org-level key is MetricsViewer only. Details: Minimum read-only ACLs.

Before you start

Prepare these external accounts and values — each card matches a wizard prompt:

Confluent Cloud account access

The org-scoped MetricsViewer API key, plus a describe-only Kafka API key per cluster you’ll connect.

LLM backend

Choose Claude API, Ollama, or Bedrock. Prepares Wizard Step 3 — LLM backend.

Slack

Optional — one chat surface per install: Slack, Teams, or none. Slack Socket Mode needs only outbound access.

Microsoft Teams

Optional. Needs a Microsoft 365 tenant with Teams, a bot registration, the app installed in Teams, and the public-HTTPS endpoint in section 8.

Paging: PagerDuty

Optional. One paging provider per install. Prepares Wizard Step 6 — Paging.

Paging: xMatters

Optional. The other supported provider — one HTTP trigger, API-key auth, free plan. Prepares Wizard Step 6 — Paging.
A GitHub change-delivery repository (GitHub repository and Sariva token) is optional on this path — configure it if you want Sariva to open change pull requests.

1. Prepare the host

Address, DNS, and the security group (EC2)

Three things on the AWS side, all of which bit the reference install:
  • Attach an Elastic IP. Without one, the public address changes on every stop/start — the reference host went through four addresses in a week before an EIP was attached.
  • DNS (Teams only): an A record for your hostname pointing at the EIP. If a CDN proxies your DNS (Cloudflare), the record must be DNS-only / unproxied — the TLS terminator on this host has to hold the certificate itself, and a proxied record puts the CDN’s certificate in front of it instead.
  • Security group:

Docker Engine and the Compose plugin

On Amazon Linux 2023 the distro repos carry docker but no docker-compose-plugin package — dnf install docker-compose-plugin fails with No match for argument. Install the plugin by hand into your CLI-plugins directory:
dnf will not update a hand-installed plugin — repeat the download to upgrade it.

git (for the wizard’s repo step)

If Sariva should write changes into your own Terraform repo, the wizard’s change-delivery step asks for a local copy of that repo to scan, and so do sariva terraform discover and sariva terraform adopt. Making that copy needs git, which Amazon Linux 2023 does not ship and the Sariva wheel does not install. Install it before you run the wizard:
Skip this if you won’t configure a change-delivery repo, or if you’ll answer the layout questions instead of scanning a copy.

Outbound reachability

The container needs outbound access to (no inbound is required unless you choose Teams):
⚠WARNING
Egress-proxied networks. Sariva has no explicit proxy configuration. Some of its HTTP clients (httpx-based: Anthropic, GitHub, Confluent Cloud metrics) honour the standard HTTPS_PROXY environment variables by library default, but the Slack client (aiohttp) and the Kafka protocol client (librdkafka) do not — Kafka traffic on 9092 cannot traverse an HTTP proxy at all. Plan for direct egress (or a transparent gateway) to the destinations above.

2. Install the Sariva CLI

Install the CLI on your workstation or on the VM itself — wherever you’ll run the wizard: Install the CLI. Run the wizard in the directory you will run docker compose from. The wheel requires Python ≥ 3.10. On Amazon Linux 2023 the stock python3 is 3.9, so pipx install fails until you install a newer interpreter and point pipx at it:
⚠WARNING
Always pass —python python3.11, upgrades included. On a later pipx install —force of a newer wheel, —force alone drops the interpreter choice and fails with “requires a different Python: 3.9”. The upgrade command in section 10 carries both flags for this reason.
ⓘINFO
The container has no sariva command. The CLI is a local tool for the wizard and validators; the platform image runs the REST API only. Everything operational goes through the REST API (or Slack/Teams) — there is nothing to docker exec into.

3. Run the wizard — option 4

In Step 1 — Deployment path, pick option 4 — Linux VM (Docker), then Confluent Cloud and GitHub. There is no CI/CD applier question on this path — nothing is provisioned on a VM, so the wizard doesn’t ask. The VM path skips every Kubernetes- and provisioning-only prompt (cloud region, initial scaffold, Terraform state, CI/CD applier, CI credential source, network topology, pod AWS identity, scaffold output directory). The seven remaining steps, numbered as the wizard prints them: For Step 4’s credential reference, the VM-native schemes are file:///app/secrets/<name>.json (recommended — the in-container path, see section 7) and env://VAR_NAME — see file:// and env:// credential references. The AWS schemes (arn:aws:secretsmanager:…, arn:aws:ssm:…) also work when the VM has AWS credentials.

4. Review what was generated

Four artifacts, in the current directory: The compose file exactly as the wizard writes it (Claude-API + Teams variant; an Ollama selection adds a sariva-ollama sidecar service and model volume; on a Slack or no-chat install the two Teams comment lines under ports: are a single # REST API; the image tag is stamped with the wizard’s own version):
⚠WARNING
The sariva-platform-data volume is the platform’s memory. The SQLite database in the named Docker volume persists across restarts and holds your admin keys, audit history, and registered clusters. Deleting the volume (docker volume rm sariva-platform-data, or docker compose down -v) loses all three — include it in the VM’s backup story (docker volume inspect sariva-platform-data shows where it lives on disk).

5. Fill the .env

Every secret is a REPLACE_ME_* placeholder. The two the platform refuses to start without are generated, not copied from anywhere — fill them in place:
(The admin REST bearer MUST be shaped sariva_<hex>.) The rest — the LLM key, the chat-surface tokens, CC_METRICS_* — are values you copied from the provider consoles; edit them in with any editor. The full set the wizard emits, by selection: .env holds real secrets once filled — never commit it, and keep it chmod 600.

6. Start the platform

You should see sariva-platform reach Up (healthy) after the ~15s start period. Migrations run automatically on startup — there is no separate schema step. Then:
You should get HTTP 200 with a JSON health summary. The version in that payload must equal the image tag in docker-compose.yml and your CLI’s sariva --version — wheel and image share one version series, and this is the check that you are running what you installed. Your admin REST bearer is the SARIVA_PLATFORM_API_KEY value you set in .env — the platform seeds it at startup, so it authenticates immediately. Every CLI command that takes --api-url http://localhost:8000 reads it from the environment; export it once per shell:
Nothing else listens.

7. Connect a cluster

If you skipped the wizard’s Step 4 (or are adding a cluster later), register it against the running platform. Put the per-cluster credential JSON in ./secrets/ — the directory compose mounts read-only at /app/secrets:
Reference it as file:///app/secrets/creds.json — the in-container path, because the platform resolves credential references inside the container (the register step’s credential gate reads the file from there, not from your shell):
Then confirm:
You should see the cluster with a healthy state and CRED_LIFECYCLE=resolved. Rotation is silent for file:// references: overwrite the file and the next read picks it up — no restart. (env://VAR also works if the variable is set in .env, but every rotation then needs docker compose up -d to recreate the container — see Rotation.)

8. Teams only: expose the messaging endpoint over HTTPS

ⓘINFO
Slack-only install? Skip this section entirely. Slack Socket Mode is outbound-only — the VM needs no inbound access, no TLS certificate, no public endpoint.
MS Teams is different: Microsoft’s Bot Framework calls inbound to /api/teams/messages over public HTTPS. That means three requirements, however you meet them:
  1. https://<your-host>/api/teams/messages must be reachable from the internet (the hostname from section 1’s DNS record).
  2. A valid TLS certificate for <your-host> — Microsoft will not call a plain-HTTP or self-signed endpoint.
  3. The bot’s endpoint address (Teams Developer Portal) or messaging endpoint (Azure Bot) must be exactly that URL (Create the Teams bot).
Any TLS terminator meets them — a corporate customer will usually already have one (a load balancer with a managed certificate, an existing reverse proxy). What follows is the terminator the reference install used: Caddy, which holds an automatic Let’s Encrypt certificate. On Amazon Linux 2023, Caddy’s COPR repo has no AL2023 build — install the binary from the caddyserver.com download instead:
Run it as a systemd unit:
ⓘINFO
Yes, the endpoint is public. Sariva validates the JWT Microsoft signs on every inbound Bot Framework call and rejects everything else — an unauthenticated request to /api/teams/messages does not reach the agents. If you only expose the Teams path, you can additionally restrict the proxy to /api/teams/* and keep the REST API private to the VM.
With the endpoint up, install the app in Teams and set TEAMS_ALERTS_CHANNEL_ID.

9. Validate

From the wizard output directory (where config/customer_config.yaml sits):
validate reads .env automatically on this path — no exporting needed. A REPLACE_ME_* placeholder still left in .env is reported per variable, so a half-filled file tells you exactly which keys remain. Two expected results on a fresh install:
  • GitOps fails until GITHUB_TOKEN is real — expected if you configured a change-delivery repo but haven’t created the token yet.
  • Kafka is a green skip with zero clusters — register one (section 7) and re-run.
The Validate and operate page covers each check’s output and the exit codes; its Kubernetes-only steps (exporting variables, values.yaml) don’t apply here, and the API is already at http://localhost:8000. Then have your first conversation (Slack or Teams), or use the REST API directly — see Using Sariva.

Registered apps on a VM

Apps registered against a VM-shape platform default to infra_type: "other" — no Kubernetes is assumed, and the app-health endpoint reports the pod dimension as NotApplicable instead of an error (what pod health means off Kubernetes). An app registered before 0.5.127 kept the old aws_eks default; move it with:

10. Upgrade in place

Proven live (0.5.126 → 0.5.127 on the reference host). Three steps:
Configuration, the sariva-platform-data volume, secrets/, registered clusters, and registered apps all survive — migrations run automatically on the new container’s first start.
ⓘINFO
Re-running the wizard in a new folder. If you run a newer wizard in a fresh folder and then docker compose up -d there, Docker warns that volume “sariva-platform-data” already exists but was created for project “<old folder>”. The warning is harmless. The container uses the existing volume, so your SQLite database, admin keys and registered clusters carry over. Back up your filled .env first, because the new wizard writes a fresh one with placeholders. Then compare the two files’ key names and copy your old values across.

11. Add a second chat surface later

Adding Slack to a Teams-only install (or the reverse) is a hand edit, not a wizard re-run — re-running the wizard would overwrite your filled .env with fresh placeholders:
  1. Add the notifications.<surface> block to config/customer_config.yaml (copy the shape from the surface’s prerequisites page).
  2. Add the surface’s tokens to .env (SLACK_BOT_TOKEN/SLACK_APP_TOKEN, or TEAMS_APP_ID/TEAMS_APP_PASSWORD/TEAMS_TENANT_ID — plus TEAMS_ALERTS_CHANNEL_ID if cluster-level alerts should reach a Teams channel).
  3. Recreate the container so it picks up the new environment, then validate the new surface:

CloudWatch log scanning (EC2 only)

The error-pattern alerts that scan app logs in CloudWatch work on this path when the VM is an EC2 instance carrying an IAM role. The platform’s CloudWatch reader uses the standard AWS credential chain, which reaches the instance role — no keys in .env, nothing Kubernetes-specific. On a VM that is not an EC2 instance, CloudWatch log scanning is not supported. Three host-side requirements:
  1. An instance role with Logs Insights read on your app log groups:
  1. IMDS hop limit 2 — the platform runs in a bridge-network container, which adds a network hop between it and the instance-metadata service; at the EC2 default hop limit of 1 the container never reaches the role and every scan reports signal_unavailable:
  1. The app registration carries the log group — cloudwatch_log_group plus alert_on_error_pattern, exactly as on EKS. For an app whose logs live in a different AWS account, set cross_account_reader_role_arn (+ aws_region) and author the reader role exactly as on EKS: Cross-account reader setup. Set AWS_REGION in .env if your log groups aren’t in us-east-1.
How the logs get into CloudWatch is the app team’s side — from a Docker host, the awslogs log driver is one ready-made way (it runs in the Docker daemon and uses the same instance role; the hop-limit requirement does not apply to it). The demo workload under bootstrap/demo/vm/ shows the complete wiring end to end, including the write half of the IAM policy.

What this path creates or uses

Continue the deployment path

Next: file:// and env:// credentials

The VM-native credential reference schemes for per-cluster and org-level Kafka credentials.

Back to deployment paths

Compare the supported deployment paths.