Commit graph

2,293 commits

Author SHA1 Message Date
Yaroslav Chvanov
662a8e0f9b
fix(ui): null-check screen in PromptDialog
Fixes crash when pressing 'accept' with keyboard when mouse cursor is
not on top of the popup.

> Traceback (most recent call last):
>   File "/path/to/opensnitch/dialogs/prompt/dialog.py", line 288, in _check_advanced_toggled
>     self.move_popup()
>     ~~~~~~~~~~~~~~~^^
>   File "/path/to/opensnitch/dialogs/prompt/dialog.py", line 254, in move_popup
>     point = self.screen().virtualSiblingAt(QtGui.QCursor.pos()).availableGeometry()
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'NoneType' object has no attribute 'availableGeometry'
> Fatal Python error: Aborted
2026-02-14 02:03:47 +03:00
Gustavo Iñiguez Goia
2f1cb18dc2 ui,events: improved select-all behaviour
customize selection after presing CTRL+a.
2026-02-11 00:28:31 +01:00
Gustavo Iñiguez Goia
f1e5ba94fa Bumped version to v1.9.0 2026-02-10 23:05:45 +01:00
Gustavo Iñiguez Goia
74a7a27a2d ui,ruleseditor: removed placeholder text
to avoid confussion.

Closes: #1524
2026-02-10 17:42:19 +01:00
Gustavo Iñiguez Goia
3040507e7b restrict network rules type to operand network
Restrict the use of network type to network operand:

  "operator": {
    "type": "network",
    "operand": "dest.network",
    "sensitive": false,
    "data": "LAN",
    "list": []
  }
2026-02-07 12:19:26 +01:00
Gustavo Iñiguez Goia
0051fa9086
ui,i18n: updated nb_NO translation 2026-02-07 11:10:32 +01:00
Gustavo Iñiguez Goia
4c16729e4f
ui,pop-ups: improvements
- Be specific about user's preferences and respect all of them
   properly.
 - reset widgets before rendering a new connection.
2026-02-06 23:50:37 +01:00
Gustavo Iñiguez Goia
87be10ccac
ui,pop-ups: improved default target logic
When displaying a new pop-up, we set the default target based on:
 - snap or appimages paths.
 - user's preferences.

In order to respect user's preferences, the process path and cmdline
must be non-empty. If any of these properties is empty, then we
select by default the Destination Port of the connection.

However, in some cases the cmdline is empty while the path is not, but
we end up selecting the destination port as the default target anyway,
which causes confusion and in some cases too much pop-ups.

Now, if the cmdline is empty and the path is not, we'll select the path
of the process as the default target.

see #1521 for more details.
2026-02-06 20:44:10 +01:00
Gustavo Iñiguez Goia
444a4b5447
ui,events: more selections changes
do not discard selected rows with ctrl when dragging the mouse.
2026-02-05 02:15:13 +01:00
Gustavo Iñiguez Goia
3a6f2614d1
ui,views: selected rows copy changes
Dump the rows of the current query, and copy only the rows selected by
the user.
Previously we kept a copy of all selected cells in memory, all the time,
while the rows were selected.
2026-02-05 02:06:33 +01:00
Gustavo Iñiguez Goia
1f401a2b16
ui,events: views improvements
simplified indexes storage for better performance and resources
consumption.
2026-02-05 01:02:58 +01:00
Gustavo Iñiguez Goia
49d2a94dd3
ui,events: view selections improvements
- override selectAll() to handle select-all behaviour.
 - fixed selecting rows while dragging the mouse.
2026-02-04 23:29:24 +01:00
Gustavo Iñiguez Goia
a6a13134fe
ui,events: small improvements
- free copied rows after writing it to the clipboard.
 - when dumping rows from the db, re-use existing query object if the
   query hasn't changed.
 - misc.
2026-02-04 01:17:53 +01:00
Gustavo Iñiguez Goia
ad7041f844
ui,events: views improvements
avoid columns count inside loops
2026-02-03 16:14:34 +01:00
Gustavo Iñiguez Goia
f464bc848a
ui,events: improved rows selection
- Select rows properly when the mouse goes off the viewport while
   selecting.
 - Reuse the internal QSqlQuery object when dumping rows.
 - Allow to select ranges with shift+KeyHome/KeyEnd
 - KeyDown (arrow) scrolls the view by one row, instead of paginate it.
   We already have Space and PageUp/PageDown keys for it.
