[PR #1466] [MERGED] Extend network map generation with posture checks #13762

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1466
Author: @bcmmbaga
Created: 1/15/2024
Status: Merged
Merged: 1/22/2024
Merged by: @bcmmbaga

Base: feature/posture-checksHead: network-map-posture-checks-gen


📝 Commits (10+)

  • 5404bf7 Apply posture checks to network map generation
  • 1f18292 run policy posture checks on peers to connect
  • 3c88ef5 Refactor and streamline policy posture check process for peers to connect.
  • 5c924e5 Add posture checks testing in a network map
  • 524ed6a Remove redundant nil check in policy.go
  • 45297b9 Refactor peer validation check in policy.go
  • d0e4743 Update 'Check' function signature and use logger for version check
  • 2113402 Refactor posture checks run on sources and updated the validation func
  • 1d6fe40 Update peer validation
  • af37b46 fix tests

📊 Changes

5 files changed (+340 additions, -15 deletions)

View changed files

📝 management/server/policy.go (+51 -4)
📝 management/server/policy_test.go (+269 -0)
📝 management/server/posture/checks.go (+1 -1)
📝 management/server/posture/version.go (+8 -7)
📝 management/server/posture/version_test.go (+11 -3)

📄 Description

Describe your changes

Extend peer resource generation by applying policy posture checks to source group peers for non-bi-directional policy rules.

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/1466 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 1/15/2024 **Status:** ✅ Merged **Merged:** 1/22/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `feature/posture-checks` ← **Head:** `network-map-posture-checks-gen` --- ### 📝 Commits (10+) - [`5404bf7`](https://github.com/netbirdio/netbird/commit/5404bf7842ac92df74e4a3381f56480172f1f75f) Apply posture checks to network map generation - [`1f18292`](https://github.com/netbirdio/netbird/commit/1f18292d6771a4db73744a305a06124e4c1f4ed0) run policy posture checks on peers to connect - [`3c88ef5`](https://github.com/netbirdio/netbird/commit/3c88ef543c62092aaed0dfc220e8808ea91056e0) Refactor and streamline policy posture check process for peers to connect. - [`5c924e5`](https://github.com/netbirdio/netbird/commit/5c924e5e50765c12efda459be2b452ee1e4c817d) Add posture checks testing in a network map - [`524ed6a`](https://github.com/netbirdio/netbird/commit/524ed6a7c5dc3a0b92833a18fb9defb830bfe3a3) Remove redundant nil check in policy.go - [`45297b9`](https://github.com/netbirdio/netbird/commit/45297b9df031d295523ee3a2ce15c023497b6d9d) Refactor peer validation check in policy.go - [`d0e4743`](https://github.com/netbirdio/netbird/commit/d0e47434374e01f078cdb5c700858e75a209aa00) Update 'Check' function signature and use logger for version check - [`2113402`](https://github.com/netbirdio/netbird/commit/21134024883ca16740392ebae6bf6b97757ff4ed) Refactor posture checks run on sources and updated the validation func - [`1d6fe40`](https://github.com/netbirdio/netbird/commit/1d6fe405e12f028d4dfa4f77d3ff0bf8ce048971) Update peer validation - [`af37b46`](https://github.com/netbirdio/netbird/commit/af37b46a2ace1162b2b0b7e3f299c0817d096b33) fix tests ### 📊 Changes **5 files changed** (+340 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `management/server/policy.go` (+51 -4) 📝 `management/server/policy_test.go` (+269 -0) 📝 `management/server/posture/checks.go` (+1 -1) 📝 `management/server/posture/version.go` (+8 -7) 📝 `management/server/posture/version_test.go` (+11 -3) </details> ### 📄 Description ## Describe your changes Extend peer resource generation by applying policy posture checks to source group peers for non-bi-directional policy rules. ## 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:08:58 -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#13762