[PR #3864] [MERGED] [management] Extend nameserver match domain validation #18793

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3864
Author: @bcmmbaga
Created: 5/22/2025
Status: Merged
Merged: 5/22/2025
Merged by: @mlsmaycon

Base: mainHead: update-ns-domain-validation


📝 Commits (3)

  • f25b5bb Enhance match domain validation logic and add test cases
  • 31f0879 remove the leading dot and root dot support ns regex
  • 3e3268d Remove support for wildcard ns match domain

📊 Changes

2 files changed (+29 additions, -11 deletions)

View changed files

📝 management/server/nameserver.go (+5 -7)
📝 management/server/nameserver_test.go (+24 -4)

📄 Description

Describe your changes

Closes #2021

Stack

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

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 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/3864 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 5/22/2025 **Status:** ✅ Merged **Merged:** 5/22/2025 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `update-ns-domain-validation` --- ### 📝 Commits (3) - [`f25b5bb`](https://github.com/netbirdio/netbird/commit/f25b5bb9875297b69ad59a0953d374b2cb99b146) Enhance match domain validation logic and add test cases - [`31f0879`](https://github.com/netbirdio/netbird/commit/31f0879e7174e63e14a840fa4bcc9adcf99ddd13) remove the leading dot and root dot support ns regex - [`3e3268d`](https://github.com/netbirdio/netbird/commit/3e3268db5ffc07702ab8788d12bbac4efb3698fc) Remove support for wildcard ns match domain ### 📊 Changes **2 files changed** (+29 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `management/server/nameserver.go` (+5 -7) 📝 `management/server/nameserver_test.go` (+24 -4) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link Closes #2021 ## Stack <!-- branch-stack --> ### 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 > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <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 04:08:55 -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#18793