Skip to main content
CetiRun

Certificates and credentials

The certificates, keys, and passwords of a CetiRun installation, their source, how to renew them, and what make deploy checks.

A CetiRun installation uses certificates, keys, and passwords that you supply, and some that the charts generate. CetiRun does not renew the certificates that you supply. Record the expiry date of each certificate, and renew it before it expires. make deploy examines the certificates before it writes, so an expired certificate also stops the next run.

The names on this page are the default names of an installation with make deploy, in the default namespaces. The Agent Identity Broker runs in the Broker namespace, the broker.namespace of the environment file.

TLS certificates

CertificateSourceHow to renewmake deploy checks
cetirun-tls in aks-istio-ingress, the certificate of the ingress gatewayYou. With publicTLS, cert-managerReplace the ingress certificate. With publicTLS, cert-manager renews itValid now, and covers domain
cetirun-sandbox-admission-tls in cetirun-system, and sandboxAdmission.caBundleYouTrust the old and the new CA together first, then replace the certificate. Refer to Availability and bootstrapThe chain against caBundle, and the host name of the admission Service
connections-mcp-tls and connections-mcp-ca in cetirun-systemYouRotation, shutdown and recoveryThe chain against the MCP CA, and the host name of the MCP Service
broker-tls in the Broker namespaceYouSameThe chain, and the host name of the Broker Service
broker-client-tls in cetirun-systemYouSameThe chain, the client purpose, and the URI of the Connections MCP service account
cetirun-adx-mon-ingestor-tls in cetirun-system, the certificate of the ADX-Mon ingestorThe observability chart. Valid for 3650 daysNo actionThe Secret must stay

The admission server, the Broker, and Connections MCP read a replaced certificate from their mounted Secret without a restart. The clients of a new CA must trust it before you replace a leaf certificate.

make deploy checks the expiry of the ingress certificate. For the other certificates, it runs openssl verify -x509_strict, including the configured server hostname or client purpose and URI. The CA must include a Subject Key Identifier (SKI), and leaves must include an Authority Key Identifier (AKI). An expired certificate or a chain accepted only by ordinary, non-strict verification stops the deployment. Refer to the internal certificate example.

The error does not name the certificate. This loop prints only the public part of each certificate. It shows the subject and the expiry, and it reports a certificate that expires within 30 days. Replace <broker-namespace> first:

for s in cetirun-system/cetirun-sandbox-admission-tls cetirun-system/connections-mcp-tls \
  cetirun-system/broker-client-tls aks-istio-ingress/cetirun-tls <broker-namespace>/broker-tls; do
  kubectl get secret "${s#*/}" -n "${s%/*}" -o jsonpath='{.data.tls\.crt}' | base64 -d |
    openssl x509 -noout -subject -enddate -checkend 2592000
done

Replace the ingress certificate

If you supply cetirun-tls, replace the Secret before the certificate expires. kubectl create does not change a Secret that exists. Make the new Secret with a client-side dry run, and replace the existing one with it:

kubectl create secret tls cetirun-tls --namespace aks-istio-ingress \
  --cert=/absolute/private/ingress-tls/tls.crt \
  --key=/absolute/private/ingress-tls/tls.key \
  --dry-run=client -o yaml | kubectl replace -f -

Then make sure that the ingress serves the new certificate:

openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null |
  openssl x509 -noout -subject -enddate

With publicTLS, do not replace cetirun-tls. cert-manager owns it.

Propagate a new MCP CA to existing Agents

Follow the CA replacement sequence: distribute trust in both CAs before rotating leaves, verify new connections, and only then remove the old CA.

The Operator copies connections-mcp-ca from its namespace into each supported native Agent namespace during reconciliation. Updating the source Secret alone does not enqueue every existing Agent. For a current Ready Agent, use the normal retained restart to trigger reconciliation and load the changed trust. Do not patch the Agent’s StatefulSet or its copied Secret directly. Suspended Agents receive the current trust when they resume.

Before rotating the MCP server leaf, verify that each active client has the combined CA bundle, that its requested restart has been observed, and that its new Pod is Ready. After removing the old CA from the source bundle, repeat the propagation and client verification. Server certificate hot reload does not replace these client checks. Keep internal certificate renewal separate from cert-manager’s renewal of the public ingress certificate.

Keys and passwords

CredentialSourceHow to renewmake deploy checks
AI Gateway master key and console password: master-key and ui-password in cetirun-ai-gateway-authYouChange the value, then restart the AI Gateway. Refer to Changing a credential takes a restartThe keys exist
AI Gateway salt key: salt-key in cetirun-ai-gateway-authYouDo not change it. Refer to The salt key must never changeThe key exists
AI Gateway Valkey password: gateway-valkey-authYouChange it, then restart Valkey and the AI GatewayThe key exists
AI Gateway database password: cetirun-ai-gateway-postgresqlThe AI Gateway chartChange the password in the database, update the Secret, and restart the AI Gateway. Refer to CredentialsThe Secret exists while the database volume exists
Model provider keys: gateway-provider-keysYouReplace the key, then restart the AI Gateway. Keep the old key valid until the restart endsEach key that a model names
OAuth2 Proxy cookie key: oauth2-proxy-credentials in cetirun-istioThe Istio chart, at the first installationmake deploy has no rotation procedure. A new key signs out all usersThe Secret exists on an upgrade
Session store password: oauth2-proxy-sessions in cetirun-istioThe Istio chartReplace the Secret, then run make deploy. Refer to OAuth session storageThe Secret exists
Connection-record key: the Key Vault key of identity.keyVaultKeyUrlYouAdd a new key version, and keep the old versions enabled. Refer to Create the encryption foundationNot checked

A restart of the AI Gateway replaces its Pods. To restart it, run kubectl rollout restart deployment/cetirun-ai-gateway -n cetirun-system. This command writes to the cluster.

Provider and integration credentials

CredentialSourceHow to renewmake deploy checks
Operator registry credential: the Secret of acrDockerSecret, for example acr-helm-pullYou. The ACR token of the example expires after 90 daysGenerate a new password and replace the Secret. Refer to Example: Azure Container RegistryThe Secret exists
GitHub App: the Secret of the App in the Broker namespace, for example github-appYouRegister the platform AppThe client-secret key
GitHub OAuth and Google OAuth clients: their Secrets in the Broker namespace, for example github-oauth and google-oauthYouReplace the Secret, then restart the Broker. Refer to Rotation, refresh, and removalThe client ID and the client secret
Skill Marketplace repository: the Secret of skillMarketplace.repository.existingSecret in cetirun-system, for example skills-repositoryYouReplace the Secret. The worker reads it again at each check. Refer to The repository and its credentialsThe keys of the selected auth
CetiAdmin Slack tokens: the Secret of monitor.slackSecretNameYouReplace the SecretThe key names
publicTLS ACME accounts and certificates in aks-istio-ingresscert-managercert-manager renews them. make deploy-verify examines the renewalmake deploy waits until both certificates are ready

The Portal sign-in application, the Agent Identity Blueprint, the Authorization application, and the encryption identity use federated credentials, not client secrets. So do the managed identities <clusterName>-adx-ingestor and <clusterName>-gateway-content of the cluster template. They have no secret to renew. Their federated credentials name the OIDC issuer of the cluster, so a new cluster needs new federated credentials.