How secrets are stored

Cloudera Migration Assistant keeps passwords, keys, and tokens in Kubernetes Secrets in the namespace of each engine instance, and connection credentials in the credential store of each agent.

Engine secrets

Cloudera Migration Assistant stores the passwords and keys that you enter in the engine configuration, and the passwords that it generates, in Kubernetes Secrets. It never writes them to the configuration of the instance. In the following table, [***INSTANCE***] is the name of the engine instance.

Table 1. Kubernetes Secrets of Cloudera Migration Assistant
Secret What it holds How to change it
[***INSTANCE***]-config-secrets The passwords and keys that you enter in the engine configuration in the Anywhere Cloud Console: LLM API Key, Machine User Password, and Internal Keystore Password. On an agent, the Internal Keystore Password of the agent. Change the field in the engine configuration. See Rotating LLM API key and Gitea password.
[***INSTANCE***]-cma-credentials The same values, when the instance was not created in the Anywhere Cloud Console. Also holds a client secret that Cloudera Migration Assistant generates for its own services. Change the field in the engine configuration. Anywhere Cloud reapplies this Secret, so do not edit it.
[***INSTANCE***]-agent-credentials The Internal Keystore Password of an agent that was not created in the Anywhere Cloud Console. Do not change it on a running agent.
[***INSTANCE***]-gitea-cma-user The password of the cmaadmin user of the built-in Git server. Change Gitea CMA User Password in the engine configuration.
[***INSTANCE***]-gitea-admin The password of the gitea-admin site administrator of the built-in Git server. Cloudera Migration Assistant always generates it. Use this account only for emergency access. You cannot set it.
[***INSTANCE***]-gitea-tokens The access tokens that the Cloudera Migration Assistant services use for the built-in Git server. Cloudera Migration Assistant manages them.
[***INSTANCE***]-db-[***USER***] The passwords of the PostgreSQL database users. Cloudera Migration Assistant manages them.
[***INSTANCE***]-agent-admin The password of the built-in admin user of an agent. Cloudera Migration Assistant generates it when the agent is deployed. Cloudera Migration Assistant manages it.

The Code Migrator pods mount the LLM API key as a file. Cloudera Migration Assistant never writes it to its database.

Each pod mounts only the keys that it needs, and reads its passwords when it starts. A pod therefore uses a new password only after it restarts. See Rotating LLM API key and Gitea password.

Change secrets in the engine configuration, not by editing the Kubernetes Secrets. To read a Secret, for example the gitea-admin password, you need kubectl access to the cluster. See Configuring kubectl access and Kubernetes secrets in the Anywhere Cloud documentation.

Internal keystores

The Cloudera Migration Assistant engine and each agent keep an internal keystore on a persistent volume. The keystore holds the keys and certificates that the pods use internally. The Internal Keystore Password protects it. If you leave the password empty when you deploy, Cloudera Migration Assistant generates it. The keystores of the Cloudera Migration Assistant engine and of an agent are independent, so their passwords do not need to match.

Connection credentials

When you create a connection to a cluster, Cloudera Migration Assistant does not store its credentials in the Cloudera Migration Assistant database. The agent that serves the cluster keeps them in its credential store. By default, the credential store is the internal keystore of the agent. An agent inside the Anywhere Cloud cluster can keep them in Anywhere Cloud Secret Service instead. See Using Anywhere Cloud Secret Service and Vault for agent secrets.