> ## Documentation Index
> Fetch the complete documentation index at: https://sariva.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How Sariva works

> The high-level picture — what Sariva is, where it runs, and how the pieces fit together.

Sariva is an AI platform that lets your team **operate Kafka and Flink by talking to it** — ask about cluster health, get alerted on problems, and make infrastructure changes through natural language, with a human approving every change.

It is **self-hosted**: Sariva runs in *your* environment — an EKS cluster or a [plain Linux VM](https://sariva.mintlify.site/deploy/vm-docker-cc.md) — talks to *your* Kafka, opens PRs against *your* GitHub repo, and posts to *your* Slack or Microsoft Teams. There is no shared multi-tenant service — your data and credentials stay in your environment.

## The big picture

```mermaid theme={null}
flowchart LR
  subgraph env["Your environment"]
    sariva["Sariva platform<br/>agents + REST API<br/>(EKS pod or VM container)"]
    secrets["Credential store<br/>K8s Secret / Secrets Manager / SSM<br/>or file:// / env:// on a VM"]
  end
  chat["Slack / Microsoft Teams"]
  kafka["Your Kafka<br/>Confluent Cloud / MSK / self-hosted"]
  gh["GitHub repo + CI<br/>GitHub Actions"]

  chat -->|"questions & changes"| sariva
  sariva -->|"answers, alerts & approvals"| chat
  sariva -->|"read metrics & describe (read-only)"| kafka
  sariva -->|"read credential references"| secrets
  sariva -->|"open PRs / poll runs"| gh
  gh -->|"terraform apply"| kafka
```

## Where it runs

| | AWS EKS | Linux VM (Docker) |
| - | - | - |
| Install | One Helm release; the platform runs as a pod | One container from the wizard-emitted `docker-compose.yml` (`docker compose up -d`) |
| Settings and secrets | `values.yaml`, `config/customer_config.yaml` and a Kubernetes Secret | `.env` and `config/customer_config.yaml` next to the compose file |
| Per-cluster Kafka credentials | Kubernetes Secret, AWS Secrets Manager or SSM | `file://` — a JSON file in `./secrets`, mounted read-only at `/app/secrets` — or `env://` |
| Kafka | Confluent Cloud, or Confluent Platform via CFK | Existing Confluent Cloud clusters |
| Details | [AWS EKS + Confluent Cloud](https://sariva.mintlify.site/deploy/aws-eks-cc.md) | [Linux VM (Docker) + Confluent Cloud](https://sariva.mintlify.site/deploy/vm-docker-cc.md) |

## The pieces

* **Sariva platform** — hosts the AI agents and a REST API. This is the only thing you install: one Helm release on EKS, or one Docker container on the [VM path](https://sariva.mintlify.site/deploy/vm-docker-cc.md).
* **Your Kafka** — Confluent Cloud, MSK, or self-hosted. Sariva connects **read-only** for metrics and admin describes.
* **Slack / Microsoft Teams** — where your team asks questions and approves changes (one per install, or none).
* **GitHub + CI** — infrastructure changes land as pull requests; your CI (GitHub Actions) runs `terraform apply` after a human merges.
* **Secret store** — Sariva reads credential *references* on demand; it **never stores the secret values** themselves.

## What it does

1. **Observe** — answer "is this cluster healthy?" / "what's the lag?" from live metrics.
2. **Alert** — proactively warn your team in Slack or Teams when lag, pod health, or delivery-risk signals drift.
3. **Change** — turn "add a cluster / topic / environment" into a reviewed Terraform PR.

> [!NOTE]
>
> **Two principles worth knowing up front:** Sariva **proposes**, humans **approve** — it never applies infrastructure changes on its own. And toward your CI it is **outbound-only** — your CI runs `terraform apply` and Sariva polls GitHub for the result; CI never calls into Sariva. Slack is outbound too (Socket Mode). **Microsoft Teams is the one inbound path:** Microsoft calls `POST /api/teams/messages` over public HTTPS, and Sariva validates the token Microsoft signs on every call before it acts on the message.

> [!WARNING]
>
> **Sariva never stores your secrets.** Broker and cloud credentials live in *your* store — a Kubernetes Secret, AWS Secrets Manager or SSM (often written there by Terraform), or on a VM a JSON file in `./secrets` (`file://`) or an environment variable (`env://`). Sariva persists only a **reference** to them and reads the value on demand at the moment of use — it never holds, copies, or logs the secret itself.

Next: [Agents & request flow](https://sariva.mintlify.site/concepts/agents.md) · [The GitOps approval loop](https://sariva.mintlify.site/concepts/gitops-loop.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.