You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:description: Configure Apache NiFi to use EntraID for authentication and authorization.
2
3
3
-
##Overview
4
+
==Overview
4
5
5
-
This note provides some explanatory information when running the EntraID example.
6
6
This example demonstrates how to provide a static set of RBAC permissions for users that are fetched from an EntraID backend.
7
7
The user- and group-identifiers are those used by EntraID, but other UUIDs - such as for the policy identifiers - are automatically generated when required by Apache NiFi or are honoured if UUIDs (which are unique, after all) are provided.
8
8
It is often helpful if the initial (or "root") process group is readable by the initial admin, and the NiFi code has been patched to make this possible.
9
9
10
-
## Cluster
10
+
xref:attachment$entraid-nifi.yaml[Download] the complete manifest of all objects created by this example and edit it according to the description in the next sections.
11
+
12
+
== Cluster
11
13
12
14
Create a new local cluster (e.g. with [Kind](https://kind.sigs.k8s.io/docs/user/quick-start/) and the [stackablectl tool](https://github.com/stackabletech/stackablectl)).
13
-
This creates a cluster named `stackable-data-platform`.
14
-
Install the operators required by the example.
15
15
16
-
```text
16
+
Creates a new Kind cluster named `stackable-data-platform`.
This example assumes that an EntraID backend is available and that an Application (in this example, Nifi-Entra-Test) has been configured with a web redirect URI.
24
33
25
34
Create a dedicated namespace in which to run the example:
26
35
27
-
```text
36
+
[source,bash]
37
+
----
28
38
kubectl create namespace nifi
29
-
```
39
+
----
30
40
31
41
Apply a secret containing the following fields necessary for EntraID connectivity:
32
42
33
-
```yaml
34
-
---
43
+
[source,yaml]
44
+
----
35
45
apiVersion: v1
36
46
kind: Secret
37
47
metadata:
@@ -46,61 +56,67 @@ stringData:
46
56
initial.admin.uuid: <ADMIN-UUID> # the Entra Admin user UUID
47
57
initial.group.uuid: <GROUP-UUID> # the initial group UUID
The web endpoint for app running against Entra needs to be updated with this endpoint as the prefix i.e.
73
86
74
-

87
+
image:entraid/entra-redirect-uri.png[EntraID Web URI]
75
88
76
-
Paste this endpoint into the browser and you will be directed to the Azure portal login portal (to enter the credentials for the user designated as the intiial admin) and then redirected back to the NiFi UI.
89
+
Paste this endpoint into the browser and you will be directed to the Azure portal login portal (to enter the credentials for the user designated as the initial admin) and then redirected back to the NiFi UI.
77
90
The UI opens up on a writable canvas, in this case with the UUID `ea060c65-019a-1000-766b-0854b414d37e`:
78
91
79
-

92
+
image:entraid/canvas.png[NiFi canvas]
80
93
81
94
The initial admin has immediate access as the static `authorizations.xml` file provided via the ConfigMap defined this:
0 commit comments