<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi Add Custom Sensitive Field To Processor? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168384#M57669</link>
    <description>&lt;P&gt;With the ExecuteScript processor, you are likely just adding Dynamic Properties (also known as &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#properties-tab"&gt;User-Defined Properties&lt;/A&gt;), which are not sensitive.  To add your own sensitive properties to a scripted processor, you would need to use &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.script.InvokeScriptedProcessor/index.html"&gt;InvokeScriptedProcessor&lt;/A&gt;. There's &lt;A target="_blank" href="http://apache-nifi.1125220.n5.nabble.com/InvokeScriptedProcessor-td12646.html"&gt;an example from the NiFi mailing list&lt;/A&gt; (though not with sensitive properties, you'd just need to add .sensitive(true) to your PropertyDescriptor.Builder, and I have another example (with no added properties) on &lt;A target="_blank" href="http://funnifi.blogspot.com/2016/02/invokescriptedprocessor-hello-world.html"&gt;my blog&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 03:12:01 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2017-03-22T03:12:01Z</dc:date>
    <item>
      <title>Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168383#M57668</link>
      <description>&lt;P&gt;I'm trying to add in a password field to an execute script processor, how do I make this field "sensitive"?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13862-nifi-question1.png" style="width: 868px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20222i8B27CA9BAE532F4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13862-nifi-question1.png" alt="13862-nifi-question1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:59:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168383#M57668</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2019-08-18T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168384#M57669</link>
      <description>&lt;P&gt;With the ExecuteScript processor, you are likely just adding Dynamic Properties (also known as &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#properties-tab"&gt;User-Defined Properties&lt;/A&gt;), which are not sensitive.  To add your own sensitive properties to a scripted processor, you would need to use &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.script.InvokeScriptedProcessor/index.html"&gt;InvokeScriptedProcessor&lt;/A&gt;. There's &lt;A target="_blank" href="http://apache-nifi.1125220.n5.nabble.com/InvokeScriptedProcessor-td12646.html"&gt;an example from the NiFi mailing list&lt;/A&gt; (though not with sensitive properties, you'd just need to add .sensitive(true) to your PropertyDescriptor.Builder, and I have another example (with no added properties) on &lt;A target="_blank" href="http://funnifi.blogspot.com/2016/02/invokescriptedprocessor-hello-world.html"&gt;my blog&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 03:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168384#M57669</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-22T03:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168385#M57670</link>
      <description>&lt;P&gt;Hi thanks for the response, I'm Trying to use this inside the custom processor script, but it is not showing up as a required parameter in InvokeScriptedProcessor. I currently have this in "script body", along with the rest of the class. &lt;/P&gt;&lt;PRE&gt;	def password = new PropertyDescriptor.Builder()
                                .name('Password')
                                .description("Password used to connect")
                                .required(true)				
				.sensitive(true)
                                .build()

&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2017 03:51:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168385#M57670</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-22T03:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168386#M57671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your example is showing an error: "Unable to resolve class ProcessorLog"&lt;/P&gt;&lt;P&gt;I did a direct import of your template.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:05:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168386#M57671</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-22T21:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168387#M57672</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt; Is there anyway of not using the password in your examples if I had already setup password-less SSH. The groovy script is throwing an error if I try to not use the password.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 00:40:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168387#M57672</guid>
      <dc:creator>jpetro416</dc:creator>
      <dc:date>2017-03-24T00:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168388#M57673</link>
      <description>&lt;P&gt;That example was written against NiFi 0.x. In NiFi 1.x you can use ComponentLog rather than ProcessorLog.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 02:46:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168388#M57673</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-24T02:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168389#M57674</link>
      <description>&lt;P&gt;You can set .required(false) on your password property. Later on when the script would try to use the value (if it is set), you can call context.getProperty(password).isSet() to see if anything has been entered.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 02:48:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168389#M57674</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-24T02:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Add Custom Sensitive Field To Processor?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168390#M57675</link>
      <description>&lt;P&gt;Check the getPropertyDescriptor() and getPropertyDescriptors() methods from the example in the mailing list (link above). You have to look up the descriptor by name in the former, and return a List of the PropertyDescriptors in the latter. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 02:50:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Add-Custom-Sensitive-Field-To-Processor/m-p/168390#M57675</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-03-24T02:50:57Z</dc:date>
    </item>
  </channel>
</rss>

