Rotating LLM API key and Gitea password

Change the LLM API key or the Gitea password in the engine configuration of Cloudera Migration Assistant, and restart the pods that use the new value. Rotate these secrets on the schedule that your security policy requires.

  • You are an Anywhere Cloud administrator.
  • For the LLM API key: you have a new API key from your LLM provider.
  • For the Gitea password: the new password has at least 8 characters.
  • If Reloader is not installed in the cluster, you have kubectl access to the namespace of the Cloudera Migration Assistant engine instance. See Configuring kubectl access and Kubernetes secrets in the Anywhere Cloud documentation.
  1. In the Anywhere Cloud Console, go to the Engine instances tab of the Apps page.
  2. Open the engine configuration of the Cloudera Migration Assistant engine instance.
  3. Enter the new value in one of these fields:
    • LLM API Key
    • Gitea CMA User Password
  4. Save the engine configuration.
    Anywhere Cloud stores the new value in the Secret of the instance. If Reloader is installed in the cluster, the pods that read the value restart by themselves, and you can skip steps 5 through 7.
  5. List the deployments in the namespace of the instance:
    kubectl -n [***NAMESPACE***] get deployments
  6. Restart the deployments that read the value:
    • For the LLM API key, restart the deployments whose names end in -master-server and -code-migrator.
    • For the Gitea password, restart the deployment whose name ends in -gitea.
    kubectl -n [***NAMESPACE***] rollout restart deployment/[***DEPLOYMENT-NAME***]
  7. Wait until the restarted pods are running:
    kubectl -n [***NAMESPACE***] rollout status deployment/[***DEPLOYMENT-NAME***]

After the restart, Code Migrator uses the new LLM API key. Cloudera Migration Assistant cannot check the key. If it is wrong, Code Migrator jobs return an error. See Configuring LLM connection.

After the restart, the built-in Git server accepts the new password for the cmaadmin user. A new Gitea CMA User Password changes the existing cmaadmin user in Gitea, not only at the first installation. The Cloudera Migration Assistant services and Code Migrator use their own access tokens, not the cmaadmin password, so the change does not affect them. Update the password in every Git client that uses the cmaadmin user.