Encrypt sensitive configuration values

Configuration encryption provides privacy and increased security for sensitive configuration values, such as passwords.

After you activate configuration encryption, sensitive configuration values entered in the DSE OpsCenter user interface are encrypted dynamically, and then transmitted and written in an encrypted state to the relevant configuration files. Once encrypted, most sensitive configuration values cannot be changed directly in the user interface. Instead, you must manually encrypt sensitive values, and then enter the new, encrypted values into the appropriate configuration files.

Encryption limitations

  • Lifecycle Manager (LCM) isn’t compatible with configuration encryption in DSE and OpsCenter. For more information, see Encrypt DSE configuration values.

  • Encryption isn’t retroactive for backup credentials. At the time that you enable configuration encryption, you must manually encrypt any credentials used to access existing destinations for scheduled backups. For example, you must manually encrypt the access_secret field for any scheduled backups to Amazon S3.

Encrypted fields

When configuration encryption is enabled, the following fields are eligible for encryption. Some fields are optional and must be opted in to encryption.

Encrypted fields in CLUSTER_NAME.conf
  • jmx section: password

  • cassandra section: password, ssl_keystore_password, ssl_truststore_password

  • storage_cassandra section: password, ssl_keystore_password, ssl_truststore_password

  • agents section: ssl_keystore_password and ssl_truststore_password for a monitored cluster, and storage_ssl_keystore_password and storage_ssl_truststore_password for a separate storage cluster

  • agent_kerberos section: keytab, ticket_cache

  • backup_service section: s3_proxy_host, s3_proxy_port

Encrypted fields in /event-plugins/email.conf

Used for alert notifications. The only encryption-eligible field is smtp_pass. Encryption for the smtp_pass field must be manually enabled.

Encrypted fields in opscenterd.conf

The only encryption-eligible field in opscenterd.conf is search_password in the ldap section.

Encrypted fields in address.yaml

Encryption of DataStax Agent configuration fields in address.yaml is optional. OpsCenter provides the values from opscenterd.conf to the DataStax Agent when it connects.

If you set the DataStax Agent configuration fields values in address.yaml, and you set config_encryption_active to true in both address.yaml and opscenterd.conf, then you must supply encrypted values for the encrypted agent configuration fields.

  • access_secret

  • storage_key

  • jmx_pass

  • cassandra_pass

  • monitored_cassandra_pass

  • ssl_keystore_password and ssl_truststore_password for a separate storage cluster

  • monitored_ssl_keystore_password and monitored_ssl_truststore_password for a monitored cluster

Activate configuration encryption and create a system encryption key

Use these steps to enable configuration encryption and create the system encryption key.

Configuration encryption requires a system key for both automatic and manual encryption. The OpsCenter system key tool can create an encryption key for use on the opscenterd machine and all the nodes in a cluster. This tool doesn’t support decrypting values.

  1. Edit the opscenterd.conf file.

    The location of this file depends on the type of installation:

    • Package installations: /etc/opscenter/opscenterd.conf

    • Tarball installations: INSTALL_DIRECTORY/conf/opscenterd.conf

  2. In the security section, set the config_encryption_active option to True:

    [security]
    config_encryption_active = True
  3. Optional: Configure a non-default system key name and location.

    By default, the system key is named opsc_system_key, and it is located in the same directory as the opscenterd.conf file. To use a non-default name or location, specify the config_encryption_key_name and config_encryption_key_path options in opscenterd.conf or address.yaml. The options in address.yaml take precedence over opscenterd.conf. For example:

    [security]
    config_encryption_active = True
    # Optional non-default system encryption key name
    config_encryption_key_name = opsc_system_key
    # Optional non-default path for the encryption key
    config_encryption_key_path =
  4. In your OpsCenter installation’s /bin subdirectory, run opscenter_system_key_tool to create an encryption key:

    PATH/opscenter_system_key_tool create MODE STRENGTH

    Replace the following:

    • PATH: The path to the opscenter_system_key_tool executable:

      • Package installations: /usr/share/opscenter/bin/opscenter_system_key_tool

      • Tarball installations: INSTALL_DIRECTORY/bin/opscenter_system_key_tool

    • MODE: The AES encryption mode to use. Allowed values are ECB, CBC, CFB, and OFB.

    • STRENGTH: The key strength, either 128 (128-bit) or 256 (256-bit).

      The Java Cryptography Extension (JCE) is required for 256-bit key strength. If your current JRE doesn’t already support JCE, you must download and install the Java Cryptography Extension (JCE), unzip the jar files, and store the files at $JAVA_HOME/jre/lib/security. JCE-based products are restricted for export to certain countries by the U.S. Export Administration Regulations.

    For example, to create an AES encryption key using ECB mode and 128-bit key strength:

    opscenter_system_key_tool create ECB 128
  5. Manually copy the system key file to the agent installation directory on each node.

    The key file must reside in the same directory as the agent’s address.yaml. For example:

    cp local/opsc_system_key ../agent/local
  6. Restart OpsCenter and restart the agents.

Manually encrypt a configuration value

These steps are for changing previously encrypted values or encrypting existing configuration values that aren’t automatically encrypted.

For new clusters, don’t enter encrypted values directly into the OpsCenter UI. Enter the actual values, and then allow OpsCenter to handle encryption.

Use the OpsCenter system key tool to manually encrypt sensitive configuration values before entering them in the configuration files. This is required to change encrypted values after you enable configuration encryption, and to encrypt existing configuration values that aren’t automatically encrypted. The tool uses the system encryption key that you created when you activated configuration encryption.

For relevant fields, see Encrypted fields.

This tool doesn’t support decryption.

  1. In your OpsCenter installation’s /bin subdirectory, run the opscenter_system_key_tool value command to encrypt a value:

    PATH/opscenter_system_key_tool value

    Replace PATH with the path to the opscenter_system_key_tool executable:

    • Package installations: /usr/share/opscenter/bin/opscenter_system_key_tool

    • Tarball installations: INSTALL_DIRECTORY/bin/opscenter_system_key_tool

  2. When prompted, enter and confirm the value to encrypt:

    Enter value to encrypt:
    Confirm value to encrypt:
  3. Get the encrypted value from the output, and then paste the encrypted value in the appropriate configuration file, such as opscenterd.conf, CLUSTER_NAME.conf, or address.yaml.

  4. Restart OpsCenter.

Deactivate configuration encryption

You can temporarily deactivate configuration encryption if needed for troubleshooting:

  1. Edit the opscenterd.conf file.

  2. In the [security] section, deactivate configuration encryption:

    [security]
    config_encryption_active = False
  3. Restart opscenterd.

  4. After troubleshooting, reactivate configuration encryption by setting config_encryption_active to True and restarting opscenterd.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use |  Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM