[PR #4304] [CLOSED] [management] unify domain validation into single package used #25146

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4304
Author: @pascal-fischer
Created: 8/7/2025
Status: Closed

Base: mainHead: chore/unify-domain-validation


📝 Commits (6)

  • 6124405 unify domain validation into single package used
  • 0af0447 update regex and tests
  • b5da6d3 dynamic regex
  • 1c17067 allow wildcard
  • 30b387b separate fqdn and domain validation
  • 78c886e use domains validate for routes

📊 Changes

9 files changed (+211 additions, -85 deletions)

View changed files

📝 client/cmd/up.go (+1 -1)
📝 management/server/account.go (+4 -10)
📝 management/server/http/handlers/routes/routes_handler.go (+3 -3)
📝 management/server/nameserver.go (+3 -24)
📝 management/server/nameserver_test.go (+5 -5)
📝 management/server/networks/resources/types/resource.go (+3 -5)
📝 management/server/peer.go (+1 -1)
📝 shared/management/domain/validate.go (+115 -21)
📝 shared/management/domain/validate_test.go (+76 -15)

📄 Description

Describe your changes

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/4304 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 8/7/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chore/unify-domain-validation` --- ### 📝 Commits (6) - [`6124405`](https://github.com/netbirdio/netbird/commit/6124405f945df7fdd7c892755bfa3337bb00d92f) unify domain validation into single package used - [`0af0447`](https://github.com/netbirdio/netbird/commit/0af0447f1b7e5b83fd09fd482e60beef22427db2) update regex and tests - [`b5da6d3`](https://github.com/netbirdio/netbird/commit/b5da6d3f8e9c66cea4561d29cf7904f00d856dc9) dynamic regex - [`1c17067`](https://github.com/netbirdio/netbird/commit/1c1706753df30cdb2fa46932f65f7afa08d467bc) allow wildcard - [`30b387b`](https://github.com/netbirdio/netbird/commit/30b387ba02856d1da1a100c9f3729402ca375312) separate fqdn and domain validation - [`78c886e`](https://github.com/netbirdio/netbird/commit/78c886eb53ecd8d712469488ebbaeca7911b48f4) use domains validate for routes ### 📊 Changes **9 files changed** (+211 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/up.go` (+1 -1) 📝 `management/server/account.go` (+4 -10) 📝 `management/server/http/handlers/routes/routes_handler.go` (+3 -3) 📝 `management/server/nameserver.go` (+3 -24) 📝 `management/server/nameserver_test.go` (+5 -5) 📝 `management/server/networks/resources/types/resource.go` (+3 -5) 📝 `management/server/peer.go` (+1 -1) 📝 `shared/management/domain/validate.go` (+115 -21) 📝 `shared/management/domain/validate_test.go` (+76 -15) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-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](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 06: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#25146