2026-02-03 14:11:59 +01:00
Gustavo Iñiguez Goia
88f346c095
ui,events: selection improvements
- Be sure to select a valid last row when the mouse leaves the viewport
   while dragging.
 - Deleted var reset to allow scrolling.
2026-02-03 00:06:23 +01:00
Gustavo Iñiguez Goia
495cb706fa
ui,events: improved rows selection handling
- improved rows selection when scrolling while selecting with the
   mouse.
 - right-clicking on a selection doesn't discard it.
2026-02-02 23:34:02 +01:00
Gustavo Iñiguez Goia
cf550ff148
ui: updated rules colors configuration
because the number of columns of the rules view changed.
2026-02-01 11:37:27 +01:00
Gustavo Iñiguez Goia
3a5783db7a
ui: improved selections with shift+click
Persist row selections with shift+click while scrolling.

More info: #1515, #1485
2026-02-01 01:26:32 +01:00
Gustavo Iñiguez Goia
fd0c627c5c
ui,ruleseditor: format range operator properly 2026-01-30 17:19:39 +01:00
Gustavo Iñiguez Goia
26320f73cd ui,ruleseditor: allow to add port ranges
Now you can specify port ranges separated by '-':
 30000-65000

Closes: #960, #1516
2026-01-30 14:39:01 +01:00
Gustavo Iñiguez Goia
e1b961aec0 rules: added range operand
Allow to create rules to mach a range of source or destination ports.

  "operator": {
    "operand": "dest.port",
    "data": "30000-65500",
    "type": "range",
    "list": [],
    "sensitive": false
  },

see: #960, #1516
2026-01-30 01:33:36 +01:00
Gustavo Iñiguez Goia
e5b15bf42b
ui,events: fixed call 2026-01-29 17:47:17 +01:00
Gustavo Iñiguez Goia
370583357a
ui,events: notifications moved to nodes
- notifications functionality moved to nodes.
- minor syntax errors fixed.
2026-01-29 17:29:27 +01:00
Gustavo Iñiguez Goia
ea8f956460
ui,events: improved columns configuration
Use the configured headers in the table model to show/hide columns,
instead of using the ones defined in the default configuration.

Plugins can add columns to the views, so this way we allow to show/hide
columns configured by the plugins.
2026-01-29 01:27:38 +01:00
Gustavo Iñiguez Goia
f5934010c6
ui,events: add a default completer to the search bar
Otherwise it can crash when loading a saved search.
2026-01-29 01:18:55 +01:00
Gustavo Iñiguez Goia
029e8ed585
ui: improved virustotal plugin
- Added information about visited domains to the hosts tab:
  - consensus of the domain: malicious, harmless, suspicious, ...
  - last dns records
  - ssl information of the domain
2026-01-28 11:44:52 +01:00
Gustavo Iñiguez Goia
ad37850651
ui, addresstablemodel: code simplified
setQuery() was duplicated from GenericTableModel and it's not needed.
2026-01-26 22:57:00 +01:00
Gustavo Iñiguez Goia
3dfe557f00
ui: better custom table models columns handling
When using custom table models, since extra columns are not part of the
original query, the value of the columns was being set as "None".
2026-01-26 22:53:30 +01:00
Gustavo Iñiguez Goia
728e609d2c
ui,events: improved select-all behaviour 2026-01-24 23:15:22 +01:00
Gustavo Iñiguez Goia
bda2cae769
ui,events: added support for select all behaviour
- Allow selecting all rows with Ctrl+a.
   Note: The Ctrl key must be held while pressing 'a'.
   Sometimes when pressing Ctrl+a, the Ctrl key is released
   briefly before 'a' is pressed.
 - Display the number of rows that will be affected by an action
   (for example, delete)

