Commit Graph

180 Commits

Author SHA1 Message Date
Alexandr Stelnykovych 62b6fdf08f chore: update Go dependencies (patch versions)
go get -u=patch ./...
2026-08-18 21:43:22 +03:00
Alexandr Stelnykovych 3bfd8c95bd Revert "chore: update Go dependencies"
This reverts commit ce298213ff.
2026-08-18 21:24:51 +03:00
Alexandr Stelnykovych ce298213ff chore: update Go dependencies 2026-08-14 16:43:58 +03:00
Alexandr Stelnykovych 450c1d003d chore: migrate Go toolchain from 1.24 to 1.26
- go.mod: bump go directive to 1.26.0, pin toolchain go1.26.3
- Earthfile: update go_version build arg to 1.26
- .github/workflows/go.yml: update setup-go to ^1.26
2026-08-14 16:00:54 +03:00
Alexandr Stelnykovych d8cc799203 fix(interop/ivpn): Handle local service port connections
The changes add support for tracking and properly routing connections to the IVPN client's local service port,
which is needed when the default firewall action is to block unknown connections.
The verdict handler is now registered earlier in the connection flow to handle connections while the client is connecting.

https://github.com/safing/portmaster-shadow/issues/34
2026-04-03 10:13:07 +03:00
Alexandr Stelnykovych 9686aeb439 fix(dependencies): update ivpnclient module version to v0.0.0-20260326085211 2026-03-26 23:33:09 +02:00
Alexandr Stelnykovych ee8b51d7fe feat: update ivpnclient dependency and add additional test directories to .gitignore 2026-03-10 15:06:38 +02:00
Alexandr Stelnykovych 73460f522d interop/ivpn: bugfixes and refactor connection state management
Bugs fixed:
- Inbound UDP from VPN server incorrectly blocked
- Firewall verdicts possible before client status initialized

Also: move interop before interception in startup order, simplify DNS state tracking.
2026-03-01 21:00:03 +02:00
Alexandr Stelnykovych cb6c8b5a2f fix: correct path for ivpnclient replacement in go.mod and ensure debug configurations for portmaster-core 2026-02-28 11:38:05 +02:00
Alexandr Stelnykovych d40d8adbff feat(ivpn): update ivpnclient dependency and enhance hello request with active remote endpoint 2026-02-27 20:43:45 +02:00
Alexandr Stelnykovych 168c6ac3b5 service/interop: IVPN client interoperability
Allow Portmaster to cooperate with the IVPN client:
- Accept IVPN VPN tunnel and service process connections
- Delegate DNS control to Portmaster when custom DNS is configured
- Auto-connect to IVPN daemon on startup and on ping
- Hook into firewall verdict pipeline via new ExtVerdictHandler
2026-02-27 00:32:33 +02:00
Alexandr Stelnykovych 2a551d5f10 fix(test): add missing faker dependency for generated code
Added github.com/jaswdr/faker/v2 v2.9.0 to resolve test compilation failures
in generated factory test files
2025-11-12 13:19:17 +02:00
Alexandr Stelnykovych f9105fc738 (core) Update golang dependencies
``
go get -u ./...
go mod tidy
```
Fixed SQLite related code to fit latest changes in  SQLite driver
2025-11-12 12:37:33 +02:00
Alexandr Stelnykovych 9cf71fd3e1 go get -u=patch ./... 2025-10-17 23:42:54 +03:00
dependabot[bot] 59b88148b2 build(deps): bump golang.org/x/sync from 0.16.0 to 0.17.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sync/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 01:03:22 +00:00
Alexandr Stelnykovych 201b9a8773 deps: update vulnerable Go modules to latest safe versions 2025-09-03 16:50:29 +03:00
Alexandr Stelnykovych 9d345f1941 go mod tidy 2025-05-28 11:53:38 +03:00
Alexandr Stelnykovych ec2d4ca9eb Merge branch 'master' into merge/master-into-v2-with-history (v1 into v2)
# Conflicts:
#	Earthfile
#	base/config/main.go
#	base/database/dbmodule/db.go
#	base/database/main.go
#	go.mod
#	go.sum
#	service/core/base/global.go
2025-05-28 11:52:15 +03:00
Alexandr Stelnykovych cacf6c552a fix: (Windows) Replace ICO decoder for improved icon extraction
Implemented direct use of `sergeymakinen/go-ico` decoder instead of `mat/besticon/ico`
for icon conversion. The standard `image.Decode()` and  `mat/besticon/ico` approaches
failed with certain ICO files, particularly those containing cursor data
from Windows executable resources. This change ensures more reliable
handling of various ICO format variants.
2025-05-14 17:49:24 +03:00
Alexandr Stelnykovych 84a8f755fe Remove temporary replacement for winres package dependency 2025-05-14 17:28:33 +03:00
Daniel b8ab348095 Fix tests and linters 2025-03-04 15:25:44 +01:00
Daniel c04213219b Make format and value nullable and improve maintenance and purge queries 2025-02-28 10:21:59 +01:00
Alexandr Stelnykovych 4721e58727 Update Go version to 1.24 and toolchain to 1.24.0 to support the 'tool' meta-pattern introduced in go.mod with Go v1.24 2025-02-26 13:03:57 +02:00
Daniel c742c7dfd1 Add SQLite database storage backend 2025-02-25 11:48:16 +01:00
Daniel d824b17b87 Update go.mod 2025-01-27 15:09:05 +01:00
Daniel aa1bd0679c Improve updatemgr and updates module 2025-01-21 09:21:56 +01:00
Vladimir Stoilov 5039e9efca Merge branch 'develop' into feature/new-installer 2025-01-14 16:59:21 +02:00
Alexandr Stelnykovych 3478622eb8 update deps 2025-01-13 14:15:48 +00:00
Vladimir Stoilov 374c1c2748 Merge branch 'develop' into feature/new-installer 2024-11-28 13:23:13 +02:00
Vladimir Stoilov 35d1e4d2e3 Fix file permissions on windows (#1758)
* [service] Set file permissions on windows

* [service] Fix minor windows permission bugs

* [service] Fix permission bugs

* [service] Fix windows non admin user start
2024-11-28 10:41:44 +02:00
Daniel 590fe74610 Update deps 2024-11-28 10:37:51 +02:00
Daniel 473f05becc Update service deps 2024-11-27 16:19:02 +01:00
Vladimir Stoilov 1a1bc14804 Feature/systemd query events (#1728)
* [service] Subscribe to systemd-resolver events

* [service] Add disabled state to the resolver

* [service] Add ETW DNS event listener

* [service] DNS listener refactoring

* [service] Add windows core dll project

* [service] DNSListener refactoring, small bugfixes

* [service] Change dns bypass rule

* [service] Update gitignore

* [service] Remove shim from integration module

* [service] Add DNS packet analyzer

* [service] Add self-check in dns monitor

* [service] Fix go linter errors

* [CI] Add github workflow for the windows core dll

* [service] Minor fixes to the dns monitor
2024-11-27 17:10:47 +02:00
Vladimir Stoilov 943b9b7859 Fix file permissions on windows (#1758)
* [service] Set file permissions on windows

* [service] Fix minor windows permission bugs

* [service] Fix permission bugs

* [service] Fix windows non admin user start
2024-11-26 17:00:01 +02:00
Daniel f91003d077 [service] Move logging to the core, remove pkg level logs 2024-11-14 17:33:27 +01:00
Daniel 38e9e342f7 Update deps 2024-11-12 15:42:49 +01:00
Daniel 34894ea7d6 Add sign command to updatemgr 2024-11-08 14:38:36 +01:00
Daniel 5d9088f27e [WIP] Improve bundle generation 2024-10-09 16:50:46 +02:00
Daniel 57f08eccd7 [service] Add worker info system 2024-08-27 16:32:23 +02:00
Daniel 10dd83b153 Update and tidy deps 2024-08-21 15:00:58 +02: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
Daniel 274f81e4eb Update go deps 2024-05-28 15:57:38 +02:00
Daniel 0f808f568b Update deps 2024-04-23 12:25:32 +02:00
Daniel 5eb0f14a85 Update portbase 2024-04-17 11:49:37 +02:00
Daniel ed20c7f1b2 Fix version metadata 2024-04-11 15:26:57 +02:00
Daniel 2f88d487a9 Update deps 2024-04-10 14:10:52 +02:00
Daniel c68aff5a9b Update portbase for improved version info, fix license strings 2024-04-10 14:08:48 +02:00
Patrick Pacher 701bb91646 Update to new portbase and add experimental support for debian postinst and postrm scripts 2024-03-27 14:23:19 +01:00
Patrick Pacher ac23ce32a1 Migrate notifier from portmaster-ui to cmds/notifier, remove some duplicated code, move assets to assets/data and add a small go package in assets to allow embedding icons 2024-03-20 11:10:32 +01:00
Patrick Pacher 8579430db9 wip: migrate to mono-repo. SPN has already been moved to spn/ 2024-03-20 09:45:32 +01:00