Skip to main content
Version 3.0

Who gets into NiFi
and who decides what each one can do.

Three scenarios: login through LDAP or Active Directory with policies in NiFi itself, administrators and readers declared in the values file, and policies handed over to Ranger. Each one covers: the chart default, what changes in the cluster, and the values file commented line by line.

ChartVersion3.0.3TypeapplicationAppVersion1.28.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

The chart tdp-nifi starts NiFi in mode 1: HTTP, without a login screen or per-user access control, suitable for labs and tests. The other two modes enable HTTPS and login through the company directory, LDAP or Active Directory, and differ in where access policies are stored: NiFi itself (mode 2) or Ranger (mode 3).

Your environment

If you fill in your environment details here, the examples and commands on the page use what you entered. The namespace, the release name and the values file are your choices, not the chart's.

Scenarios​

HTTPS, login through LDAP or Active Directory and policies in NiFi itself.

NiFi is moving beyond the lab, and you want only people with an account in the company directory to log in, with each person's permissions defined in NiFi itself. This is mode 2. It enables HTTPS on nodes and directory login, using the same NiFi LDAP provider for both a generic LDAP server (such as OpenLDAP) and an Active Directory controller, and sets the initial NiFi administrator. Only LDAP block values change between LDAP and Active Directory.

Protocol

HTTP on the port from nifiCluster.security.port, with nifiCluster.security.enabled disabled.

Login

Disabled (nifiCluster.security.ldap.enabled). The LDAP server in the chart's values file is a test directory: replace it with yours before enabling login.

Policies

NiFi local authorizer (authorization.mode: file). Initial identities fry and leela from authorizersSecret are also test examples.

Login through the directory

Directory type

Your choice changes the commands and passages below.

namespace <NAMESPACE>HTTPSbind and searchClientusername + passwordNiFi nodeHTTPS · local policiesLDAP serveruidSecret nifi-authorizersinitial authorizers.xml
  1. Client. The interface displays the login screen. The directory validates the username and password, and NiFi now responds only over HTTPS. Chart default: mode 1: HTTP, no login.
  2. NiFi nodes. Authenticate through LdapProvider, the same provider for LDAP and Active Directory. Authorization stays in NiFi itself, with the local authorizer (file). Chart default: security.enabled false, protocol http, ldap disabled, authorization.mode file. (nifiCluster.security.enabled · protocol · ldap.enabled · authorization.mode)
  3. LDAP server. Generic LDAP directory, such as OpenLDAP. Searches use the uid attribute under the user base. NiFi binds with the service account (managerDn) and searches for the user using searchFilter. Chart default: disabled; the LDAP configuration in values is a test example. (nifiCluster.security.ldap)
  4. Authorization bootstrap. Generated from nifiCluster.authorizersSecret: initial users and the initial administrator. The identity must match what LDAP returns after applying the identity strategy (USE_USERNAME: the login). Chart default: enabled, with test identities fry and leela. (nifiCluster.authorizersSecret)

Directory type: LDAP

namespace <NAMESPACE>HTTPSbind and searchClientusername + passwordNiFi nodeHTTPS · local policiesLDAP serveruidSecret nifi-authorizersinitial authorizers.xml
  1. Client. The interface displays the login screen. The directory validates the username and password, and NiFi now responds only over HTTPS. Chart default: mode 1: HTTP, no login.
  2. NiFi nodes. Authenticate through LdapProvider, the same provider for LDAP and Active Directory. Authorization stays in NiFi itself, with the local authorizer (file). Chart default: security.enabled false, protocol http, ldap disabled, authorization.mode file. (nifiCluster.security.enabled · protocol · ldap.enabled · authorization.mode)
  3. LDAP server. Generic LDAP directory, such as OpenLDAP. Searches use the uid attribute under the user base. NiFi binds with the service account (managerDn) and searches for the user using searchFilter. Chart default: disabled; the LDAP configuration in values is a test example. (nifiCluster.security.ldap)
  4. Authorization bootstrap. Generated from nifiCluster.authorizersSecret: initial users and the initial administrator. The identity must match what LDAP returns after applying the identity strategy (USE_USERNAME: the login). Chart default: enabled, with test identities fry and leela. (nifiCluster.authorizersSecret)

Directory type: Active Directory

