Commit Graph

54 Commits

Author SHA1 Message Date
Alexandr Stelnykovych
58f4058633 v2 tests fix (#1956)
* v2 tests fix
* test: added tests for sqlite
2025-08-07 02:04:38 +03:00
Alexandr Stelnykovych
878de4ba9d refactor(filterlists): Improve index update logging
feat(updates): Add String method
2025-08-05 15:40:02 +03:00
Natanael Rodriguez Ramos
ec749b6be7 Merge branch 'v2.0' into task/refactor-spn 2025-05-18 20:59:38 +01:00
Alexandr Stelnykovych
6a230b828c [updates] (Linux): custom post-upgrade commands + command to restore SELinux context 2025-04-22 17:36:42 +03:00
Daniel
9801aae3e7 Fix SPN intel updates 2025-04-15 11:26:59 +02:00
Alexandr Stelnykovych
8337eef359 fix: [updater] "restart" action to apply updates 2025-04-14 17:44:12 +03:00
Alexandr Stelnykovych
f0c71c97d1 fix: [updater] crash when updater runs without UI instance 2025-04-14 10:57:12 +00:00
Daniel
438f43156f Add upgrade locking mechanism to core ui serving module 2025-04-07 15:26:35 +02:00
Alexandr Stelnykovych
b83b2901c8 [updates] fix: skip PurgeDirectory during backup 2025-03-28 17:20:49 +02:00
Alexandr Stelnykovych
2a85a4bfd0 [updates] fix: update from locally generated index (timestamps and downgrade) 2025-03-28 14:23:31 +02:00
Alexandr Stelnykovych
776b4860ef [updates] fix: use correct binaries index name 2025-03-26 17:35:27 +02:00
Alexandr Stelnykovych
731ad885bb Merge pull request #1821 from safing/feature/installer-migration
Feature/installer migration
2025-03-25 17:06:35 +02:00
Daniel
93b1623b61 Use the current binary version for the generated index 2025-03-25 15:00:24 +01:00
Daniel
a2b44d73ca Make sure main directory exists when starting updater module 2025-03-17 16:13:33 +01:00
Daniel
aa1bd0679c Improve updatemgr and updates module 2025-01-21 09:21:56 +01:00
Vladimir Stoilov
49e1fc8c31 [service] Ensure pemission for all directories 2025-01-15 11:43:14 +02:00
Vladimir Stoilov
9829136b8c [service] Fix file permission in the updates 2025-01-14 18:13:31 +02:00
Daniel
706ce222d0 WIP 2024-11-27 16:16:15 +01:00
Daniel
8b1bdc7eb1 WIP 2024-11-13 15:18:32 +01:00
Daniel
ddf7ba170e Fix tests and issues 2024-11-08 14:39:58 +01:00
Daniel
9f148f9ea3 Improve updater notifications 2024-11-07 16:20:23 +01:00
Daniel
7bc1c3b764 Replace dataroot module with BinDir and DataDir on instance, adapt modules 2024-11-06 10:48:02 +01:00
Daniel
0f3f3c360f [WIP] Simplify update system 2024-10-31 16:38:12 +01:00
Daniel
d6669ff8f5 Remove unpack suffixes when generating an index bundle 2024-10-16 13:51:38 +02:00
Vladimir Stoilov
02791a4d42 [WIP] Add fallback on corrupted install 2024-10-10 13:02:13 +03:00
Daniel
5d9088f27e [WIP] Improve bundle generation 2024-10-09 16:50:46 +02:00
Vladimir Stoilov
8b68243cc6 [WIP] Add update from custom url functionality 2024-10-09 11:44:59 +03:00
Vladimir Stoilov
a874ec9412 [WIP] Fix unit tests 2024-10-08 14:13:08 +03:00
Vladimir Stoilov
a8517cd65f [WIP] Fix minor bugs 2024-10-08 09:47:29 +03:00
Vladimir Stoilov
a79be8b6a9 [WIP] Improve downloader resilience 2024-10-07 16:00:30 +03:00
Vladimir Stoilov
71f67a8936 [WIP] Improve CI build 2024-10-07 11:26:27 +03:00
Vladimir Stoilov
8e1f3c0ed9 [WIP] Add CI for building deb,rpm installers 2024-10-02 15:37:39 +03:00
Vladimir Stoilov
97ce3c087c [WIP] Fix uninstaller deletion bug. 2024-09-30 11:33:21 +03:00
Vladimir Stoilov
61babe2822 [WIP] Add restart command to instance 2024-09-26 13:51:42 +03:00
Vladimir Stoilov
c9631daa3e [WIP] Add update notifications 2024-09-26 10:43:47 +03:00
Vladimir Stoilov
7cf20b2cf8 [WIP] Remove old code 2024-09-25 17:42:05 +03:00
Vladimir Stoilov
08830f29c6 [WIP] Fix ui api authentication 2024-09-25 17:34:23 +03:00
Vladimir Stoilov
1b6ee722f3 [WIP] Fix edge upgrade edge cases 2024-09-25 16:33:45 +03:00
Vladimir Stoilov
89b533f949 [WIP] Refactoring 2024-09-20 17:36:07 +03:00
Vladimir Stoilov
b3ff6f14f1 [WIP] Error and state handleing improvments, better logs 2024-09-19 12:38:23 +03:00
Vladimir Stoilov
072d7e6971 [WIP] Minor improvments 2024-09-19 08:45:50 +03:00
Vladimir Stoilov
1a866584a4 [WIP] Refactoring and bug fixes 2024-09-18 18:34:42 +03:00
Vladimir Stoilov
84a15b5fb3 [WIP] updater rafactoring, minor improvments 2024-09-17 12:36:44 +03:00
Vladimir Stoilov
83ec18f552 [WIP] Updater support for windows 2024-09-11 18:52:36 +03:00
Vladimir Stoilov
701505ae75 [WIP] working download and replace. 2024-09-05 10:25:57 +03:00
Vladimir Stoilov
f7abb700bf [WIP] Fix SELinux permissions 2024-09-05 10:25:57 +03:00
Vladimir Stoilov
9bae1afd73 [WIP] New updater first working prototype 2024-09-05 10:25:57 +03:00
Vladimir Stoilov
abf444630b [WIP] New updater 2024-09-05 10:25:57 +03:00
Daniel Hååvi
80664d1a27 Restructure modules (#1572)
* Move portbase into monorepo

* Add new simple module mgr

* [WIP] Switch to new simple module mgr

* Add StateMgr and more worker variants

* [WIP] Switch more modules

* [WIP] Switch more modules

* [WIP] swtich more modules

* [WIP] switch all SPN modules

* [WIP] switch all service modules

* [WIP] Convert all workers to the new module system

* [WIP] add new task system to module manager

* [WIP] Add second take for scheduling workers

* [WIP] Add FIXME for bugs in new scheduler

* [WIP] Add minor improvements to scheduler

* [WIP] Add new worker scheduler

* [WIP] Fix more bug related to new module system

* [WIP] Fix start handing of the new module system

* [WIP] Improve startup process

* [WIP] Fix minor issues

* [WIP] Fix missing subsystem in settings

* [WIP] Initialize managers in constructor

* [WIP] Move module event initialization to constrictors

* [WIP] Fix setting for enabling and disabling the SPN module

* [WIP] Move API registeration into module construction

* [WIP] Update states mgr for all modules

* [WIP] Add CmdLine operation support

* Add state helper methods to module group and instance

* Add notification and module status handling to status package

* Fix starting issues

* Remove pilot widget and update security lock to new status data

* Remove debug logs

* Improve http server shutdown

* Add workaround for cleanly shutting down firewall+netquery

* Improve logging

* Add syncing states with notifications for new module system

* Improve starting, stopping, shutdown; resolve FIXMEs/TODOs

* [WIP] Fix most unit tests

* Review new module system and fix minor issues

* Push shutdown and restart events again via API

* Set sleep mode via interface

* Update example/template module

* [WIP] Fix spn/cabin unit test

* Remove deprecated UI elements

* Make log output more similar for the logging transition phase

* Switch spn hub and observer cmds to new module system

* Fix log sources

* Make worker mgr less error prone

* Fix tests and minor issues

* Fix observation hub

* Improve shutdown and restart handling

* Split up big connection.go source file

* Move varint and dsd packages to structures repo

* Improve expansion test

* Fix linter warnings

* Fix interception module on windows

* Fix linter errors

---------

Co-authored-by: Vladimir Stoilov <vladimir@safing.io>
2024-08-09 18:15:48 +03:00
Vladimir Stoilov
c868598deb [cmds] Move new UI to a zip for windows 2024-07-16 11:26:20 +03:00