certtools / intelmq-manager

IntelMQ Manager is a graphical interface to manage configurations for IntelMQ framework.
https://docs.intelmq.org/latest/user/manager/
102 stars 56 forks source link

Fix edges, sane default bot IDs #264

Closed monoidic closed 3 years ago

monoidic commented 3 years ago

This PR fixes a current issue where working with edges between bots is broken, due to added edges not being transmitted to the server with the new API. Along that, it fixes an UX issue, with the destination_queues parameter being visible in the bot editor. It also fixes issue #263, restoring the sane default bot IDs.

monoidic commented 3 years ago

Actually, rather than working with app.edges, I think it'd be a better idea to get rid of it entirely and merge the edges into the bots here as well. It'll make something else I'm working on (fixing bot renaming issues) simpler as well.

monoidic commented 3 years ago

Just noticed that the variable node declared on line 586 in configs.js is actually meant to be a global variable (not just declared as such due to the wonderful defaults of JS).

monoidic commented 3 years ago

There's still quite a few rough edges here, I'll work on them for a bit.

ghost commented 3 years ago

There's still quite a few rough edges here, I'll work on them for a bit.

I feel your pain. Thanks for tackling this issue!

monoidic commented 3 years ago

I think I managed to remove the bugs I'd introduced now.

ghost commented 3 years ago

Thank you very much!

I picked the commits for the maintenance branch and applied some minor (administrative) additions in 83f999c and 92f726a.

We need to have a look at some potential security-related issues, for which I'll open separate issues.