Description
Support for encryption of sensitive properties relies on configuration of the Sensitive Properties Key specified using nifi.sensitive.props.key in nifi.properties. The default behavior of StringEncryptor allows for the key to be blank and falls back to a default value, logging a verbose error message indicating that an explicit key should be provided.
The fallback to a default value for the Sensitive Properties Key should be removed and an exception should be thrown indicating that the property value is required. Deployments that already have an explicit value will not be impacted. Migration guidance for upgrading should include steps to encrypt the configuration using a new key.
It may be worthwhile generating a random Sensitive Properties Key for new installations where there is no existing flow. This would new standalone installations to run with a secure key without the need for manual steps.
Attachments
Issue Links
- fixes
-
NIFI-7670 Implement flow migration for PBE AEAD algorithms in Encrypt-Config toolkit
- Resolved
- is depended upon by
-
NIFI-8246 Set Default Sensitive Properties Algorithm with Improved KDF and Encryption
- Resolved
- is related to
-
NIFI-7668 Add configurable PBE AEAD algorithms to flow encryption
- Resolved
- relates to
-
NIFI-7670 Implement flow migration for PBE AEAD algorithms in Encrypt-Config toolkit
- Resolved
- links to