Picolab / pico-engine

An implementation of the pico-engine hosted on node.js
http://picolabs.io/
MIT License
43 stars 8 forks source link

Enhancements to channel policy to further secure pico engine #609

Open b1conrad opened 2 years ago

b1conrad commented 2 years ago

A couple of ideas:

  1. we could add a bearer token to the channel policy; /sky/ events and queries would then only be accepted by the pico engine on that ECI when an authorization header bearing the token was present in the HTTP request (otherwise 401 response code)
  2. we could add a rate limiting feature; for example an ECI could be used only once every 10 minutes and if oftener, a 429 response code could be given

Together these could reduce the likelihood of denial of service attacks