<?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 Credentials in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361556#M238620</link>
    <description>&lt;P&gt;Yes. Have you ever used expression language to set\get flowfile attributes and use them as parameters for other processors? For example Username and Password on the GetSFTP can be set as follows :&lt;/P&gt;&lt;P&gt;Username: ${my.sftp.db.username}&lt;/P&gt;&lt;P&gt;Password: ${my.sftp.db.password}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both (my.sftp.db.username, my.sftp.db.password) are set once you get this info from DB. For example if use ExecuteSQLRecrod processor where the "SQL Select Query" is set to something like: select username, password from myCredentialTable&lt;/P&gt;&lt;P&gt;Assuming you use JsonWriter to output the data in Json format like:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "username": "...",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; password: "..."&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Then you can use EvaluateJsonPath to set the attributes by adding dynamic properties to this processor as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1673980877061.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36624i00CEF4F7A0053621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1673980877061.png" alt="SAMSAL_0-1673980877061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps. If it does, please accept solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 18:41:48 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2023-01-17T18:41:48Z</dc:date>
    <item>
      <title>Nifi Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361407#M238578</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Nifi - Is there a way where credentials for sftp NIFI can be read from DB and used&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 19:07:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361407#M238578</guid>
      <dc:creator>hkh</dc:creator>
      <dc:date>2023-01-16T19:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - Is there a way where  credentials for sftp NIFI can be read from DB and used</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361412#M238579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can read data from DB using processors like ExecuteSQL or ExecuteSQLRecord. The result can be parsed into flowfile attributes which you can use later to set the credential in the SFPT nifi processor using expression language.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 14:50:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361412#M238579</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-01-16T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361525#M238618</link>
      <description>&lt;P&gt;Can SFTP creds be dynamic?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 15:24:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361525#M238618</guid>
      <dc:creator>hkh</dc:creator>
      <dc:date>2023-01-17T15:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361556#M238620</link>
      <description>&lt;P&gt;Yes. Have you ever used expression language to set\get flowfile attributes and use them as parameters for other processors? For example Username and Password on the GetSFTP can be set as follows :&lt;/P&gt;&lt;P&gt;Username: ${my.sftp.db.username}&lt;/P&gt;&lt;P&gt;Password: ${my.sftp.db.password}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both (my.sftp.db.username, my.sftp.db.password) are set once you get this info from DB. For example if use ExecuteSQLRecrod processor where the "SQL Select Query" is set to something like: select username, password from myCredentialTable&lt;/P&gt;&lt;P&gt;Assuming you use JsonWriter to output the data in Json format like:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "username": "...",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; password: "..."&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Then you can use EvaluateJsonPath to set the attributes by adding dynamic properties to this processor as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1673980877061.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36624i00CEF4F7A0053621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1673980877061.png" alt="SAMSAL_0-1673980877061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps. If it does, please accept solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 18:41:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361556#M238620</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-01-17T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361563#M238624</link>
      <description>&lt;P&gt;Thank you. I will try out the suggested approach.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 20:13:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361563#M238624</guid>
      <dc:creator>hkh</dc:creator>
      <dc:date>2023-01-17T20:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361571#M238625</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88051"&gt;@hkh&lt;/a&gt;&amp;nbsp;The only downside to this dynamic approach is that the passwords are in plaintext as attributes on the FlowFile.&amp;nbsp; This means that these passwords could be read by users who are authorized to access your NiFi through listing of FlowFiles on a queued connection or through running a provenance query on a processor in that flow and inspecting the returned results.&lt;BR /&gt;&lt;BR /&gt;I have no alternative solution to offer, but wanted you to be aware of downside of adding sensitive values to FlowFile attributes.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 20:55:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361571#M238625</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-01-17T20:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361705#M238647</link>
      <description>&lt;P&gt;Thank you Matt.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 19:31:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Credentials/m-p/361705#M238647</guid>
      <dc:creator>hkh</dc:creator>
      <dc:date>2023-01-18T19:31:48Z</dc:date>
    </item>
  </channel>
</rss>

