[PR #1546] [MERGED] Deny peer without location when evaluate geo check #15537

Closed
opened 2026-08-05 03:07:53 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1546
Author: @bcmmbaga
Created: 2/8/2024
Status: Merged
Merged: 2/8/2024
Merged by: @bcmmbaga

Base: feature/posture-checksHead: no-location-peer-denial-geocheck


📝 Commits (1)

  • 719b94d Add tests and validation for empty peer location in GeoLocationCheck

📊 Changes

2 files changed (+35 additions, -0 deletions)

View changed files

📝 management/server/posture/geo_location.go (+5 -0)
📝 management/server/posture/geo_location_test.go (+30 -0)

📄 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/1546 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 2/8/2024 **Status:** ✅ Merged **Merged:** 2/8/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `feature/posture-checks` ← **Head:** `no-location-peer-denial-geocheck` --- ### 📝 Commits (1) - [`719b94d`](https://github.com/netbirdio/netbird/commit/719b94d9e40d8a1a7586a7b030be582e4e264605) Add tests and validation for empty peer location in GeoLocationCheck ### 📊 Changes **2 files changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `management/server/posture/geo_location.go` (+5 -0) 📝 `management/server/posture/geo_location_test.go` (+30 -0) </details> ### 📄 Description ## Describe your changes ## 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 03:07:53 -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#15537