[PR #3120] [CLOSED] [management] Fix posture checks on route generation for network resources #19393

Open
opened 2026-08-05 05:05:57 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3120
Author: @pascal-fischer
Created: 12/27/2024
Status: Closed

Base: mainHead: fix/posture-checks-for-networks


📝 Commits (10+)

  • 4bde983 include posture checks validation in network map generation for networks routes + tests
  • 289913d rollback changes
  • 0bdd6b2 refactor tests
  • 050fd8c add posture check validation to GetNetworkResourcesRoutesToSync
  • 040aef6 use sort and compact
  • 9e9ecd4 check posture when getting route rules
  • 4912782 test benchmark with GOGC=50
  • c6f28d2 test benchmark with GOGC=20
  • 37c12be using larger runner
  • 8f6195f reduce slice grow

📊 Changes

9 files changed (+480 additions, -72 deletions)

View changed files

📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 management/server/account_test.go (+2 -2)
📝 management/server/peer_test.go (+3 -3)
📝 management/server/policy_test.go (+16 -16)
📝 management/server/route.go (+1 -1)
📝 management/server/types/account.go (+87 -49)
📝 management/server/types/account_test.go (+357 -0)
📝 management/server/types/policy.go (+11 -1)

📄 Description

Describe your changes

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/3120 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 12/27/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/posture-checks-for-networks` --- ### 📝 Commits (10+) - [`4bde983`](https://github.com/netbirdio/netbird/commit/4bde983db594af6f4cdd1d0e3ddc0500680295ff) include posture checks validation in network map generation for networks routes + tests - [`289913d`](https://github.com/netbirdio/netbird/commit/289913de7dc58b27f987504fa28ba66455bf0936) rollback changes - [`0bdd6b2`](https://github.com/netbirdio/netbird/commit/0bdd6b2b190fa6976cf409a8b7b543d6c76cf391) refactor tests - [`050fd8c`](https://github.com/netbirdio/netbird/commit/050fd8c4aac21b3efbaa701710e03a839246e124) add posture check validation to GetNetworkResourcesRoutesToSync - [`040aef6`](https://github.com/netbirdio/netbird/commit/040aef6e50abb9a506eab59e268b6ab3ba363218) use sort and compact - [`9e9ecd4`](https://github.com/netbirdio/netbird/commit/9e9ecd4cfc41488525e10662df14ad418000f42b) check posture when getting route rules - [`4912782`](https://github.com/netbirdio/netbird/commit/491278250f3f65c32e1282d1e9f036f58363166a) test benchmark with GOGC=50 - [`c6f28d2`](https://github.com/netbirdio/netbird/commit/c6f28d2bf38d9d585eadc5eadf7bde722ae02783) test benchmark with GOGC=20 - [`37c12be`](https://github.com/netbirdio/netbird/commit/37c12be9b4bbd78fe1002b18f40578fde7ae658d) using larger runner - [`8f6195f`](https://github.com/netbirdio/netbird/commit/8f6195f908e6b5717e8c049621d971db738a14fe) reduce slice grow ### 📊 Changes **9 files changed** (+480 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `management/server/account_test.go` (+2 -2) 📝 `management/server/peer_test.go` (+3 -3) 📝 `management/server/policy_test.go` (+16 -16) 📝 `management/server/route.go` (+1 -1) 📝 `management/server/types/account.go` (+87 -49) 📝 `management/server/types/account_test.go` (+357 -0) 📝 `management/server/types/policy.go` (+11 -1) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [x] 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 --- <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 05:05:57 -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#19393