Jim Halfpenny created NIFI-16652:
------------------------------------
Summary: Align paste instance authorisation with sensitive
property resolution
Key: NIFI-16652
URL: https://issues.apache.org/jira/browse/NIFI-16652
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Affects Versions: 2.13.0
Reporter: Jim Halfpenny
When pasting components, the framework copies sensitive property values from
existing local components referenced through the `instanceIdentifier` of a
pasted Processor or Controller Service. Before copying,
`ProcessGroupResource.authorizeInstanceIds()` requires READ permission on those
local components.
The authorisation step resolves instance identifiers only against components
that are descendants of the root Process Group. The copy step in
`StandardNiFiServiceFacade` resolves them through `FlowManager`, which also
finds Controller Services defined at the Controller level and components
managed by Connectors. Instance identifiers that are found by the copy step but
not by the authorisation step have their sensitive properties copied without
the READ check.
Authorisation of instance identifiers should use the same resolution as the
copy step, so that every component that sensitive values are copied from
requires READ permission.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)