certtools / intelmq-api

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

ENH: Rewrite the configuration file handling #30

Closed ghost closed 3 years ago

ghost commented 3 years ago

In IntelMQ 3 the defaults.conf and the pipeline.conf were dropped, therefore access to those files via the API is not useful anymore. At the same time, the runtime.conf now includes pipeline configuration and is stored as a YAML file. Given those changes, the whole configuration file handling had to be rewritten: There are now 3 API endpoints:

Everything is still done using JSON objects, the conversion to YAML is done internally. The removal of the save_file method also includes the removal of some sanity checks that ran before the file was saved. Some of those should probably be part of intelmq itself (i.e. checking for allowed characters in bot names).