namespace <NAMESPACE>HTTPSbind and searchClientusername + passwordNiFi nodeHTTPS · local policiesActive DirectorysAMAccountNameSecret nifi-authorizersinitial authorizers.xml
  1. Client. The interface displays the login screen. The directory validates the username and password, and NiFi now responds only over HTTPS. Chart default: mode 1: HTTP, no login.
  2. NiFi nodes. Authenticate through LdapProvider, the same provider for LDAP and Active Directory. Authorization stays in NiFi itself, with the local authorizer (file). Chart default: security.enabled false, protocol http, ldap disabled, authorization.mode file. (nifiCluster.security.enabled · protocol · ldap.enabled · authorization.mode)
  3. Active Directory. Domain controller. Searches use sAMAccountName in the CN=Users container, and the service account binds with its full DN. NiFi binds with the service account (managerDn) and searches for the user using searchFilter. Chart default: disabled; the LDAP configuration in values is a test example. (nifiCluster.security.ldap)
  4. Authorization bootstrap. Generated from nifiCluster.authorizersSecret: initial users and the initial administrator. The identity must match what LDAP returns after applying the identity strategy (USE_USERNAME: the login). Chart default: enabled, with test identities fry and leela. (nifiCluster.authorizersSecret)
Choose the directory type above. Click an element to see what it is and the chart default.

LDAP. NiFi logs in against a generic LDAP server, such as OpenLDAP. LDAP: Best suited when the company directory is an LDAP server, not an Active Directory.

1nifiCluster:
2security:
3 enabled: true
4 protocol: "https"
5 port: 8443
6
7 ldap:
8 enabled: true
9 url: "ldap://<LDAP_HOST>:389"
10 searchBase: "ou=people,dc=<LDAP_DOMAIN>,dc=com"
11 searchFilter: "(&amp;(uid={0})(objectClass=inetOrgPerson))"
12 managerDn: "cn=<BIND_USER>,dc=<LDAP_DOMAIN>,dc=com"
13 managerPassword: "<LDAP_BIND_PASSWORD>"
14 referralStrategy: "FOLLOW"
15 identityStrategy: "USE_USERNAME"
16
17 authorization:
18 mode: "file"

security.enabled enabled and protocol https. The port changes accordingly.

  1. HTTPS (linha 3). security.enabled enabled and protocol https. The port changes accordingly.
  2. Server (linha 9). Your LDAP server address.
  3. Search base (linha 10). Where users are stored in the directory.
  4. Filter (linha 11). {0} is the entered login. Write & as &amp;: the value is written unchanged to an XML file, and a literal & crashes the node at startup.
  5. Service account (linha 12). DN of the account NiFi uses to bind and search for the user.
  6. Service account password (linha 13). Prefer passing it in the command with --set nifiCluster.security.ldap.managerPassword=... rather than storing it in a version-controlled file.
  7. Identity (linha 15). USE_USERNAME: the NiFi identity is the login itself, such as fry, leela or admin.
  8. Policies in NiFi (linha 18). file: local authorizer. This distinguishes mode 2 from mode 3.
Mode 2 with LDAP

Active Directory. NiFi logs in against an Active Directory (AD) controller, with the same NiFi LDAP provider. Three values of the nifiCluster.security.ldap block follow the AD schema. Active Directory: Best suited when the company directory is an Active Directory.

  1. Login name. AD identifies each person by sAMAccountName. Set searchFilter: "(&amp;(sAMAccountName={0})(objectClass=user))", with & still written as &amp;.
  2. Where accounts are stored. In AD, users are stored in the domain's CN=Users container. Set searchBase: "CN=Users,DC=<DOMAIN>,DC=<TLD>".
  3. Service account. Built-in AD accounts, such as Administrator, generally lack userPrincipalName and therefore cannot bind using usuario@dominio. Specify the service account by its full DN in managerDn: "CN=<BIND_USER>,CN=Users,DC=<DOMAIN>,DC=<TLD>".

The complete file is right below, with each line explained. The first administrator comes after it.

1nifiCluster:
2security:
3 enabled: true
4 protocol: "https"
5 port: 8443
6
7 ldap:
8 enabled: true
9 url: "ldap://<AD_HOST>:389"
10 searchBase: "CN=Users,DC=<DOMAIN>,DC=<TLD>"
11 searchFilter: "(&amp;(sAMAccountName={0})(objectClass=user))"
12 managerDn: "CN=<BIND_USER>,CN=Users,DC=<DOMAIN>,DC=<TLD>"
13 managerPassword: "<LDAP_BIND_PASSWORD>"
14 referralStrategy: "FOLLOW"
15 identityStrategy: "USE_USERNAME"
16
17 authorization:
18 mode: "file"

