Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, policy is enforced in the AMQP router-node with a couple of cherry-picked policy values being passed into the router-core for enforcement there.
This improvement puts a "policy-spec" structure into the general include path which can be accessed anywhere in the router code. Rather than cherry-picking values from the policy, a pointer to the policy-spec is passed into the core with each opened connection. This structure is available in the core and through the core-subscription on_message callback so that handlers of internally targeted messages can enforce policy for the endpoint's connection.