[
https://issues.apache.org/jira/browse/NIFI-13414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856003#comment-17856003
]
Joe Witt commented on NIFI-13414:
---------------------------------
David,
Thanks for flagging this and the description. I dont think I realized how
expansive this is. As I was doing the 'great refactor' of the build tree the
lib/properties section became particular clear as something special, poorly
maintained, and which bloated the build. I wasn't thinking of it from the
limited value angle or lack of testing angle but that makes sense too. Also
given the note about the remaining concern where this approach implies a level
of protection that isn't real we should very likely remove this. External
tools which manage installation, upgrades, etc.. could then do this correctly
to ensure such values are not easily made available to people building flows
for instance. This limitation is problematic in general but when you consider
NiFi running in 'as a Service' environments we need to eliminate these weak
patterns.
Mechanically this would imply deprecation in 1.x and removal in 2x?
Thanks
> Remove Property Protection Modules and Encrypt Config Tools
> -----------------------------------------------------------
>
> Key: NIFI-13414
> URL: https://issues.apache.org/jira/browse/NIFI-13414
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: David Handermann
> Assignee: David Handermann
> Priority: Major
>
> NiFi and NiFi Registry have supported several strategies for encrypting and
> decrypting application properties located in {{nifi.properties}} apart from
> protection of sensitive values in the flow configuration. The initial
> implementation supported property encryption using AES-GCM with key located
> in {{bootstrap.conf}}. Subsequent implementations provided integration with
> external secret management services. Supporting each of these implementations
> requires a large number of third-party libraries, and does not provide a
> public method for extensible implementation. Issues with both the security
> and maintainability of these existing approaches necessitates their
> deprecation and removal from the current main branch.
> The local AES-GCM implementation does not provide sufficient security from a
> holistic perspective of the installation. Although values in
> {{nifi.properties}} can be encrypted, the encryption key must be stored in
> plaintext in {{bootstrap.conf}}, and both of these files are located in the
> {{conf}} directory. Anyone with access to read the filesystem as the
> operating system user can put these configurations together to read the
> values in {{nifi.properties}}.
> The service-based implementations provide externalization using property
> value references or encrypted values that require interaction with the
> service for reading. This approach is beneficial, but it maintaining separate
> implementations for each service provider, and it also requires configuring
> access credentials in supplementary bootstrap configuration files. These
> service-based implementations have large dependency trees, the contents of
> each is stored in the {{properties}} directory under the {{lib}} directory.
> Incorporating copies of service provider libraries for all supported
> implementations adds significant weight to the standard distribution, and
> makes it more difficult to maintain, given the lack of dependency isolation.
> The existing {{nifi-property-protection-api}} and provided implementations do
> not support a maintainable pattern for integration application property
> security. The {{nifi-toolkit-encrypt-config}} module also contains a
> significant amount of code required to run out-of-band for encrypting
> application properties. The {{encrypt-config}} command is packaged apart from
> the standard NiFi distribution, making it less useful for common deployment
> scenarios.
> Taking these issues together, existing property protection modules for
> {{nifi.properties}} should be removed from the main branch. This will provide
> a streamlined distribution in the short term, and also provide a better
> foundation for consideration more robust approaches that are not subject to
> the same types of security concerns.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)