[PR #1749] [MERGED] Evaluate process check on client #14230

Closed
opened 2026-08-05 02:09:38 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1749
Author: @bcmmbaga
Created: 3/26/2024
Status: Merged
Merged: 4/15/2024
Merged by: @bcmmbaga

Base: peer-meta-syncHead: peer-sync-meta-processes


📝 Commits (10+)

  • 88a0ff0 implement server and client sync peer meta alongside mocks
  • 43d92c4 wip: add check file and process
  • d4cfbd5 Add files to peer metadata for process check
  • b0cd46c wip: update peer meta on first sync
  • 0b1ec14 Add files to peer's metadata
  • e2455c1 Evaluate process check using files from peer metadata
  • 4aa3674 Fix panic and append windows path to files
  • 1a995c8 Fix check network address and files equality
  • 7a4f67d Evaluate active process on darwin
  • 5743548 Evaluate active process on linux

📊 Changes

21 files changed (+1128 additions, -638 deletions)

View changed files

📝 client/internal/connect.go (+4 -1)
📝 client/internal/engine.go (+46 -2)
📝 client/internal/engine_test.go (+6 -6)
📝 client/system/info.go (+26 -0)
📝 client/system/info_android.go (+5 -0)
📝 client/system/info_ios.go (+5 -0)
client/system/process.go (+58 -0)
📝 go.mod (+10 -4)
📝 go.sum (+27 -5)
📝 management/client/client.go (+1 -0)
📝 management/client/grpc.go (+39 -0)
📝 management/client/mock.go (+8 -0)
📝 management/proto/management.pb.go (+672 -568)
📝 management/proto/management.proto (+24 -5)
📝 management/proto/management_grpc.pb.go (+44 -0)
📝 management/server/grpcserver.go (+50 -7)
📝 management/server/mock_server/management_server_mock.go (+10 -1)
📝 management/server/peer.go (+7 -0)
📝 management/server/peer/peer.go (+40 -16)
📝 management/server/posture/process.go (+5 -3)

...and 1 more files

📄 Description

Describe your changes

Evaluate the assigned process check paths by verifying their existence and if there is a running process with the specified path in the client, then synchronize metadata with management.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1749 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 3/26/2024 **Status:** ✅ Merged **Merged:** 4/15/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `peer-meta-sync` ← **Head:** `peer-sync-meta-processes` --- ### 📝 Commits (10+) - [`88a0ff0`](https://github.com/netbirdio/netbird/commit/88a0ff0614273e4c013de89986195a63e5a07bf2) implement server and client sync peer meta alongside mocks - [`43d92c4`](https://github.com/netbirdio/netbird/commit/43d92c40f20465974f918e92a633873b83fb60cc) wip: add check file and process - [`d4cfbd5`](https://github.com/netbirdio/netbird/commit/d4cfbd56e9f4efd6df2ecaffbcd67096742ae5a3) Add files to peer metadata for process check - [`b0cd46c`](https://github.com/netbirdio/netbird/commit/b0cd46c5cf854174e9d016fc53f9478210eec81d) wip: update peer meta on first sync - [`0b1ec14`](https://github.com/netbirdio/netbird/commit/0b1ec142d6c6cb726155c9cc6a83b4e928eeeb18) Add files to peer's metadata - [`e2455c1`](https://github.com/netbirdio/netbird/commit/e2455c1a6c9b3b87271d0c00d4887659251302de) Evaluate process check using files from peer metadata - [`4aa3674`](https://github.com/netbirdio/netbird/commit/4aa367447de95c35ea9c303fb9397749e209db99) Fix panic and append windows path to files - [`1a995c8`](https://github.com/netbirdio/netbird/commit/1a995c85136ef50dd31b63e64f1e6cfe19942f74) Fix check network address and files equality - [`7a4f67d`](https://github.com/netbirdio/netbird/commit/7a4f67d955a3e7ab4d6ab555ed0023b69f08fba8) Evaluate active process on darwin - [`5743548`](https://github.com/netbirdio/netbird/commit/5743548233c91a79100f3828f368d9a78751c238) Evaluate active process on linux ### 📊 Changes **21 files changed** (+1128 additions, -638 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/connect.go` (+4 -1) 📝 `client/internal/engine.go` (+46 -2) 📝 `client/internal/engine_test.go` (+6 -6) 📝 `client/system/info.go` (+26 -0) 📝 `client/system/info_android.go` (+5 -0) 📝 `client/system/info_ios.go` (+5 -0) ➕ `client/system/process.go` (+58 -0) 📝 `go.mod` (+10 -4) 📝 `go.sum` (+27 -5) 📝 `management/client/client.go` (+1 -0) 📝 `management/client/grpc.go` (+39 -0) 📝 `management/client/mock.go` (+8 -0) 📝 `management/proto/management.pb.go` (+672 -568) 📝 `management/proto/management.proto` (+24 -5) 📝 `management/proto/management_grpc.pb.go` (+44 -0) 📝 `management/server/grpcserver.go` (+50 -7) 📝 `management/server/mock_server/management_server_mock.go` (+10 -1) 📝 `management/server/peer.go` (+7 -0) 📝 `management/server/peer/peer.go` (+40 -16) 📝 `management/server/posture/process.go` (+5 -3) _...and 1 more files_ </details> ### 📄 Description ## Describe your changes Evaluate the assigned process check paths by verifying their existence and if there is a running process with the specified path in the client, then synchronize metadata with management. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:09:38 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14230