tpalfy commented on code in PR #7191:
URL: https://github.com/apache/nifi/pull/7191#discussion_r1266885027
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/registry/flow/mapping/NiFiRegistryFlowMapper.java:
##########
@@ -567,7 +589,7 @@ private Map<String, String> mapProperties(final
ComponentNode component, final C
return mapped;
}
- private String encrypt(final String value) {
+ protected String encrypt(final String value) {
Review Comment:
I needed to override it in 'FlowAnalysisUtil.createMapper'.
Not trivial why this is necessary. I need an encryptor so that encrypted
values cannot be viewed as plain text in a rule. But if I used the original
`encrypt` method, it would wrap it in and `enc{}` expression which later causes
issues.
With this setup every encrypted value is returned as literal of `"*****"`.
Although now that I look at the implementation it may have a bug. But that
would be the idea.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]