exceptionfactory commented on pull request #4857:
URL: https://github.com/apache/nifi/pull/4857#issuecomment-812720407


   > @exceptionfactory I gave this a try. Loaded up a flow created on `main` 
and then tried to startup. It failed almost immediately, telling me that i had 
to set the sensitive props key, which is good.
   > 
   > So then I tried to run the command update the key:
   > 
   > ```
   > nifi-1.14.0-SNAPSHOT $ bin/nifi.sh set-sensitive-properties-key "the quick 
brown fox jumped over the lazy dog"
   > 
   > Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
   > NiFi home: 
/Users/mpayne/devel/nifi/nifi-assembly/target/nifi-1.14.0-SNAPSHOT-bin/nifi-1.14.0-SNAPSHOT
   > 
   > Bootstrap Config File: 
/Users/mpayne/devel/nifi/nifi-assembly/target/nifi-1.14.0-SNAPSHOT-bin/nifi-1.14.0-SNAPSHOT/conf/bootstrap.conf
   > 
   > Unexpected number of arguments [9]
   > Usage: SetSensitivePropertiesKey <sensitivePropertiesKey>
   > ```
   > 
   > So it appears there's an issue of some sort in the way that the arguments 
are passed in the `nifi.sh` script to the Java program, as it appears that even 
though "the quick brown fox jumped over the lazy dog" was quoted, it was passed 
to the Java program as 9 separate arguments.
   
   Thanks for the feedback @markap14!  I pushed an update to `nifi.sh` that 
passes quoted arguments to `SetSensitivePropertiesKey` to handle quoted values 
as a single argument.
   
   I also adjusted the minimum required key length to 12, aligning with the 
existing length requirement of 12 in `StandardPropertySecretKeyProvider`.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to