Dirk Hennig created NIFI-16638:
----------------------------------

             Summary: Removal of Restricted Component authorization breaks 
security isolation for multi-tenant NiFi clusters in 2.13
                 Key: NIFI-16638
                 URL: https://issues.apache.org/jira/browse/NIFI-16638
             Project: Apache NiFi
          Issue Type: Bug
          Components: Security
    Affects Versions: 2.13.0
         Environment: Apache NiFi 2.10.0, shared multi-tenant NiFi cluster. 
Multiple independent users/teams have WRITE permissions on their dedicated 
Process Groups to develop and maintain flows, while Restricted Component 
policies were previously used to prevent those users from executing 
security-sensitive components or accessing resources outside their tenant 
boundary.
            Reporter: Dirk Hennig


We are operating Apache NiFi as a shared multi-tenant cluster. Multiple 
independent users/teams develop and maintain their own dataflows in dedicated 
Process Groups.
 
For this model, users need WRITE permission on their Process Groups in order to 
create and modify flows. However, WRITE permission to a Process Group must not 
imply that the user is trusted to execute arbitrary commands, access the NiFi 
host filesystem, execute arbitrary code, or use other security-sensitive 
capabilities of the NiFi runtime.
 
Previously, Restricted Component authorization provided an additional 
authorization boundary. We could allow users to develop their flows while 
denying the permissions required by Restricted Components.
 
With NIFI-15845 (Remove Restricted Component Authorization from Framework), 
this authorization boundary has been removed. NIFI-15848 now removes the 
corresponding policy configuration and presentation from the frontend.
 
This creates a serious security problem for shared multi-tenant NiFi 
installations.
 
Our required authorization model is:
 
Tenant A:
- WRITE access to Process Group A
- Can create and modify normal dataflows
- Cannot use security-sensitive/restricted capabilities
 
Tenant B:
- WRITE access to Process Group B
- Can create and modify normal dataflows
- Cannot use security-sensitive/restricted capabilities
 
NiFi administrators:
- Can use security-sensitive capabilities
 
After removal of Restricted Component authorization, a user who has WRITE 
permission to a Process Group is no longer prevented from adding a component 
based on its Restricted status.
 
This effectively means that granting permission to develop a flow also grants 
permission to use security-sensitive components installed in the NiFi runtime.
 
Examples of capabilities that are especially concerning in a shared environment 
include:
 
- executing commands or external processes
- executing scripts or arbitrary code
- accessing the local filesystem
- accessing operating system or environment information
- creating arbitrary outbound network connections
- accessing resources outside the user's Process Group security boundary
 
Process Group authorization alone cannot provide isolation for these operations 
because the affected resources can exist outside NiFi's Process Group 
authorization model.
 
I understand that the previous Restricted Component implementation had security 
limitations and that CVE-2026-44914 demonstrated that Restricted Component 
authorization was not consistently enforced for all operations.
 
However, removing this authorization layer without providing an alternative 
capability-based authorization mechanism creates a significant regression for 
multi-tenant deployments.
 
>From our perspective, fixing an incomplete authorization mechanism by removing 
>that authorization boundary entirely does not solve the underlying 
>multi-tenant security requirement.
 
The consequence for our environment is significant:
 
We can no longer safely give independent users WRITE permission to their 
Process Groups unless we also trust those users with all capabilities exposed 
by the components installed on the shared NiFi cluster.
 
If this is the intended security model, we would effectively have to stop 
allowing independent tenants to develop flows on our shared NiFi cluster and 
move them to separately isolated NiFi environments.
 
Expected behavior:
 
NiFi should provide a server-side authorization mechanism that allows 
administrators to:
 
1. Grant users WRITE permission to their Process Groups.
2. Allow those users to create and modify normal dataflows.
3. Independently restrict access to security-sensitive component capabilities.
4. Enforce these restrictions consistently through the REST API, regardless of 
whether components are added individually, imported, or introduced by replacing 
Process Group contents.
5. Prevent users from bypassing these restrictions through alternative API 
operations.
 
This does not necessarily require restoring the previous @Restricted 
implementation.
 
A replacement capability-based or component-based authorization model would 
also address this requirement, provided that it is enforced by the NiFi backend 
and cannot be bypassed through alternative REST API operations.
 
Could the NiFi community please clarify the intended security model for shared 
multi-tenant NiFi clusters following the removal of Restricted Component 
authorization?
 
Specifically:
 
How is an administrator expected to allow an unprivileged tenant to develop 
NiFi flows while preventing that tenant from using security-sensitive 
components or capabilities that can affect resources outside of their Process 
Group authorization boundary?
 
If shared clusters with mutually untrusted flow developers are no longer 
considered a supported security model, this should in my opinion be documented 
explicitly as a significant change to NiFi's security and multi-tenancy model.
 
Related:
- NIFI-15845 - Remove Restricted Component Authorization from Framework
- NIFI-15848 - Remove Restricted Component Policies from Frontend
- CVE-2026-44914 - Missing Authorization of Restricted Permissions when 
Replacing Flow Contents
- NIP-24 - Deprecation/removal of Restricted annotation

Thanks for your understanding



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to