The NiFi LDAP provider also serves AD. The base, the filter and the service account DN follow the AD schema.

  1. Same provider (linha 7). The NiFi LDAP provider also serves AD. The base, the filter and the service account DN follow the AD schema.
  2. Container (linha 10). Users are stored in CN=Users.
  3. Filter (linha 11). The login is sAMAccountName. Keep writing & as &amp;.
  4. Bind by DN (linha 12). Built-in accounts, such as Administrator, generally lack userPrincipalName: bind using the full DN, not usuario@dominio.
  5. Service account password (linha 13). Prefer passing it in the command with --set rather than storing it in a version-controlled file.
Mode 2 with Active Directory
1nifiCluster:
2authorizersSecret:
3 enabled: true
4 initialUserIdentities:
5 - fry
6 - leela
7 initialAdminIdentity: fry

Generates the initial authorizers.xml: users present from the first startup and the initial administrator.

  1. Bootstrap (linha 2). Generates the initial authorizers.xml: users present from the first startup and the initial administrator.
  2. Initial users (linha 5). Replace fry and leela, which belong to the test directory, with logins from your directory.
  3. Initial administrator (linha 7). Must exactly match the identity LDAP returns after applying the identity strategy. With USE_USERNAME, the login.
Initial administrator

If NiFi is published through Ingress (see NiFi configuration), Ingress also starts using HTTPS with nodes:

1ingress:
2annotations:
3 nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
4rules:
5 - host: <NIFI_HOSTNAME>
6 paths:
7 - path: /
8 pathType: Prefix

In mode 1 the annotation is HTTP. In modes 2 and 3, HTTPS.

  1. HTTPS to the node (linha 3). In mode 1 the annotation is HTTP. In modes 2 and 3, HTTPS.
Ingress with NiFi over HTTPS

Write the blocks in the values file

The directory block, initial administrator and Ingress, if used.

Replace the server, base and service account with those from your directory, and test identities with your logins.

Apply to the release

Nodes return with HTTPS and a login screen.

Terminal input
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-nifi \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>

Success criteria

The NiFi interface displays the login screen, and the initialAdminIdentity user logs in as administrator.
If the node does not start or login fails

The node log shows the login provider error:

Terminal input
kubectl -n <NAMESPACE> get pods
kubectl -n <NAMESPACE> logs <POD_NAME> -f

Then look up the message in When something goes wrong.

The three modes side by side​

KeyMode 1Mode 2Mode 3
nifiCluster.security.enabledfalsetruetrue
nifiCluster.security.protocolhttphttpshttps
nifiCluster.security.ldap.enabledfalsetruetrue
nifiCluster.security.authorization.modefilefileranger
nifiCluster.authorizersSecretnot applicablerequired for bootstrapnot the policy source
nifiCluster.authorizationoptionaloptionalnot the main policy source
Ranger configurationnonoyes
Image with the Ranger plugin (included in the default image)nonoyes
  • No login: disable security.enabled and ldap.enabled (mode 1).
  • Directory login and policies in NiFi: keep authorization.mode=file (mode 2). Use authorizersSecret for bootstrap and authorization only for declarative reconciliation.
  • Directory login and policies in Ranger: use authorization.mode=ranger (mode 3). Ranger is the actual policy source.
  • Active Directory in place of generic LDAP: the same modes 2 and 3, with AD values.

When something goes wrong​

Troubleshooting

Paste the error message or choose a symptom. The response includes the cause, action and command.

  1. Node does not start: BeanCreationException loading the login identity provider. Cause: searchFilter contains a literal &. NiFiKop writes the value unchanged to login-identity-providers.xml, and the unescaped & makes the XML invalid. What to do: Use the &amp; entity in searchFilter. NiFi converts it back to & when reading the file, so the effective filter is unchanged.
  2. Active Directory: service account bind fails. Cause: Built-in accounts, such as Administrator, generally lack userPrincipalName, so binding with usuario@dominio fails. What to do: Bind using the account's full DN, in the format CN=<BIND_USER>,CN=Users,DC=<DOMAIN>,DC=<TLD>.
  3. Ranger mode: AuthorizerCreationException, ranger-nifi-security.xml does not exist. Cause: Plugin files are not mounted at the configured path: no template mounts the nifi-ranger-plugin-config Secret. What to do: Enable pluginConfigSecret, mount the three files in externalVolumeConfigs and set auditConfigPath and securityConfigPath to the same mount paths (Ranger scenario).
  4. Ranger mode: PKIX path building failed after reinstalling NiFi. Cause: Reinstalling NiFi causes NiFiKop to create a new CA, and the Ranger client certificate no longer matches it. What to do: Delete the client certificate Secret to reissue it, and restart Ranger Admin (Integrations - NiFi, After reinstalling NiFi scenario).
  5. Another problem. Cause: Start with pod and NifiCluster status and the node log. What to do: The node log shows the authentication or authorization error.

