Commit graph

288 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
08cfd6472f UI: allow to delete rules in batch
It helps to delete temporary rules.
2020-05-23 15:22:09 +02:00
Gustavo Iñiguez Goia
8cd41878f4 UI: fixed back icon
Should fix #26
2020-05-23 12:33:44 +02:00
Gustavo Iñiguez Goia
c36b09db55 Bump version to v1.0.0rc9 2020-05-17 19:55:07 +02:00
Gustavo Iñiguez Goia
5dac789d2c Merge branch 'ui2.0' 2020-05-12 13:33:59 +02:00
Gustavo Iñiguez Goia
9523b0b051 UI: added missing ruleseditor.py
reported by @Ph0rk0z, I totally forgot it. Thank you!
2020-05-12 13:29:43 +02:00
Gustavo Iñiguez Goia
1101c1efab UI: allow to configure max allowed clients.
Default set to 10 instead of 4.
2020-05-12 01:18:40 +02:00
Gustavo Iñiguez Goia
74fe3b8734 UI: kill any running instance of the UI after login in
Fixes #15

Maybe not the proper way of doing it, but solves this particular
problem.
2020-05-12 00:12:28 +02:00
Gustavo Iñiguez Goia
3270240431 Merge branch 'ui2.0': added rules editor 2020-05-10 18:32:39 +02:00
Gustavo Iñiguez Goia
53aa721b28 UI: added dialog to add/modify rules from the UI
Allow to add or modify rules from the UI.

The rules of all nodes are listed in the tab Rules.
Clicking on the name of the rule will display the connections that
matched the rule.

In this view 2 buttons are displayed: edit rule and delete rule.

Editing a rule will edit the rule for a particular node. If you want
the changes to be applied to all nodes you have to select that option.

All fields can have a regular expression. If the regular expression is
not valid, a message will be displayed on the dialog.

If the rule is applied correctly, "Rule applied" will be shown.
Otherwise an error will appear.

Bear in mind that this still a WIP commit. Bugs and errors will
appear that we'll have to fix.
2020-05-10 18:21:18 +02:00
Gustavo Iñiguez Goia
1d1d9f4456 Bump version to v1.0.0rc8 2020-04-29 22:02:30 +02:00
Gustavo Iñiguez Goia
1e5fce8c01 Merge branch 'ui2.0' into main 2020-04-27 22:55:30 +02:00
Gustavo Iñiguez Goia
f1fd7a04eb UI: improved details views, added PID field
- Added PID field to the details views.
- Improved details queries, grouping more fields.
- Some fields reorganized.
2020-04-27 21:37:40 +02:00
Gustavo Iñiguez Goia
1ddd2510aa Merge branch 'ui2.0' into main 2020-04-26 20:09:34 +02:00
Gustavo Iñiguez Goia
039a393ab1 UI: fixed race condition, improved UI performance
- Fixed race condition when adding stats to the db, specially when there
  were several nodes connected.
- Colorized allow/deny and online/offline words, to improve visual
  experience.
- UI performance has been improved, specially when there're multiple
  nodes sendings stats.
2020-04-26 19:54:52 +02:00
Gustavo Iñiguez Goia
dac78eb883 UI: improve db thread locking 2020-04-26 19:39:18 +02:00
Gustavo Iñiguez Goia
7ef2c1a755 UI: add nodes view
Display the list of nodes with its metadata.
Clicking on the IP of a node displays the stats for that node.

BUG: The original behaviour was to open a new window per node. However,
right now only one gets updated, and the others have no data.
So for now, this feature has been disabled.

Besides, if there's more than one node, only the stats of a node is
displayed on the UI, so you will see a weird blinking.
2020-04-24 02:05:31 +02:00
Gustavo Iñiguez Goia
66bc1b10e4 UI: remove unused imports and instances 2020-04-24 01:14:03 +02:00
Gustavo Iñiguez Goia
cf6d923670 UI: fixed displaying remote statistics 2020-04-20 18:19:49 +02:00
Gustavo Iñiguez Goia
2cd18f3bcb UI: add missing config fields if the don't exist
If we've added in a new release new config fields, old clients may not
have them, so we add them.

We need a better way of handling upgrades.
2020-04-20 18:04:21 +02:00
Gustavo Iñiguez Goia
c444d5f8a1 UI: fixed default duration on prompt dialog 2020-04-20 17:47:25 +02:00
Gustavo Iñiguez Goia
bf7449f303 Merge branch 'ui2.0': allow to configure options from the UI 2020-04-19 20:54:34 +02:00
Gustavo Iñiguez Goia
3b842a154e UI: allow to change daemon and UI options from the UI 2020-04-19 20:52:57 +02:00
Gustavo Iñiguez Goia
77dddcab3d UI: allow to resolve app icons from local and remote nodes
As opensnitch will run (only) on GNU/Linux, we may assume that the same
apps will exist on different machines (installed or not).

