<?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: how to select specific Kerberos encryption type for different applications? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412384#M253422</link>
    <description>&lt;P&gt;Yes, you're right.&amp;nbsp;&lt;BR /&gt;Looks like Java Kerberos makes the applications to not always have an application name that we can use here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was reading about other option that makes the processes to fallback from one to another enctype.&amp;nbsp;&lt;BR /&gt;But that will need to have "allow_weak_crypto = true" and as you mentioned that is not possible in your scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if what you need is possible somehow.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 17:09:06 GMT</pubDate>
    <dc:creator>vafs</dc:creator>
    <dc:date>2025-09-18T17:09:06Z</dc:date>
    <item>
      <title>NiFi: how to select specific Kerberos encryption type for different applications?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412356#M253399</link>
      <description>&lt;P&gt;Hello, community. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have an interesting case with NiFi (for me =P). We have:&lt;/P&gt;&lt;P&gt;1. HDFS kerberized service that configured to use arcfour-hmac-md5 (rc4-hmac) for all default_tkt_enctype, default_tgs_enctypes and permitted_enctypes (yeap, it's legacy and now I cannot change it)&lt;BR /&gt;2. Other kerberized applications, e.g. Kafka with disabled arcfour-hmac-md5 (allow_weak_crypto = false, permitted_enctypes excludes arcfour-hmac-md5)&lt;/P&gt;&lt;P&gt;And I have no idea how to configure NiFi to communicate with that applications on time and use exactly supported TGS enctype for each one.&lt;/P&gt;&lt;P&gt;If I set default_tgs_enctype in krb5.conf on NiFi to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;default_tgs_enctypes = arcfour-hmac-md5 aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 aes256-cts-hmac-sha384-192&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HDFS with&amp;nbsp;arcfour-hmac-md5 works fine, but Kafka (where&amp;nbsp;arcfour-hmac-md5 is disabled) fails. And vise versa -- moving arcfour-hmac-md5 down of the default_tgs_enctypes list broke HDFS communications but Kafka starts to work.&lt;/P&gt;&lt;P&gt;In krb5.conf I can override it in [appdefaults] section for different applications to workaround, but I don't know how to use it within NiFi and it's processors.&lt;/P&gt;&lt;P&gt;Is it possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 09:11:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412356#M253399</guid>
      <dc:creator>asand3r</dc:creator>
      <dc:date>2025-09-14T09:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: how to select specific Kerberos encryption type for different applications?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412369#M253409</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126490"&gt;@asand3r&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to see you on the community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Directly on NiFi you cannot specify the those encryptions per processor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What comes to my mind is to configure per realm user, this should work.&amp;nbsp;&lt;BR /&gt;In the krb5.conf you can tell specifically for each realm user, something like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[appdefaults]&lt;BR /&gt;hdfs = {&lt;BR /&gt;default_tgs_enctypes = arcfour-hmac-md5 aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96&lt;BR /&gt;permitted_enctypes = arcfour-hmac-md5 aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;This will target any application using a principal with 'hdfs' in its name. You may need to be more specific in some cases, for example, using the full principal name.&lt;/P&gt;&lt;P&gt;In your NiFi HDFS processors, you'll need to set the Kerberos Principal property to a value that matches the [appdefaults] section.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 04:56:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412369#M253409</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-09-16T04:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: how to select specific Kerberos encryption type for different applications?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412380#M253418</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114383"&gt;@vafs&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;You know, I've tried that, but seems it doesn't work with Java applications.&lt;/P&gt;&lt;P&gt;I've add next section to my krb5.conf, that uses by NiFi server (I set custom file with&amp;nbsp;nifi.kerberos.krb5.file):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[appdefaults]
service.name@DOMAIN.NAME.ORG = {
    default_tkt_enctypes = arcfour-hmac-md5 ...
    default_tgs_enctypes = arcfour-hmac-md5 ...
    permitted_enctypes = arcfour-hmac-md5 ...
    allow_weak_crypto = true
}&lt;/LI-CODE&gt;&lt;P&gt;After that I restarted NiFi service just in case and nothing happen. But, if I return there options to [libdefaults] all works fine again.&lt;/P&gt;&lt;P&gt;Also, I've grep JDK sources to determine is [appdefaults] sections parsed by Java Kerberos implementation and find nothing. I think, the solution with [appdefaults] just shouldn't work. =(&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 10:02:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412380#M253418</guid>
      <dc:creator>asand3r</dc:creator>
      <dc:date>2025-09-18T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: how to select specific Kerberos encryption type for different applications?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412384#M253422</link>
      <description>&lt;P&gt;Yes, you're right.&amp;nbsp;&lt;BR /&gt;Looks like Java Kerberos makes the applications to not always have an application name that we can use here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was reading about other option that makes the processes to fallback from one to another enctype.&amp;nbsp;&lt;BR /&gt;But that will need to have "allow_weak_crypto = true" and as you mentioned that is not possible in your scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if what you need is possible somehow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:09:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412384#M253422</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-09-18T17:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi: how to select specific Kerberos encryption type for different applications?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412389#M253425</link>
      <description>&lt;P&gt;I guess, that my problem has not solution from NiFi side and we just need to correct HDFS settings to accept other encryption types in addition to arcfour-hmac-md5.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Sep 2025 09:55:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-select-specific-Kerberos-encryption-type-for/m-p/412389#M253425</guid>
      <dc:creator>asand3r</dc:creator>
      <dc:date>2025-09-21T09:55:09Z</dc:date>
    </item>
  </channel>
</rss>

