Skip to main content
Version: v1.3.0

Managed groups

In some case these two features could be heavy to define, for example when you have 10 dataflows with one cluster for each of them, it will lead in a lot of .yaml files. To simplify this, we implement in the operator 2 managed groups:

  • Admins: a group giving access to everything on the NiFi Cluster,
  • Readers: a group giving access as viewer on the NiFi Cluster.

You can directly define the list of users who belong to each of them in the NifiCluster.Spec field:

apiVersion: nifi.konpyutaika.com/v1
kind: NifiCluster
metadata:
name: mynifi
spec:
...
oneNifiNodePerNode: false
propagateLabels: true
managedAdminUsers:
- identity: "alexandre.guitton@konpyutaika.com"
name: "aguitton"
- identity: "nifiuser@konpyutaika.com"
name: "nifiuser"
managedReaderUsers:
- identity: "toto@konpyutaika.com"
name: "toto"
...

In this example the operator will create and manage 3 NifiUsers:

  • aguitton, with the identity: alexandre.guitton@konpyutaika.com
  • nifiuser, with the identity: nifiuser@konpyutaika.com
  • toto, with the identity: toto@konpyutaika.com

And create and manage two groups:

  • managed-admins: that will contain 3 users (aguitton, nifiuser, nc-controller.nifikop.mgt.cluster.local which is the controller user).
  • managed-readers: that will contain 1 user (toto)

And the rest of the stuff will be reconciled and managed as described for NifiUsers and NifiUserGroups.

note

There is one more group that is created and managed by the operator, this is the managed-nodes group, for each node a NifiUser is created, and we automatically add them to this group to give them the right list of accesses.

To get the list of managed groups just check the list of NifiUserGroup:

kubectl get -n nifikop nifiusergroups.nifi.konpyutaika.com 
NAME AGE
managed-admins 6d7h
managed-nodes 6d7h
managed-readers 6d7h