[PR #1705] [MERGED] Refactor posture check validations #14203

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1705
Author: @bcmmbaga
Created: 3/14/2024
Status: Merged
Merged: 3/14/2024
Merged by: @bcmmbaga

Base: add-process-posture-checkHead: refactor-posture-check-validations


📝 Commits (5)

  • 8214de9 Add posture checks validation
  • 11774bf Refactor code to incorporate posture checks validation directly into management.
  • 3ed356e Add posture checks validation for geolocation, OS version, network, process, and NB-version
  • ca80170 Merge branch 'add-process-posture-check' into refactor-posture-check-validations
  • 83c2ba2 Fix tests

📊 Changes

16 files changed (+514 additions, -320 deletions)

View changed files

📝 management/server/http/geolocations_handler.go (+7 -2)
📝 management/server/http/posture_checks_handler.go (+7 -94)
📝 management/server/http/posture_checks_handler_test.go (+13 -151)
📝 management/server/posture/checks.go (+36 -34)
📝 management/server/posture/checks_test.go (+14 -0)
📝 management/server/posture/geo_location.go (+26 -0)
📝 management/server/posture/geo_location_test.go (+78 -0)
📝 management/server/posture/nb_version.go (+12 -0)
📝 management/server/posture/nb_version_test.go (+30 -0)
📝 management/server/posture/network.go (+17 -0)
📝 management/server/posture/network_test.go (+49 -0)
📝 management/server/posture/os_version.go (+37 -1)
📝 management/server/posture/os_version_test.go (+76 -0)
📝 management/server/posture/process.go (+13 -0)
📝 management/server/posture/process_test.go (+98 -37)
📝 management/server/posture_checks.go (+1 -1)

📄 Description

Describe your changes

Move the posture check validation to 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/1705 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 3/14/2024 **Status:** ✅ Merged **Merged:** 3/14/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `add-process-posture-check` ← **Head:** `refactor-posture-check-validations` --- ### 📝 Commits (5) - [`8214de9`](https://github.com/netbirdio/netbird/commit/8214de9e51b63ed4d811b580894f79c245503279) Add posture checks validation - [`11774bf`](https://github.com/netbirdio/netbird/commit/11774bf6810635783f1bc841a9004eeacecf8851) Refactor code to incorporate posture checks validation directly into management. - [`3ed356e`](https://github.com/netbirdio/netbird/commit/3ed356e23717cfd0c16ab302b323a2286c060411) Add posture checks validation for geolocation, OS version, network, process, and NB-version - [`ca80170`](https://github.com/netbirdio/netbird/commit/ca801700885299a9eeacb874ff6d201e361b5483) Merge branch 'add-process-posture-check' into refactor-posture-check-validations - [`83c2ba2`](https://github.com/netbirdio/netbird/commit/83c2ba285f042879fc9ea341474ddaee04dbc828) Fix tests ### 📊 Changes **16 files changed** (+514 additions, -320 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/geolocations_handler.go` (+7 -2) 📝 `management/server/http/posture_checks_handler.go` (+7 -94) 📝 `management/server/http/posture_checks_handler_test.go` (+13 -151) 📝 `management/server/posture/checks.go` (+36 -34) 📝 `management/server/posture/checks_test.go` (+14 -0) 📝 `management/server/posture/geo_location.go` (+26 -0) 📝 `management/server/posture/geo_location_test.go` (+78 -0) 📝 `management/server/posture/nb_version.go` (+12 -0) 📝 `management/server/posture/nb_version_test.go` (+30 -0) 📝 `management/server/posture/network.go` (+17 -0) 📝 `management/server/posture/network_test.go` (+49 -0) 📝 `management/server/posture/os_version.go` (+37 -1) 📝 `management/server/posture/os_version_test.go` (+76 -0) 📝 `management/server/posture/process.go` (+13 -0) 📝 `management/server/posture/process_test.go` (+98 -37) 📝 `management/server/posture_checks.go` (+1 -1) </details> ### 📄 Description ## Describe your changes Move the posture check validation to management. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] 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:35 -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#14203