-
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
Discover bots based on the entry points #2413
Conversation
The bot discovery algorithm was rewritten to use entry point names instead of the file structure. This allow really easy developing of packages with custom bots. Not that the 'group' feature of entry points wasn't used because we require bots to register callable scripts that are later used to start bot's processes.
contrib/example-extension-package/mybots/bots/collectors/custom/collector.py
Show resolved
Hide resolved
contrib/example-extension-package/mybots/bots/collectors/custom/collector.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Sebastian <[email protected]>
After testing in our environment - fixes to places, where bot modules are imported |
For further tests on more platforms I pushed your branch (with #2416) to the "unstable" package repo: https://build.opensuse.org/package/show/home:sebix:intelmq:unstable/intelmq |
Thanks for the unstable package - I'll try to test the integration with the DEB package in the next two weeks. If you had your own use cases for tests, it would be great if you also could do some tests. From my side - the change is now used and works great for in our systems. |
@sebix I have just tested the integration with DEB package (IntelMQ from deb, additional bots from pip) - it works well! As it also works good in our instances for w few weeks already, I think we can merge it :) |
The bot discovery algorithm was rewritten to use entry point
names instead of the file structure. This allow really easy
developing of packages with custom bots.
Note that the 'group' feature of entry points wasn't used
because we require bots to register callable scripts that
are later used to start bot's processes.