Commit graph

1,165 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
d61115249e
ui,plugins: virustotal updated
- Don't overwrite main message style if there's a checksum warning.
2025-12-29 13:42:11 +01:00
Gustavo Iñiguez Goia
270a40da2e
ui,plugins: virustotal updated
- Connect the hyperlink signal only when configuring the plugin.
  Once we'll be able to configure the plugin from the GUI, we'll also
  need to disconnect it first.
2025-12-29 12:57:43 +01:00
Gustavo Iñiguez Goia
c15899b115
ui: configure logging type on startup 2025-12-23 23:32:56 +01:00
Gustavo Iñiguez Goia
bc3ec4b8f0
ui,prefs: allow configuring log file and level
Allow configurng UI (server) log file and level from the
Preferences dialog.
2025-12-23 21:19:32 +01:00
Gustavo Iñiguez Goia
c3f2fc3f5c
ui,rules editor: fixed using some variables 2025-12-23 14:54:42 +01:00
Gustavo Iñiguez Goia
3b991c8d4e
ui: preferences improvements
- Allow to configure server (UI) keepalive and keepalive timeout values.
 - Increase spinBox values using the single-step defined value.
 - Translate left panel section names.
2025-12-23 13:10:00 +01:00
Gustavo Iñiguez Goia
3157106260
ui: preferences dialog redesigned
Main window split into two areas:
 - a left panel listing the main configuration sections.
 - a right panel containing the configurable options.

We were running out of space, so this should help to organize all the
options a bit better.
2025-12-23 01:36:40 +01:00
Gustavo Iñiguez Goia
ac0f254c72
ui,prefs: added missing import 2025-12-23 00:33:41 +01:00
Gustavo Iñiguez Goia
b6ac02a2f0
ui,plugins: virustotal improvements
- use logger object.
 - avoid acumulating signals connections.
 - don't access pop-up's widgets directly (wip).
2025-12-22 14:18:21 +01:00
Gustavo Iñiguez Goia
6e84d36fe6
ui: pop-up internals reorganized
- Several functions moved to utils.
 - Expose some methods to obtain pop-up data (connection details, node
   address, hostname, etc).
2025-12-22 00:15:20 +01:00
Gustavo Iñiguez Goia
99c6830886
ui: fw rule dialog split into submodules
First iteration of this refactoring.

We shouldn't need to add much more functionality to this dialog,
but now it should be a bit easier.
2025-12-21 18:42:31 +01:00
dan
1362df5190 added new tests and non-blocking dialog pattern 2025-12-20 18:56:30 +02:00
dan
6614da2d6d ported UI tests to Qt6 2025-12-20 18:02:01 +02:00
Gustavo Iñiguez Goia
65480fa52a
ui: added missing file 2025-12-19 21:43:57 +01:00
Gustavo Iñiguez Goia
2e578b08ad
ui: rules editor split into submodules
WIP. More work needed.
2025-12-19 21:34:06 +01:00
Gustavo Iñiguez Goia
4ec7154dec
ui: improved logging 2025-12-18 23:29:21 +01:00
Gustavo Iñiguez Goia
76c48eff8a
ui,prefs: improved saving settings
- Avoid saving node settings if they haven't changed.
2025-12-18 23:21:42 +01:00
Gustavo Iñiguez Goia
92ed618c88
ui: improved log messages
WIP: use the logger instead of print() (...)
2025-12-18 18:17:22 +01:00
Gustavo Iñiguez Goia
3e3b64c327
ui,prefs: check correctly if UI theme has changed 2025-12-18 15:19:46 +01:00
Gustavo Iñiguez Goia
bd90a80e6f
ui,fw: confirm policy changes with multiple nodes
When changing the firewall policies, if there're more than node
connected and node selected is All, ask the user to confirm the changes.
To avoid surprises.
2025-12-18 14:02:38 +01:00
Gustavo Iñiguez Goia
b1ad3d39c4
ui,fw: reload node list when the nodes are updated 2025-12-18 13:24:50 +01:00
Gustavo Iñiguez Goia
0d9c3ac2f7
ui,fw: fixed returning rules if the node is not connected 2025-12-18 13:03:09 +01:00
Gustavo Iñiguez Goia
5f717d07a2
ui: logging improvements
- Print to stdout the current desktop environment.
 - Use the logger object instead of print.
2025-12-18 01:30:01 +01:00
Gustavo Iñiguez Goia
8b700f09b8
ui,prefs: several fixes
- Added missing import.
 - Load nodes list before the settings, in order to load the settings of
   the default node loaded.
2025-12-18 01:19:06 +01:00
Gustavo Iñiguez Goia
3c11d9c578
ui,prefs: changed the behaviour of +/- buttons
- Use text instead of icons, because in some themes the - icon is not
   represented as "-" character.
 - Put the + button on the right, and - on the left.

Closes: #1473
2025-12-18 00:42:38 +01:00
Gustavo Iñiguez Goia
70097e4584
ui: preferences dialog split into submodules
- Preferences dialog split into submodules for better
   maintainability.
 - Added basic logger module.

WIP
2025-12-17 22:44:47 +01:00
Gustavo Iñiguez Goia
f4ba9c2ed2
ui,versionchecker: changed logging 2025-12-15 18:07:39 +01:00
Gustavo Iñiguez Goia
1e72888367
ui,versionchecker: fixed checking version release 2025-12-15 16:37:54 +01:00
Gustavo Iñiguez Goia
76e2da9396
ui,stats: fixed selecting rows in the Nodes tab 2025-12-15 13:50:34 +01:00
Gustavo Iñiguez Goia
1654d06354
ui,stats: removed autoscrolling 2/2
In order to autoscroll=off have affect, we also need scrollPerPixel.

