Skip to main content
Kubernetes/EKS only. On a VM, skip this page.
This page is a detailed reference. For the supported AWS EKS + GitHub Actions deployment path, use the copy-paste task: AWS S3/DynamoDB state with GitHub Actions.

What the GitHub Actions role does

The GitHub Actions role is a customer-owned CI runner role. It is assumed by GitHub Actions through GitHub OIDC. It is not the same identity as the Sariva platform pod.

Role naming

Use a customer-owned role name. The documented convention is:
Example:

OIDC trust

The role trust policy should allow sts:AssumeRoleWithWebIdentity from the GitHub OIDC provider for the selected repository. For production, narrow the sub condition to a protected branch or environment.

Base state permissions

At minimum, the role needs:
  • s3:ListBucket, s3:GetObject, s3:PutObject, s3:DeleteObject on the Terraform state bucket;
  • dynamodb:GetItem, dynamodb:PutItem, dynamodb:DeleteItem, dynamodb:DescribeTable on the lock table.

AWS Secrets Manager credential-store permissions

When AWS Secrets Manager stores per-Kafka-cluster credentials, the role needs stage-scoped access to:
Required actions:
secretsmanager:GetResourcePolicy is required. Terraform reads the secret policy on create/refresh; omitting it can fail the apply after the secret shell exists and before the secret value is written.

AWS SSM credential-store permissions

When SSM Parameter Store stores per-Kafka-cluster credentials, grant the role stage-scoped access to:
At minimum, grant ssm:GetParameter and ssm:PutParameter. Add KMS permissions if SecureString parameters use a customer-managed KMS key.

GitHub Actions repository secrets

The generated workflow needs these repository secrets: Do not put per-Kafka-cluster admin or observability Kafka credentials in GitHub repository secrets for the AWS-native credential-store path. Store those credentials in AWS Secrets Manager or SSM.

Runtime pod read permissions are separate

The Sariva platform pod does not use the GitHub Actions role. If the runtime observability credential is in AWS Secrets Manager or SSM, configure the pod AWS identity on Wire the pod’s AWS identity.