If a same app (firefox for example) is installed on different systems,
get the icon for the app.
2020-04-19 20:39:03 +02:00
Gustavo Iñiguez Goia
32e527e503 Bump version to v1.0.0rc7 2020-04-13 00:23:38 +02:00
Gustavo Iñiguez Goia
a70b48c5b7 Merge branch 'ui2.0' 2020-04-12 22:14:00 +02:00
Gustavo Iñiguez Goia
00bfd58510 UI: added filter by command line/args
In the future we'll filter by part of the command line.
2020-04-12 22:10:59 +02:00
Gustavo Iñiguez Goia
60005d7497 UI: added help menu
Added help menu to load the wiki.
2020-04-10 13:15:11 +02:00
Gustavo Iñiguez Goia
1e11e52457 deb UI packages improved
- kill UI on uninstall.
- update system icon cache after installing.
2020-04-09 18:51:17 +02:00
Gustavo Iñiguez Goia
ab1513334b Merge branch 'ui2.0' into main: fixed UI icons 2020-04-09 18:48:40 +02:00
Gustavo Iñiguez Goia
7c647f5782 fixed UI icons
- display correctly the connection status with the daemon whe it's
  disconnected.
- display correctly the icon (at least on gnome).
- changed "active" icon to svg, to fix a size problem displaying
  notifications on gnome.
2020-04-09 18:45:05 +02:00
Gustavo Iñiguez Goia
9d139a3f51 fixed not answered dialog alert icon
On gnome-shell,ubuntu 18.04 by using the Warning icon, it substituted
our icon by another one. So use NoIcon, since we're already setting our
own alert icon.
2020-04-09 17:07:58 +02:00
Gustavo Iñiguez Goia
2d5b89a0d4 UI: removed configparser dependency
It looks like it's part of python since 3.2, and as far as I can tell
without the pip dependency work just fine (tested on ubuntu >=14.x, mint
>= 18, debian >= 8.x).

It should also help packaging for ArchLinux #8.
2020-03-12 01:22:45 +01:00
Gustavo Iñiguez Goia
6c64438256 UI: removed configparser dependency
It looks like it's part of python since 3.2, and as far as I can tell
without the pip dependency work just fine (tested on ubuntu >=14.x, mint
>= 18, debian >= 8.x).
2020-03-12 01:18:26 +01:00
Gustavo Iñiguez Goia
0139e28c38 UI deb package: removed duplicated dependency.
protobuf is already installed by the grpcio-tools package.
2020-03-12 00:50:21 +01:00
Gustavo Iñiguez Goia
27778c1fd6 Bump version to v1.0.0rc6 2020-03-08 20:59:57 +01:00
Gustavo Iñiguez Goia
8194199955 Merge branch 'ui2.0': workaround for cinnamon systray icon 2020-03-08 01:10:53 +01:00
Gustavo Iñiguez Goia
802c19fc0d Workaround to show up the systray icon on Cinnamon
On Linux Mint 19.3, Cinnamon 4.4, the systray icon was not showing up.
Adding a delay of ~3s solves this problem.
2020-02-26 00:55:01 +01:00
Gustavo Iñiguez Goia
7cb0a25119 Bump version to v1.0.0rc5 2020-02-24 20:07:22 +01:00
Gustavo Iñiguez Goia
2b1cfcd6ef Merged UI fixes. 2020-02-24 20:00:33 +01:00
Gustavo Iñiguez Goia
a34f215252 UI deb package: added qt sqlite lib dependency
On LinuxMint 19.3 it was not installed as part of the other packages,
so the UI couldn't load the driver.
2020-02-24 19:53:08 +01:00
Gustavo Iñiguez Goia
4479bb5155 UI: exit cleanly if there's no QtSql driver available 2020-02-24 19:39:34 +01:00
Gustavo Iñiguez Goia
be89865cd1 fixed UI autostart on Cinnamon 2020-02-24 10:18:44 +01:00
Gustavo Iñiguez Goia
cad5339695 Fixed typo in ui/debian/postinst 2020-02-23 01:17:39 +01:00
Gustavo Iñiguez Goia
0f171f87d4 UI deb package improvements
* Purge files when using apt remove --purge
* Display a message to uninstall installed pkgs from pypi when invoking
apt remove
* link autostart .desktop file to /usr/share/applications instead of
copying it
2020-02-22 17:22:28 +01:00
Gustavo Iñiguez Goia
e3b0287e2e Merge UI fixes and enhancements from ui2.0 2020-02-22 01:00:24 +01:00
Gustavo Iñiguez Goia
401329171a Workaround for crashes parsing .desktop files
We parse .desktop files to get the icon of a program, but sometimes we
can't parse the Name translation due to unicode encoding problems.

Besides, on some distributions there're .desktop files without Exec=
line, so we also crash.

With this workaround we miss (mainly) the icon of a program, but at
least we won't crash.

It should help with #5.
2020-02-22 00:53:10 +01:00
Gustavo Iñiguez Goia
c4a9a21afa fixed HighDpi scaling
This should fix the warning message:
"Attribute Qt::AA_EnableHighDpiScaling must be set before
QCoreApplication is created."

Which should fix the small fonts reported by some users.
We may also need AA_UseHighDpiPixmaps.
2020-02-22 00:48:19 +01:00
Gustavo Iñiguez Goia
7f2f40b64d UI, stats: display dst_port on process details view 2020-02-21 00:57:11 +01:00
Gustavo Iñiguez Goia
189cffb00f Merge UI crash fixes and improvements 2020-02-20 00:27:45 +01:00
Gustavo Iñiguez Goia
8d88a4c13a Fixed advanced button height on some systems
Like Ubuntu Mate 16.04
2020-02-20 00:23:32 +01:00