> ## 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.

# Hand-author the configuration

> The expert path — author the Secret, values.yaml, and config/customer_config.yaml directly.

The wizard is the easy path; hand-authoring is the expert path. The schema gate is the enforcement boundary — `sariva validate all` doesn't care whether your YAML came from the wizard or your editor. Canonical schemas:

* `config/schemas/values_schema.py` (`ValuesYaml`) — chart install-time
* `config/schemas/customer_config_schema.py` (`CustomerConfig`) — runtime

ⓘINFO

**The Secret recipe and `values.yaml` below are Kubernetes-only.** On the [Linux VM (Docker) path](https://sariva.mintlify.site/deploy/vm-docker-cc.md) there is no Kubernetes Secret and no `values.yaml`: the same secret keys are plain lines in `.env` (read by compose's `env_file`), and the install-time inputs live in `docker-compose.yml`. Only the `customer_config.yaml` section applies unchanged — it is the same file, same schema, on every path (with a `deployment_path:` block recording the docker shape). Hand-authoring on a VM means editing those two files; the [VM page](https://sariva.mintlify.site/deploy/vm-docker-cc.md#4-review-what-was-generated) shows both as the wizard emits them.

## Create the Kubernetes Secret

```bash theme={null}
kubectl create namespace sariva-platform
SARIVA_AUTH_PEPPER=$(python -c "import secrets; print(secrets.token_hex(32))")

kubectl -n sariva-platform create secret generic sariva-platform-extras \
  --from-literal=SARIVA_AUTH_PEPPER="$SARIVA_AUTH_PEPPER" \
  --from-literal=ANTHROPIC_API_KEY="sk-ant-..." \
  --from-literal=SLACK_BOT_TOKEN="xoxb-..." \
  --from-literal=SLACK_APP_TOKEN="xapp-1-..." \
  --from-literal=GITHUB_TOKEN="ghp-..." \
  --from-literal=SARIVA_PLATFORM_API_KEY="sariva_$(openssl rand -hex 16)" \
  --from-literal=PAGERDUTY_ROUTING_KEY="..." \
  --from-literal=CC_METRICS_API_KEY="..." \
  --from-literal=CC_METRICS_API_SECRET="..."
```

> [!NOTE]
>
> `SARIVA_PLATFORM_API_KEY` (`sariva_<32 hex>`) is your admin REST bearer — the pod seeds its digest at startup so this exact value authenticates the REST API with no exec. **Save the value you set.** `CC_METRICS_API_KEY` / `_SECRET` are the org-scoped `MetricsViewer` pair; the chart surfaces them via `confluentCloud.metrics` (default-on, both `optional: true`) — omit for MSK-only installs.

## Author `values.yaml`

Annotated minimum for a Claude-API + Confluent-Cloud + PagerDuty-paging install (option \[3] prod\_split):

```yaml theme={null}
platform:
  name: "Acme Corp Streaming Platform"
  environment: production
  logLevel: INFO
  logFormat: json

llm:
  backend: claude
  model: claude-sonnet-4-6

ollama:
  enabled: false

image:
  repository: ghcr.io/sariva-inc/sariva-platform
  tag: <version>                # the release you install — same as `sariva --version`

replicaCount: 1
aws:
  region: us-east-1

credentialSource: github_secrets    # github_secrets | aws_ssm — required, no default
awsTopology: prod_split             # derived from initial-scaffold option

tf_state:
  - stage: nonprod
    mode: byob
    bucket_name: acme-nonprod-tf-state
    dynamodb_table_name: acme-nonprod-tf-lock
    region: us-east-1
    aws_account_id: "111111111111"
  - stage: prod
    mode: byob
    bucket_name: acme-prod-tf-state
    dynamodb_table_name: acme-prod-tf-lock
    region: us-east-1
    aws_account_id: "222222222222"

auth:      { existingSecret: sariva-platform-extras }
anthropic: { existingSecret: sariva-platform-extras }
paging:                       # exactly one provider: none | pagerduty | xmatters
  provider: pagerduty
  pagerduty:
    existingSecret: sariva-platform-extras
    routingKeySecretKey: PAGERDUTY_ROUTING_KEY

extraEnv:
  - { name: SLACK_BOT_TOKEN, valueFrom: { secretKeyRef: { name: sariva-platform-extras, key: SLACK_BOT_TOKEN } } }
  - { name: SLACK_APP_TOKEN, valueFrom: { secretKeyRef: { name: sariva-platform-extras, key: SLACK_APP_TOKEN } } }
  - { name: GITHUB_TOKEN,    valueFrom: { secretKeyRef: { name: sariva-platform-extras, key: GITHUB_TOKEN } } }
  - { name: SARIVA_PLATFORM_API_KEY, valueFrom: { secretKeyRef: { name: sariva-platform-extras, key: SARIVA_PLATFORM_API_KEY } } }

serviceAccount:
  create: true
  name: ""
  annotations: {}

persistence:
  enabled: true
  size: 5Gi
  storageClass: ""
  accessMode: ReadWriteOnce
  mountPath: /app/data

agents:
  observability: { enabled: true }
  deployment:    { enabled: true }
alertEngine:       { enabled: true }
backgroundWorkers: { enabled: true }
```

> [!NOTE]
>
> On AWS EKS, the pod AWS identity is normally attached with an EKS Pod Identity association outside Helm. Do not manually add an IRSA annotation to the Helm-managed ServiceAccount unless your chart/version explicitly supports that workflow.

## Author `config/customer_config.yaml`

Runtime config the Sariva platform reads at startup. The unified scaffold uses `stages[]` and `cc_environments[]` arrays; each `kafka_clusters[]` entry has `stage` and `env` foreign keys into them.

```yaml theme={null}
stages:
  - { name: nonprod, aws_account_id: "111111111111", aws_region: us-east-1 }
  - { name: prod,    aws_account_id: "222222222222", aws_region: us-east-1 }

cc_environments:
  - { name: nonprod_env, stage: nonprod, stream_governance_package: NONE }  # NONE | ESSENTIALS | ADVANCED
  - { name: prod_env,    stage: prod,    stream_governance_package: NONE }

notifications:
  slack:
    approval_channel: "#kafka-approvals"
    alerts_channel:   "#kafka-alerts"

# Paging is NOT configured here — it is install-level: values.yaml::paging on
# Kubernetes, PAGING_PROVIDER in .env on the VM path (see the Paging pages).

kafka_clusters:
  - cluster_alias: prod_cluster
    flavor: confluent_cloud
    stage: prod                  # FK → stages[].name
    env: prod_env                # FK → cc_environments[].name
    bootstrap_servers: "pkc-yyyyy.us-east-1.aws.confluent.cloud:9092"
    auth_type: api_key
    confluent_env_id: env-yyyyy
    confluent_cluster_id: lkc-yyyyy
    credentials_ref: k8s://team-secrets/prod-cluster-creds
```

The full schema is in `config/schemas/customer_config_schema.py`; the mount path inside the pod is `/app/customer_config.yaml`. Install with the `--set-file` flag — see [Deploy the Sariva platform](https://sariva.mintlify.site/install-setup/deploy-platform.md).


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