mcgilman commented on a change in pull request #3536: NIFI-6380: Introduced the
notion of Parameters and Parameter Contexts…
URL: https://github.com/apache/nifi/pull/3536#discussion_r298703815
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-file-authorizer/src/main/java/org/apache/nifi/authorization/FileAccessPolicyProvider.java
##########
@@ -624,6 +625,10 @@ private void populateInitialAdmin(final Authorizations
authorizations) {
// grant the user read/write access to the /controller resource
addUserToAccessPolicy(authorizations,
ResourceType.Controller.getValue(), initialAdmin.getIdentifier(), READ_CODE);
addUserToAccessPolicy(authorizations,
ResourceType.Controller.getValue(), initialAdmin.getIdentifier(), WRITE_CODE);
+
+ // grant the user read/write access to the /parameter-contexts resource
+ addUserToAccessPolicy(authorizations,
ResourceType.ParameterContext.getValue(), initialAdmin.getIdentifier(),
READ_CODE);
+ addUserToAccessPolicy(authorizations,
ResourceType.ParameterContext.getValue(), initialAdmin.getIdentifier(),
WRITE_CODE);
Review comment:
Assuming we add controller as a parent resource to parameter contexts, we
could remove these lines.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services