Related: 53d71b6695
2025-12-15 13:25:08 +01:00
Gustavo Iñiguez Goia
53d71b6695
ui,stats: removed autoscroll from all views
This option was causing a reaaally annoying behaviour:
When you scrolled horizontally the view and clicked on a row,
the view would automatically scroll to the left.
2025-12-13 23:45:33 +01:00
Gustavo Iñiguez Goia
b404c4c631 ui,i18n: updated nl, it and tr translations
Some checks failed
CI - build eBPF modules / build (6.0, 1.5.0) (push) Has been cancelled
CI - build eBPF modules / build (6.0, master) (push) Has been cancelled
Test resources validation / Install tools (push) Has been cancelled
Build status / Build (push) Has been cancelled
2025-12-13 11:58:40 +01:00
Gustavo Iñiguez Goia
1bf2129ddd
ui: fixed possible crash handling notifications 2025-12-12 21:21:35 +01:00
Gustavo Iñiguez Goia
ede079fb9f
ui: minor window adjustments 2025-12-11 23:36:04 +01:00
Gustavo Iñiguez Goia
ad0df38e8c ui: better system notifications
Try to use Desktop Environment notifications whenever possible, and
fallback to Qt's notifications system if it fails.

Related: #1464
2025-12-11 17:33:27 +01:00
Gustavo Iñiguez Goia
73f2d40242 ui,nodes: removed print call 2025-12-11 12:27:12 +01:00
Gustavo Iñiguez Goia
a0af75b0d1
ui,stats: better nodes monitoring
When clicking on a node, the GUI starts a background task to obtain the
system stats of the daemon (ram, swap, uptime, load avg, ...).

We were not handling the monitoring/unmonitoring actions properly.
2025-12-10 17:07:35 +01:00
Gustavo Iñiguez Goia
90dfba1380
ui,stats: nodes view improvements
- Use the address of the node as the unique index to select rows.
 - Restore order of the nodes properly when coming back from the details
   view.
2025-12-10 13:25:53 +01:00
Gustavo Iñiguez Goia
321c152f26
ui,nodes: improved adding nodes to the db
When a node connected to the gui for the first time, we were not
updating the db accordingly. We were doing it when populating the
stats or adding events.

Unfortunately, not all fields are available when a node subscribes to
the GUI, they're sent when the node posts new events. Because of this,
some fields may appear blank until the node send new events.

It'll be fixed in future releases.
2025-12-10 01:55:05 +01:00
Gustavo Iñiguez Goia
74a7cb80f7 ui,stats: fixed restoring nodes detail view
When showing/hiding the main window by clicking on the systray icon, if
the user was reviewing the connections of a node before hiding the
window, the node table was not restored again.

We changed a few weeks ago how the window is shown (showEvent() ->
show()), so this is an unexpected error from that change.
2025-12-10 00:24:44 +01:00
Gustavo Iñiguez Goia
f0a90a1d71
ui: fixed start/stopping interception by node 2025-12-09 22:14:06 +01:00
Gustavo Iñiguez Goia
3e87ceac0c
ui: fixed creating QFileDialog widgets 2025-12-09 18:08:57 +01:00
Gustavo Iñiguez Goia
7592aae0c5
ui: added server config items 2025-12-09 01:56:26 +01:00
Gustavo Iñiguez Goia
ada74a2d8f
ui,prefs: allow configuring server's max workers and clients
Related: c356c82ac7
2025-12-09 01:35:47 +01:00
Gustavo Iñiguez Goia
12da478135
ui: fixed .ui designers files
again.

See commit: 807ba02bb9
2025-12-08 23:26:16 +01:00
Gustavo Iñiguez Goia
c356c82ac7
ui: allow to configure max nodes and server workers
- allow to configure max number of nodes (incoming connections).
   If the server address is a unix socket, it'd make sense to limit it
   to 1.
 - allow to configure server workers.
   By default ThreadPoolExecutor max_workers value is calculated based
   on the number of CPUs: min(32, os.cpu_count() + 4).

   When the GUI (server) is configured to manage multiple nodes, if
   there're not enough server workers (for example because there's
   only 1 CPU, thus ~6 threads), it can end up freezing, blocking new
   requests (new nodes, new stats, new rule requests, etc).

   The server uses one worker per node to handle notifications, and
   it's not released until the node exits.
   Every second, the nodes send the statistics to the server, which also
   consumes one worker for at least one second.
   Additionally the server may receive new rule requests and alerts,
   which also consume one worker each temporarily.

   So if there're 6 nodes, the server may need ~3 workers per node.

Related: #1453
2025-12-08 19:35:34 +01:00
Gustavo Iñiguez Goia
49b929523b
ui: fixed rules name validator 2025-12-08 11:55:50 +01:00
Gustavo Iñiguez Goia
0bbbbb546a
ui: hide node column by default if nodes < 2 2025-12-07 15:06:56 +01:00
Gustavo Iñiguez Goia
e7c36e29ae ui,prefs: improved node management
Added better alerts when changing nodes or server address.
2025-12-07 13:36:34 +01:00
Gustavo Iñiguez Goia
e9f64682a0
ui: improved remote nodes status management
- Close notifications channel in more cases.
 - misc: use the word "proto" only for protocol, instead of protobuffer.

Related: #1453.
2025-12-07 01:08:07 +01:00