senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.95k stars 314 forks source link

allow list for inbound directives #888

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

allow list for inbound directives

https://github.com/senecajs/seneca/blob/0c8128dc3beefa4021b9e0feb8ebb29a02bfa08f/lib/transport.js#L87


// TODO: allow list for inbound directives
function internalize_msg(seneca, msg) {
  if (!msg) return

  msg = handle_entity(seneca, msg)

  const meta = msg.meta$ || {}
  delete msg.meta$

  // You can't send fatal msgs