Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIFI-2123: Add authorization of provenance events #592

Closed
wants to merge 1 commit into from

Conversation

markap14
Copy link
Contributor

Also refactored core classes so that Authorizable is located within nifi-api

@mcgilman
Copy link
Contributor

Reviewing...

throw new AccessDeniedException(result.getExplanation());
}
final Authorizable eventAuthorizable = flowController.createProvenanceAuthorizable(event.getComponentId());
eventAuthorizable.authorize(authorizer, RequestAction.READ, user);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to authorize each link in the chain, not just the current user.

…ses so that Authorizable is located within nifi-api
@mcgilman
Copy link
Contributor

Looks great @markap14! This has been merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants