Skip to main content
Kubernetes/EKS only. On a VM, skip this page.
Use this when you don’t have AWS SM/SSM standardized, you’re running Sariva off-AWS (GKE, AKS, on-prem), or you need self-hosted mTLS (currently K8s-Secret-only). This is the path verified in the onboarding rehearsal. Prerequisites: a namespace you control for the Secret — the release namespace, a dedicated team-secrets, or any namespace where you keep credentials.

Customer-managed Kubernetes Secret

1. Create the Secret

Self-hosted mTLS (PEM):
Self-hosted mTLS (JKS):

2. Grant Sariva read access (the secrets-read Role) — before you attach

Apply this RBAC before the attach step, or Gate 7 fails credentials_resolve_failed / Forbidden. The chart does not provision it — it’s customer-authored on purpose, so least-privilege scoping is auditable in your repo.
For multiple clusters, use one Role per Secret (cleanest to audit) or one Role with resourceNames: ["secret-A","secret-B",…].

3. Attach the credential (from your laptop, no exec)

Gate 7 calls get secret payments-dev-creds -n team-secrets under the pod’s ServiceAccount and validates the payload shape. On pass → credential_lifecycle=resolved. Use auth_type: api_key for a CC key.

Terraform-managed Kubernetes Secret

Use this only if your CI runner can reach the Kubernetes API and has RBAC to create/update Secrets in the target namespace. For the AWS EKS + GitHub Actions path, AWS Secrets Manager or SSM is usually the cleaner automated store because GitHub Actions can write it through AWS OIDC without needing direct network access to the EKS API. If you use this path, Sariva opens a GitOps PR that creates the observability credential and writes the Kubernetes Secret. The resulting credentials_ref uses the explicit form:

Gate failures