exceptionfactory commented on code in PR #8151:
URL: https://github.com/apache/nifi/pull/8151#discussion_r1425522467


##########
minifi/minifi-bootstrap/src/main/java/org/apache/nifi/minifi/bootstrap/service/MiNiFiExecCommandProvider.java:
##########
@@ -159,15 +183,58 @@ private String buildClassPath(File confDir, File libDir) {
             .collect(joining(File.pathSeparator));
     }
 
-    private List<String> getJavaAdditionalArgs(Properties props) {
-        return props.entrySet()
+    private List<String> getJavaAdditionalArgs(BootstrapProperties props) {
+        return props.getPropertyKeys()
             .stream()
-            .filter(entry -> ((String) 
entry.getKey()).startsWith(JAVA_ARG_KEY_PREFIX))
-            .map(entry -> (String) entry.getValue())
+            .filter(entry -> entry.startsWith(JAVA_ARG_KEY_PREFIX))
+            .map(props::getProperty)
             .toList();
     }
 
     private String systemProperty(String key, Object value) {
         return String.format(SYSTEM_PROPERTY_TEMPLATE, key, value);
     }
+
+    private boolean isSensitiveKeyPresent(BootstrapProperties 
bootstrapProperties) {
+        return bootstrapProperties.containsKey(MINIFI_BOOTSTRAP_SENSITIVE_KEY) 
&& 
!StringUtils.isBlank(bootstrapProperties.getProperty(MINIFI_BOOTSTRAP_SENSITIVE_KEY));
+    }
+
+    private Path createSensitiveKeyFile(File confDir) {

Review Comment:
   Thanks for the reply, given that this is a new implementation, although 
based on the existing one, this is a good opportunity to change the approach 
for MiNiFi itself.



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

Reply via email to