feat(nifi): Patch root placeholder in static custom auth file #1358
+386
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
See the note here: stackabletech/nifi-operator#877
Patching the root process group
The last sentence of the above paragraph is enabled with this patch. It requires that a custom property is set:
nifi.process.group.root.placeholder: "root"Any policies entered in a custom
authorizations.xmlthat have this as a suffix will be updated to contain the actual root process group ID, thus enabling users to pre-define an initial, actual (i.e existing in the backend source such as EntraID) admin that has write access to this process group.The initial flow requires that authorizations exist. Since the goal is to update the authorizations once the flow has an ID assigned, a callback mechanism is used that waits for the flow to be initialised so that the xml file can be updated with its UUID.
Testing can be done using the images built here (to save time):
Definition of Done Checklist
Note
Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.
Please make sure all these things are done and tick the boxes
TIP: Running integration tests with a new product image
The image can be built and uploaded to the kind cluster with the following commands:
See the output of
boilto retrieve the image manifest URI for<MANIFEST_URI>.