-
Notifications
You must be signed in to change notification settings - Fork 4
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
Handle unknown notification formats #23
Comments
For now we only need the feed_specific format and in this step only for the two feeds for which formats had already been defined in intelmq-mailgen. Making this very simple hopefully will make it easier to implement the more complex logic we actually need later on. This solves several defects: - The logic that selects the feed specific CSV format now actually works (fixes #20) - The CSV format for Sinkhole-HTTP-Drone is now the same as that for Botnet-Drone-Hadoop. The former was apparently never tested because it had a typo in one of the IntelMQ identifiers (destination.id instead of destination.ip) - The template is chosen by intelmq-mailgen now. With the way the contact DB currently works, this is the only way to get the right template. The template depends on the feed-name which the contact DB does not know anything about at the moment. This will have to change in some way, but for now we get something that should actually work. How the template name is constructed is described in README.md Other consequences: - There are no fallback formats anymore. It's not clear how to handle cases where no message can be generated because the format is unknown. We need a better way than what we get with this commit (mailgen produces an exception and the notification remains in the database as unsent) but simply sending a very generic mail as previously is probably not the right solution either. That solution was an ad-hoc fix/workaround for a defect in earlier versions. See #23
My ideas:
|
I agree. I tend to number 1) maybe this is an approach:
This has some advantages:
|
@dmth I see a number of issues with your technical ideas for 1) |
There is always a user to inform. At least root.
I've no Idea how you want to use loglevels in this case.
It's about referencing to the notification more easily. There will be a very very high amount of notifications some day. I don't want the user to search for failed notifications in the notifications table which occured around "yesterday at 11 o'clock". A ticketnumber is much more specific in this case and allows operations like ´intelmq-mailgen --resend 4711´ once the missing information was repaired. |
@dmth to explain
|
We need to decide on how to handle notifications for which mailgen cannot determine the format to use for the message. E.g. if a notification specifies a format which mailgen simply does not know about, what should mailgen do?
The text was updated successfully, but these errors were encountered: