To avoid creating numerous .yaml files for users and groups across multiple NiFi clusters, NiFiKop provides two built-in managed groups:
- Admins: A group providing full access to the NiFi Cluster.
- Readers: A group providing viewer-only access to the NiFi Cluster.
You can define the users belonging to these groups directly within the NifiCluster.Spec field using managedAdminUsers and managedReaderUsers. The operator will automatically create the corresponding NifiUser resources and manage the group memberships.
In addition to these, the operator automatically manages a managed-nodes group, which contains a NifiUser for each node in the cluster to ensure correct access permissions.
apiVersion: nifi.konpyutaika.com/v1
kind: NifiCluster
metadata:
name: mynifi
spec:
...
managedAdminUsers:
- identity: "alexandre.guitton@konpyutaika.com"
name: "aguitton"
- identity: "nifiuser@konpyutaika.com"
name: "nifiuser"
managedReaderUsers:
- identity: "toto@konpyutaika.com"
name: "toto"