[ 
https://issues.apache.org/jira/browse/NIFI-13414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17856024#comment-17856024
 ] 

Mark Payne commented on NIFI-13414:
-----------------------------------

I would be supportive of removing this as well. In addition to the dependency 
bloat and maintainability of the mechanism itself, I have on some occasions 
also found the code a bit difficult to navigate when "passing through" and 
looking at other parts of the codebase. But to my mind, the maintainability is 
the most critical concern here. I feel like this is a part of the codebase 
where we have very few committers who truly understand what is happening in 
this part of the codebase. And in my view, one of the greatest security 
concerns you can have is a lack of understanding/maintainability of code. 
Couple that with both the fact that there aren't reliable automated test for it 
and the fact that the security that it provides is really just a false sense of 
security, I am absolutely a +1 for removal.

> 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)

Reply via email to