Jim Halfpenny created NIFI-16653:
------------------------------------

             Summary: Add optional sender verification for cluster protocol 
node requests
                 Key: NIFI-16653
                 URL: https://issues.apache.org/jira/browse/NIFI-16653
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
    Affects Versions: 2.13.0
            Reporter: Jim Halfpenny


The cluster protocol listener accepts connections from any client presenting a 
certificate trusted by the configured trust store. Cluster nodes process flow, 
reconnection, disconnection and offload requests without checking which node 
sent them, although only the elected Cluster Coordinator sends these requests. 
Reconnection requests include the complete flow that the receiving node applies.
 
An optional verification step should allow nodes to reject these requests 
unless the sender certificate identifies a cluster node: * New property 
`nifi.cluster.protocol.sender.verification.enabled`, default `false`, so 
existing clusters are unaffected.
 * When enabled and TLS is configured, flow, reconnection, disconnection and 
offload requests are accepted only when a DNS Subject Alternative Name of the 
sender certificate matches the address of the elected Cluster Coordinator, as 
published through leader election, or the cluster protocol or API address of a 
node known to the receiving node.
 * Wildcard Subject Alternative Names match a single leftmost label, consistent 
with TLS hostname verification.
 * Requests from other senders are rejected with a `ProtocolException`.
 * The matching follows the approach of `ClusterLoadBalanceAuthorizer` for 
load-balanced connections.



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

Reply via email to