Closes: #1272
2026-01-24 20:14:06 +01:00
Gustavo Iñiguez Goia
845c1473ad
ui,fw: dump all rules when exporting to csv 2026-01-23 22:22:32 +01:00
Gustavo Iñiguez Goia
e25ef10506
ui: fixed dumping rows to csv 2026-01-23 18:41:25 +01:00
Gustavo Iñiguez Goia
98f21b72c3
ui,events: improved CSV export options
Allow to select what view to export, instead of exporting the view
(table) they're currently viewing.

Closes: #1281
2026-01-23 18:01:14 +01:00
Gustavo Iñiguez Goia
29ecfaa7fe
ui: updated proto enums 2026-01-23 00:40:37 +01:00
Gustavo Iñiguez Goia
1144745923
ui,events: improved advanced search
- Allow advanced search per view (table)
 - Added advanced filtering options for the rules view.
   It allows advanced filtering by all the fields of the rules table.
 - misc: fixed extra spaces.
2026-01-22 22:39:13 +01:00
Gustavo Iñiguez Goia
2688384130
ui,events: added all columns to the rules view
Closes: #1310
2026-01-22 22:29:30 +01:00
Gustavo Iñiguez Goia
3beb5f393d
ui,events: added context menu to create new fw rules 2026-01-22 17:31:34 +01:00
Gustavo Iñiguez Goia
81a3dd50bb
i18n: updated zh_Hans and fr translations 2026-01-21 23:53:45 +01:00
Gustavo Iñiguez Goia
f9b3d58be0 /rules/operator minor change
lock just the operation, without using defer. In this case is not
needed.
The difference is minimal:

BenchmarkDefer-4     	100000000	        50.94 ns/op
BenchmarkNoDefer-4   	131769184	        45.35 ns/op
2026-01-18 23:35:05 +01:00
Gustavo Iñiguez Goia
a3cf755a64
ui: minor fixes
- fixed missed pop-ups notification template.
 - rules editor: pressing tab in the description field changes the
   focus.
2026-01-16 18:42:44 +01:00
Gustavo Iñiguez Goia
662fffe357
ui, ntfs: allow to personalize missed pop-ups
Now it's possible to personalize the system notification when the user
doesn't respond to a pop-up.

From the Preferences dialog, UI tab, you can personalize the message of
the notification.
Use the format %field% to replace the fields of a connection by their
values, for example:

Connection attempt from %conn.process% to %conn.dstip%

More info: #1446
2026-01-16 18:24:57 +01:00
Gustavo Iñiguez Goia
6801ead1ff
ui,ruleditor: display rules name when typing a rule name
It should help to avoid creating rules with the same name.
For now it doesn't load the rule fields.
2026-01-16 10:47:00 +01:00
Gustavo Iñiguez Goia
3ee8bd8441
ui,rules editor: adjusted widgets tab stop order 2026-01-16 10:28:26 +01:00
Gustavo Iñiguez Goia
384a6d457a
ui,prefs: fixed calling method 2026-01-16 01:40:33 +01:00
Gustavo Iñiguez Goia
18d2a10c85
ui,events: added more fields to the advanced search
- Added time, process cmdline and process to the allowed fields in the
   advanced search.
2026-01-15 16:48:13 +01:00
Gustavo Iñiguez Goia
f846628179
pkg,rpm: fixed installing with rpm-ostree
The v1.8.0 rpm UI package was built with rpm 6.x, which caused the error
"Unrecognized archive format" when installing it with rpm-ostree.

Adding %define _rpmformat 4 fixes this issue.
2026-01-14 13:56:46 +01:00
Gustavo Iñiguez Goia
02e8be430f
ui,popups: make labels clickable
Allow to click on labels to mark a checkbox.

Closes: #865 , #1502
2026-01-14 02:24:57 +01:00
Gustavo Iñiguez Goia
96bf9da802
ui,events: minor fixes
- Fixed regexp warnings.
 - Fixed search crash when using an advanced search.
 - Fixed adding spaces to the end of the rules queries.
2026-01-14 01:12:38 +01:00
Gustavo Iñiguez Goia
dd70d46abc
ui,i18n: updated .pro file with latest sources
Closes: #1506
2026-01-13 23:47:36 +01:00