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

# Credential rotation

> Rotate a per-cluster credential with no restart, re-registration, or gate re-run.

Rotation is **silent for every store the platform re-reads at resolve time**. Update the value where it lives — Sariva reads the new value on the next tool call automatically. No re-registration, no gate re-run, and for every provider except `env://` no restart:

| Provider | Rotation method | Restart? |
| - | - | - |
| AWS Secrets Manager | `aws secretsmanager update-secret --secret-id <arn> --secret-string '{"api_key":"…","api_secret":"…"}'` | No |
| AWS SSM | `aws ssm put-parameter --name <path> --value '{"api_key":"…","api_secret":"…"}' --overwrite` | No |
| Kubernetes Secret | `kubectl create secret generic <name> --from-literal=api_key=… --from-literal=api_secret=… -n <ns> --dry-run=client -o yaml \| kubectl apply -f -` | No |
| `file://` (VM path) | Overwrite the JSON file in `./secrets/` — the next read picks it up | No |
| `env://` (VM path) | Update the variable's line in `.env` — but the container's environment is **fixed at start** | **Yes** — `docker compose up -d` after the edit |

The `env://` row is the one exception to "silent": a container reads its environment once, at creation. This is one of the reasons the [VM path](https://sariva.mintlify.site/deploy/vm-docker-cc.md) recommends `file://` over `env://` for per-cluster credentials.

## Terraform-managed observability credentials

For Sariva-Terraform-managed credentials, rotation is also driven by Terraform: DM *"rotate observability credential for `<alias>`"*, merge the PR. Terraform destroys + recreates the `confluent_api_key` and updates the stored value in place via the same secret/parameter resource. The URI stays the same; consumers pick up the new value on their next read.

> [!NOTE]
>
> Need to move a credential to a different provider rather than rotate it in place? See [Migrating an older credential](https://sariva.mintlify.site/connecting-clusters/migration.md).


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