Skip to main content
Kubernetes/EKS only. On a VM, skip this page.
The Sariva platform runs as a pod in your EKS cluster. Some features require that pod to call AWS APIs directly:
  • read observability credentials from AWS Secrets Manager or AWS SSM Parameter Store;
  • read app logs from CloudWatch;
  • check app pod health through the EKS API;
  • connect to Amazon MSK with IAM auth;
  • call AWS Bedrock if Bedrock is selected as the LLM backend.
For EKS, use EKS Pod Identity for the Sariva platform pod. Do not manually annotate the Helm-managed ServiceAccount with an IRSA role. The Helm chart owns the ServiceAccount, and a later Helm upgrade can remove manual annotations. A Pod Identity association is external to the Helm chart and survives Helm upgrades.
ⓘINFO
Wire this before the pod first needs AWS access. This is not always a hard gate before the initial Helm install. If you start with Claude API, Confluent Cloud, and Kubernetes Secrets only, you can skip this page initially. If you later switch a Kafka credential reference to AWS Secrets Manager or SSM, create the Pod Identity association and restart the pod before registering or patching that Kafka cluster.

When pod AWS identity is required

⚠WARNING
The pod reads observability credentials only. Do not grant the Sariva platform pod access to the Kafka admin key at <stage>/<env>/clusters/<cluster>/kafka-admin. The admin key is for GitHub Actions / Terraform. The pod needs read access only to <stage>/<env>/clusters/<cluster>/observability-reader.

Credential-store mapping at Kafka cluster connection time

1. Set variables

Use the namespace and ServiceAccount from the Sariva Helm release. The default release uses namespace sariva-platform and ServiceAccount sariva-platform.

2. Create the Pod Identity trust policy

Create pod-identity-trust-policy.json:
Create the IAM role:

3. Attach only the runtime permissions the pod needs

Example: AWS Secrets Manager observability credentials only

Use this when the pod only needs to read Kafka observability credentials from AWS Secrets Manager:
AWS Secrets Manager appends a random suffix to the secret ARN. Keep the trailing * on observability-reader*.

Example: AWS SSM observability credentials only

Add other feature permissions only when enabled

The cross-account assume statement, written out — add one Resource entry per target account’s reader role (a JSON array if several):
Keep sts:TagSession in the same statement as sts:AssumeRole. Omitting it — or scoping Resource to the wrong ARN — makes every cross-account read fail AccessDenied (the reader role’s trust policy needs the matching sts:TagSession too; see Cross-account reader setup).
!DANGER
Do not use one broad AWS policy for every possible future feature. Add only the statements for features you actually enable.

4. Install the EKS Pod Identity Agent add-on

The Pod Identity association in the next step only takes effect if the EKS Pod Identity Agent add-on is running on the cluster — and it is not installed by default. Install it once per cluster:
Confirm it is running (one pod per node, all ready):
If the add-on is missing you can still create the association below, but the pod will get NoCredentialsError until the agent is installed.

5. Create the EKS Pod Identity association

Create the association between the IAM role and the Sariva platform Kubernetes ServiceAccount:
If the Sariva platform pod is already running, restart it so it receives the new identity:
ⓘINFO
This is safe after install. It is a normal rolling restart. The admin bearer seed is idempotent, platform.db remains on the PVC, and existing API keys are not recreated or lost.
⚠WARNING
The association is scoped to this EKS cluster. It survives Helm upgrades, but if you delete and recreate the EKS cluster the association is gone. The IAM role itself persists (IAM is account-level), so after a cluster rebuild just re-run this association step and restart the pod.

6. Verify pod identity after deploy

Port-forward or use any shell that can reach the cluster, then find the deployment:
Expected result: the printed ARN is an assumed-role session for the Pod Identity IAM role you associated. If the command fails, check:

Add pod identity later before registering AWS credential refs

If the platform is already running and you later move Kafka credentials to AWS Secrets Manager or SSM:
  1. Create or update the Pod Identity role and policy.
  2. Create the Pod Identity association for the Sariva platform ServiceAccount.
  3. Restart the pod.
  4. Then register or patch the Kafka cluster with the AWS credential reference.
!DANGER
Do not register or patch a Kafka cluster with an AWS Secrets Manager or SSM credential reference before the pod has AWS read access to the observability credential path. The platform must hold the AWS role first, or credential resolution fails.

Continue the deployment path

Next: deploy the Sariva platform

Install the Helm chart using values.yaml, config/customer_config.yaml, and the runtime Secret. Pod Identity can also be associated later before the pod first needs AWS access.

Back to deployment path

Return to the supported deployment path checklist.