certtools / intelmq-api

FastAPI-based API for the IntelMQ project
https://docs.intelmq.org/latest/user/api/
1 stars 7 forks source link

[ENH] Get BOTS list directly from intelmqctl #18

Closed waldbauer-certat closed 3 years ago

waldbauer-certat commented 3 years ago

The BOTS file got removed, so we get the list out of intelmqctl itself. On demand generated

NOTE Wait for https://github.com/certtools/intelmq/pull/1751 merge.

ghost commented 3 years ago

Merging this now as otherwise the api fails with

[Tue Mar 23 17:28:10.003469 2021] [wsgi:error] [pid 25232] [client 172.31.2.23:48048]   File "/usr/lib/python3/dist-packages/intelmq_api/files.py", line 72, in update_from_runctl, referer: http://intelmq-dev.intern.cert.at/intelmq-manager/
[Tue Mar 23 17:28:10.003482 2021] [wsgi:error] [pid 25232] [client 172.31.2.23:48048]     self.readonly_files["bots"] = Path(paths["BOTS_FILE"]), referer: http://intelmq-dev.intern.cert.at/intelmq-manager/                               

on every request