-
Notifications
You must be signed in to change notification settings - Fork 296
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
pyasn (asn_lookup expert) is somewhat broken #1517
Comments
That's definitely a bug.
Known issue: hadiasghari/pyasn#62 caused by a change in the RIPE data.
👍
That would be a sensible workaround |
After giving it a bit more thought, I came up with perhaps a cleaner solution. These update scripts (asn data, tor nodes, geoip, ..) could be part of the bot code itself (or a separate python script) and called with something like:
The code would go something like this:
Currently you need to run the update script and manually supply the database path (if it changes in the configuration, you need to manually update the cronjob or whatever you use to run the script). Then you need to reload the affected bot, manually again, because the bot-id can change (or edit the cronjob again). With my suggestion both of these tasks can be done automatically based on the RUNTIME_CONF_FILE. No need to manually update anything. This is what I consider the biggest advantage of my suggestion. For the geoip bot, the required maxmind licence could be placed in the bot configuration as well. Less mess, no need for env variable. I could look into such solution and try to implement a PoC for one of the bots for a start. Do you think this would be interesting to the project? |
Definitely yes! Really thank you for time you are putting into these efforts! Like I said in #1524, this is really a nice feature which makes IntelMQ more usable |
FWIW: That bug is fixed in the current master branch of the pyasn project and will be part of the next pyasn release. |
Therefore I believe the conclusion is:
The text was updated successfully, but these errors were encountered: