Deployment

Deployment#

Deployment of the Agent platform#

Choose an XMPP server. Visit this page. We mainly tested with Prosody.

To create a new XMPP account you can follow the steps here. Create an XMPP account for each demon. Each demon will have a different JID and a different password.

Main steps:

  • installation of the server;

  • configuration of the server (OMEMO, etc.);

  • creation of the required accounts for the aggregation engine and the probes;

  • configuration of SCANDALE.

Description of the steps:

$ sudo apt install prosody
$ sudo apt install luarocks
$ sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_omemo_all_access

Generation of the self-signed certificate:

$ openssl genrsa -out /etc/prosody/certs/localhost.key 2048
$ openssl req -new -x509 -key /etc/prosody/certs/localhost.key -out /etc/prosody/certs/localhost.cert -days 1095

Configure a LocalHost section in /etc/prosody/conf.d/localhost.cfg.lua.

Restart Prosody:

$ sudo systemctl restart prosody

Check:

$ sudo ss -lnptu | grep lua

Creation of accounts:

$ sudo prosodyctl adduser aggregation-engine@localhost
Password: securePasswordforCE

$ sudo prosodyctl adduser probe1@localhost
Password: securePasswordforProbe1

Launching the aggregation engine:

$ python scandale/aggregation.py
Password for aggregation-engine@localhost:

Agent starting . . .
Web Graphical Interface available at:
http://127.0.0.1:10000/spade
Wait until user interrupts with ctrl+C
Starting behaviour . . .