Creating a Symmetric Key to Encrypt Data Source Passwords
Composer provides a suite of prebuilt connectors that connect the Composer Server directly to your data source. If a data store requires a connection password to access the data, the credential information is saved in Composer's storage repository - PostgreSQL. Composer uses symmetric encryption to store the credential information so that it can access the data store, as needed, while providing a level of security for the saved information.
Composer administrators can generate their own KeyStore using a symmetric key algorithm. This capability provides an additional level of security in the connection to and access of the data sources.
A symmetric key can be generated using Oracle's keytool program, which is a key and certificate management tool. This tool manages a keystore (database) of cryptographic keys, X.509 certificate chains, and trusted certificates. Refer to Oracle documentation for additional details about this keytool program.
Use the latest Java SDK to install the keytool program (as older versions of the SDK may require different installation steps).
Remember that this user-generated keystore should be provided to Composer after a new installation, prior to any connections being stored in Composer. If a new user-generated key is provided after some connections are already stored, the passwords for these connections have to be resupplied to Composer after the new key is provided.
Generating a Keystore with a Symmetric Key
Install the keytool program. Use the latest Java SDK to install the keytool program.
Enter the following command line to generate your symmetric key.
keytool -genseckey -alias <YourKeyAlias> -keyalg AES -keysize 256 -storetype jceks -keystore <YourKeyStoreName>.jks
Create a keystore password and press Enter to continue.
Create a key password and press Enter to continue.
Store the keystore file in a location where the Composer Server can access. For example:
/etc/zoomdata/<YourKeyStoreName>.jks
Next, you need to edit the
zoomdata.properties
file to add in the parameters needed for Composer to integrate your symmetric key. If you have already logged into Composer, be sure to log out first and close the browser.Edit (or create) the Composer configuration file (
zoomdata.properties
):vi /etc/zoomdata/zoomdata.properties
If the configuration file does not exist, this command creates it.
Incorporate instructions for accessing your newly generated keystore file into the .properties file as provided below:
keystore.location=file:/etc/zoomdata/<YourKeyStoreName>.jks keystore.password=<YourKeyStorePassword> keystore.key.alias=<YourKeyAlias> keystore.key.password=<YourKeyPassword>
Restart Composer Server. This ensures that the new keystore file is enabled and active within Composer.
For the appropriate Linux commands, see Restarting Composer Microservices.
The symmetric key should now be active in Composer. If you see any error messages after the restart, submit a request for assistance.
Comments
0 comments
Please sign in to leave a comment.