opensistemas-hub / osbrain

osBrain - A general-purpose multi-agent system module written in Python
https://osbrain.readthedocs.io/en/stable/
Apache License 2.0
175 stars 43 forks source link

Encrypt communications #220

Open ocaballeror opened 6 years ago

ocaballeror commented 6 years ago

There is a section in the documentation explaining why we are not encrypting the data we send by default, and why the users should care about encrypting it themselves.

This may not be a big issue for IPC or inproc transport protocols, but I believe this is something we should worry about for TCP communications, and that the library should have it built in, rather than asking the user to encrypt and decrypt the data by hand.

Peque commented 6 years ago

Useful for TCP over non-trusted networks.

Even if we implement encryption for communication between agents (i.e.: using ZMQ encryption mechanisms), what should we do about the Pyro4 integration?

ricpruss commented 6 years ago

Pyro5(in development) supports SSL https://github.com/irmen/Pyro5/blob/787f874f925968aa3b40ebf4f068d14ec6122bdf/examples/ssl/server.py

ocaballeror commented 6 years ago

@ricpruss Nice. Will definitely take a look at it when the stable version is released