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

# Confluent Cloud credentials for CI

> Provide the Confluent Cloud OrganizationAdmin Cloud API key to CI — as GitHub Actions secrets or AWS SSM parameters, depending on your credential source.

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

The **OrganizationAdmin Cloud API key** lets GitHub Actions / Terraform create Confluent Cloud resources — service accounts, API keys, RBAC bindings, and the Kafka cluster itself. The emitted Terraform workflow reads it at apply time.

Where this key lives is **not always GitHub**. It depends on the **credential source** you select in the setup wizard:

| `credentialSource` | The OrganizationAdmin key lives in | The emitted workflow reads it via |
| - | - | - |
| `github_secrets` | GitHub Actions repository secrets | `${{ secrets.CONFLUENT_CLOUD_API_KEY }}` |
| `aws_ssm` | AWS SSM Parameter Store (SecureString) | `aws ssm get-parameter` in a setup step |

ⓘINFO

**This is the org admin key only.** The Confluent Cloud **metrics** key goes into the Sariva runtime Secret (the pod reads it). The per-cluster **admin** and **observability** Kafka keys live in your Kafka credential store after the cluster exists — see [Confluent Cloud per-cluster credentials](https://sariva.mintlify.site/connecting-clusters/cc-per-cluster-access.md). Do not put any of those here.

Pick the tab that matches the credential source you chose in the wizard.

> [tab] GitHub Actions secrets (github\_secrets)
>
> Set the org admin key and secret as repository secrets on the GitOps repo. They sit alongside `AWS_ROLE_TO_ASSUME` from [AWS S3/DynamoDB state with GitHub Actions](https://sariva.mintlify.site/install-setup/access-and-state/aws-github-actions.md).
>
> **Option A — GitHub UI**
>
> 1. Open the GitHub repository that holds the Sariva GitOps scaffold.
> 2. Go to **Settings → Secrets and variables → Actions → New repository secret**.
> 3. Add both secrets:
>
> | Secret name | Value |
> | - | - |
> | `CONFLUENT_CLOUD_API_KEY` | Your Confluent Cloud OrganizationAdmin Cloud API key |
> | `CONFLUENT_CLOUD_API_SECRET` | Your Confluent Cloud OrganizationAdmin Cloud API secret |
>
> **Option B — GitHub CLI**
>
> ```bash theme={null}
> gh secret set CONFLUENT_CLOUD_API_KEY \
>   --repo "<github-owner>/<gitops-repo>" \
>   --body "<your-confluent-cloud-org-admin-api-key>"
>
> gh secret set CONFLUENT_CLOUD_API_SECRET \
>   --repo "<github-owner>/<gitops-repo>" \
>   --body "<your-confluent-cloud-org-admin-api-secret>"
> ```
>
> **Validate**
>
> ```bash theme={null}
> gh secret list --repo "<github-owner>/<gitops-repo>"
> ```
>
> Expect `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` present, alongside `AWS_ROLE_TO_ASSUME`.

> [tab] AWS SSM Parameter Store (aws\_ssm)
>
> Store the org admin key and secret as **SecureString** parameters. The emitted workflow fetches them with `aws ssm get-parameter` at apply time, so they are **not** GitHub repository secrets in this path.
>
> Use the path convention the generated workflow expects (`<stage>` is your wizard stage, for example `dev`):
>
> ```bash theme={null}
> export SARIVA_STAGE="dev"
> export AWS_REGION="us-east-1"
>
> aws ssm put-parameter \
>   --region "$AWS_REGION" \
>   --name "/sariva/${SARIVA_STAGE}/confluent_cloud/api_key" \
>   --type SecureString \
>   --value "<your-confluent-cloud-org-admin-api-key>"
>
> aws ssm put-parameter \
>   --region "$AWS_REGION" \
>   --name "/sariva/${SARIVA_STAGE}/confluent_cloud/api_secret" \
>   --type SecureString \
>   --value "<your-confluent-cloud-org-admin-api-secret>"
> ```
>
> For a customer-managed KMS key, add `--key-id <kms-key-id>` to each command.
>
> ⚠WARNING
>
> **The CI runner role needs read access.** Grant the GitHub Actions OIDC role `ssm:GetParameter` on `/sariva/<stage>/confluent_cloud/*`, plus `kms:Decrypt` if the parameters use a customer-managed key. See [CI → AWS auth & credentials](https://sariva.mintlify.site/install-setup/ci-aws-auth.md) for the exact IAM statements.
>
> **Validate**
>
> ```bash theme={null}
> aws ssm get-parameter \
>   --name "/sariva/${SARIVA_STAGE}/confluent_cloud/api_key" \
>   --with-decryption \
>   --query 'Parameter.Name' --output text
> ```
>
> Repeat for `api_secret`. In this path, `CONFLUENT_CLOUD_API_KEY` is **not** a GitHub secret.

## Continue the deployment path

> [card] [Next: Install the Sariva CLI](https://sariva.mintlify.site/getting-started/install-cli.md)
>
> Install the local `sariva` CLI from the delivered wheel. Required before running the setup wizard.

> [card] [Back to the deployment path](https://sariva.mintlify.site/deploy/aws-eks-cc.md)
>
> Return to the full path map to confirm where this task fits.


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