Store cluster credentials, SSH keys, and OAuth secrets in HashiCorp Vault instead of
the CMA database so migration configuration files contain
Vault paths and credentials are masked in the UI.
When Vault is enabled, CMA stores cluster credentials
(Cloudera Manager passwords, SSH keys) as Vault KV v2 secrets. Configuration files generated
during migration contain only Vault paths, not plaintext credentials. Credentials are masked
in the CMA UI.
What is stored in Vault
Secret type
Vault path
Stored when
Cloudera Manager credentials
secret/cma/clusters/<id>/cm
Cluster registration
SSH keys
secret/cma/clusters/<id>/ssh
SSH credential configuration
Database passwords
secret/cma/db
CMA startup (when Vault is enabled)
OAuth2 client secrets
secret/cma/auth
CMA startup (when Vault is enabled)
When Vault is not configured, credentials are stored encrypted in the CMA database (H2 or PostgreSQL). The encryption key is
derived from the database password.
Parcel deployment options
You can enable Vault using a Cloudera Manager-managed Vault service or
by running the Vault binary bundled with the CMA
parcel.
Option 1 — CM-managed Vault service: If the Vault CSD
and parcel are deployed in Cloudera Manager, CMA can
auto-detect the Vault service dependency.
Deploy the Vault parcel and add the Vault service in Cloudera Manager.
In CMA Master > Server > Configuration, set
Vault Role ID (AppRole auth) and Vault Secret ID
(AppRole auth).
Restart the CMA Master service.
Option 2 — External Vault using the bundled Vault
binary: Use the Vault binary and scripts shipped with the CMA parcel on the CMA Server host.
Prerequisites: SSH (root) access to the CMA Server host;
the CMA parcel is installed and activated;
python3, wget, and unzip are
available; outbound HTTPS access to releases.hashicorp.com for the
Vault binary download.
SSH to the CMA Server host and install and start Vault.
In CMA Master > Server > Configuration, set
External Vault URL (for example
http://127.0.0.1:8210), Vault Role ID (AppRole
auth), and Vault Secret ID (AppRole auth).
Restart the CMA Master service from Cloudera Manager.
Verify that the vault profile is active on the CMA Server host: