Confidential storage
To save sensitive data, a confidential storage solution has been created in the application. To read the data from this storage, one needs to know its owner (entity), and the key.
The storage is currently used for:
- saving the identity password
- saving the sensitive data in dynamic forms (which are used also for connectors configuration, etc.)
- saving sensitive configuration items (coming soon)
The storage is encrypted by a key that is saved in the application property cipher.crypt.secret.key or in a file which is set in the application property cipher.crypt.secret.keyPath.
- The highest priority has value in property 'cipher.crypt.secret.key'.
- Second is file with a key on the path in property 'cipher.crypt.secret.keyPath'.
Example settings:
cipher.crypt.secret.key=someSuperSecretKey
or
cipher.crypt.secret.keyPath=/path/to/key/file
Change confidential storage key
The key can be changed in production mode by a long running task ChangeConfidentialStorageKey. This task must be started when you have changed a key to a new one. As parameter the old key for confidential storage will be given.