Add permissions config handling
Create a config something like.
{
"permissions: [
{
"message_type": "mission_plan",
"accept_from": [ "noc-c2", "ori" ],
},
{
"message_type": "acknowledgement",
"accept_from": [ "noc-c2" ],
"where": [
{
"field": "payload.acknowledgement_type",
"value": "mission_plan.pilot_approval"
}
]
}
]
}
On receiving messages process test against any configured permissions.