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

# Migrating an older credential

> Move a cluster off the early credential flow onto a supported provider.

> [!NOTE]
>
> Kubernetes/EKS only. On a VM, skip this page.

If you onboarded under an early credential flow (image `0.4.12-cred-flow`) — a K8s Secret with `KAFKA_API_KEY` / `KAFKA_API_SECRET` keys in Sariva's release namespace — migrate as follows.

**1. Pick a provider**

Choose where the credential will live post-migration — [Kubernetes Secret](https://sariva.mintlify.site/connecting-clusters/kubernetes-secret.md), [AWS Secrets Manager](https://sariva.mintlify.site/connecting-clusters/aws-secrets-manager.md), or [AWS SSM](https://sariva.mintlify.site/connecting-clusters/aws-ssm.md).

**2. Recreate the credential**

* Staying on K8s Secret: create a new Secret with **lowercase** `api_key` / `api_secret` keys in a namespace you control — the old `KAFKA_API_KEY` / `KAFKA_API_SECRET` schema no longer works.
* Moving to AWS SM/SSM: create the resource and grant Sariva read access.

**3. Update the cluster YAML**

Set the new `credentials_ref` URI, or update the generated credential-store configuration if Terraform manages the observability credential.

**4. Trigger reconciliation**

The watcher detects the change and runs the credential gate against the new reference.

**5. Delete the old Secret**

Remove the old Secret in Sariva's release namespace manually — Sariva won't clean it up (it never owned it).

> [!WARNING]
>
> The old `k8s_secret://<name>` shorthand is **rejected** — rewrite to explicit `k8s://<namespace>/<name>`.


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