All parameters​

Filter by name or group. This chart's keys are at the root of the values file.

29 of 29 parameters

ParâmetroDescriptionChart default
nifiCluster.security.enabledModeEnables security (HTTPS and login)false
nifiCluster.security.protocolModehttp or httpshttp
nifiCluster.security.portModeNiFi port8080
nifiCluster.security.authorization.modeModefile (policies in NiFi) or rangerfile
nifiCluster.security.hostModeHostname accepted by NiFi (nifi.web.proxy.host)nifi.tdp.local
nifiCluster.security.additionalProxyHostsModeOther hosts accepted by NiFi (nifi.web.proxy.host)[]
nifiCluster.security.ldap.enabledLDAPEnables login through LDAP or Active Directoryfalse
nifiCluster.security.ldap.urlLDAPLDAP server or domain controller addresstest directory
nifiCluster.security.ldap.searchBaseLDAPBase containing userstest directory
nifiCluster.security.ldap.searchFilterLDAPSearch filter; 0 is the login and & is written as &amp;(&amp;(uid=0)(objectClass=inetOrgPerson))
nifiCluster.security.ldap.authenticationStrategyLDAPDirectory authentication strategySIMPLE
nifiCluster.security.ldap.managerDnLDAPDN of the service account used to bindtest directory
nifiCluster.security.ldap.managerPasswordLDAPService account passwordtest directory password
nifiCluster.security.ldap.referralStrategyLDAPLDAP referral handlingFOLLOW
nifiCluster.security.ldap.identityStrategyLDAPUSE_USERNAME: the NiFi identity is the loginUSE_USERNAME
nifiCluster.authorizersSecret.enabledPolicies in NiFiGenerates the initial authorizers.xmltrue
nifiCluster.authorizersSecret.initialUserIdentitiesPolicies in NiFiUsers present from the first startupfry, leela (test)
nifiCluster.authorizersSecret.initialAdminIdentityPolicies in NiFiInitial NiFi administratorfry (test)
nifiCluster.authorization.enabledPolicies in NiFiEnables users managed by NiFiKopfalse
nifiCluster.authorization.managedAdminUsersPolicies in NiFiDeclared administrators (name, identity)[]
nifiCluster.authorization.managedReaderUsersPolicies in NiFiDeclared readers (name, identity)[]
nifiCluster.security.authorization.ranger.adminIdentityRangerRanger client certificate identity""
nifiCluster.security.authorization.ranger.auditConfigPathRangerPath to ranger-nifi-audit.xml on the node/opt/nifi/ranger-conf/ranger-nifi-audit.xml
nifiCluster.security.authorization.ranger.securityConfigPathRangerPath to ranger-nifi-security.xml on the node/opt/nifi/ranger-conf/ranger-nifi-security.xml
nifiCluster.security.authorization.ranger.pluginConfigSecret.enabledRangerGenerates the Secret containing plugin filesfalse
nifiCluster.security.authorization.ranger.pluginConfigSecret.nameRangerPlugin file Secret namenifi-ranger-plugin-config
nifiCluster.security.authorization.ranger.audit.destinationSolrZookeepersRangerZooKeeper for Ranger audit Solrtdp-ranger-ranger-zk:2181/solr
nifiCluster.security.authorization.ranger.policy.rangerAdminUrlRangerRanger Admin addresshttp://tdp-ranger-ranger:6080
nifiCluster.security.authorization.ranger.policy.sslConfigFileRangerPolicy manager SSL file/opt/nifi/ranger-conf/ranger-policymgr-ssl.xml

For the complete parameter list, consult the chart's values.yaml or run helm show values for the installed version.

Next steps​