Skip to content

[WIP] Distributed scanning - #7

Open
oh6hay wants to merge 6 commits into
masterfrom
mqtt
Open

[WIP] Distributed scanning#7
oh6hay wants to merge 6 commits into
masterfrom
mqtt

Conversation

@oh6hay

@oh6hay oh6hay commented Jan 29, 2020

Copy link
Copy Markdown
Contributor

Agent/server model using MQTT.

The idea is that multiple agents can be deployed in different parts of the network
and be controlled from a central server. Having the agents receive job requests
from an MQTT broker should be easier than routing HTTP to the agents.

This commit has

  • REST API (server.py) refactored a bit so that the requesthandler subclasses
    mainly handle HTTP and actual business logic is elsewhere, such as the job
    dispatch logic
  • the main app starts an mqtt client either in server or agent mode
  • note that the mqtt client expects to be supported by an external runloop
    (this is the case currently)
  • currently submitting jobs to a server causes them be relayed to an agent

TODO:

  • provide an agent list on the GUI
  • GUI to have option to start jobs either at server, or at agents or maybe both
  • figure out how to access the scan results of agents

The idea is that multiple agents can be deployed in different parts of the network
and be controlled from a central server. Having the agents receive job requests
from an MQTT broker should be easier than routing HTTP to the agents.

This commit has
- REST API (server.py) refactored a bit so that the requesthandler subclasses
  mainly handle HTTP and actual business logic is elsewhere, such as the job
  dispatch logic
- the main app starts an mqtt client either in server or agent mode
- note that the mqtt client expects to be supported by an external runloop
  (this is the case currently)
- currently submitting jobs to a server causes them be relayed to an agent

TODO:
- provide an agent list on the GUI
- GUI to have option to start jobs either at server, or at agents or maybe both
- figure out how to access the scan results of agents
@oh6hay oh6hay changed the title Distributed scanning [WIP] Distributed scanning Jan 29, 2020
- PoC CLI to request results over MQTT. Not sure if the CLI will ever be useful
  but at least it can be used to debug and test mqtt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant