Skip to content

Commit

Permalink
Change: switiching from rocket to hyper
Browse files Browse the repository at this point in the history
Instead of asking much is the fish we went hyper, hyper.

Replaces the rocket implementation to hyper so that we have more fine
granular control.

Since the scanner-api definition is rather simple there are not that
many endpoints to consider which makes it feasible to user hyper
directly.

To change the endpoints you need to change the entrypoint function
within entry.rs. There are two background tasks starting on
initialization:
- results/fetch
- feed/fetch

`results/fetch` does periodically check ospd-openvas for results of
started scans while `feed/fetch` verifies if the feed got updated and
fetches all oids of that feed for the `vts` endpoint.

Sensord utilizes `osp` crate to control ospd.

Co-authored-by: Christoph Krämer <c.kraemer.rulle@web.de>
  • Loading branch information
nichtsfrei and Kraemii committed May 31, 2023
1 parent 56d28d5 commit 756fb6c
Show file tree
Hide file tree
Showing 54 changed files with 2,790 additions and 1,560 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ testsuiterun.nasl
.venv/
*.bak
assets/
*.rsa
*.pem

0 comments on commit 756fb6c

Please sign in to comment.