-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explanation on BOTS file needed #1543
Comments
That file is topic for many discussions, a short list of them: #1069 tldr: We should get rid of it. As all components evolved over the last years, but that file did not really. It's kind of a central "registry", which is stored in the wrong location and can be substituted by some code. It also blocks several use-cases. I agree with your conlusions.
It's not a hard requirement for the core, but necessary for the IntelMQ Manager and
Instead of changing the file location, I'd prefer resolving the issues linked above all together. Personally, I would like to see that changed in 3.0, but it's currently not part of the 3.0 plan (https://lists.cert.at/pipermail/intelmq-users/2020-May/000162.html / /~https://github.com/certtools/intelmq/blob/version-3.0-ideas/docs/architecture-3.0.md) |
Personally, I would like to see that changed in 3.0, but it's currently not part of the 3.0 plan (https://lists.cert.at/pipermail/intelmq-users/2020-May/000162.html / /~https://github.com/certtools/intelmq/blob/version-3.0-ideas/docs/architecture-3.0.md)
Then let's add it...
|
It is in there. |
I believe I understand why BOTS file exists. However I do not understand why does it need to be exposed to the user in the
intelmq/etc
directory with other configuration files. User is not supposed to touch this file, however he can use it as a template forruntime.conf
which is fine. But why does for instanceintelmqctl check
considers missingintelmq/etc/BOTS
file as a Fatal error?!I went through the codebase looking for code that uses
intelmq/etc/BOTS
file. I couldn't find any case where it would be actually preferable (in my opinion) to use it instead of the/usr/local/lib/python3.5/dist-packages/intelmq/bots/BOTS
file which is part of the python package and thus "hidden" from the user. I believe that every occurence of code usingintelmq/etc/BOTS
actually doesn't expect the file to be modified which supports my claim for hiding it from the user.I also tested running IntelMQ with
intemq/etc/BOTS
file having content of only empty json{}
which satisfies checks and does not seem to break any runtime functionality.(EDIT: It actually broke intelmq-manager from adding new bots. But again, this is a case where it is not expected that the file will be modified and therefore shouldn't be accessible to the user.)
But perhaps I am just missing something? If so, please enlighten me, I really don't understand the purpose of it being in
intelmq/etc
. Otherwise I would like to suggest the removal of the BOTS file fromintelmq/etc
and keeping it only inside the python package directory.Thank you!
The text was updated successfully, but these errors were encountered: