[PR #3039] [MERGED] Add handler chains #21287

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3039
Author: @lixmal
Created: 12/12/2024
Status: Merged
Merged: 12/12/2024
Merged by: @lixmal

Base: dns-interceptorHead: dns-interceptor-handler-chain


📝 Commits (5)

📊 Changes

13 files changed (+586 additions, -89 deletions)

View changed files

client/internal/dns/handler_chain.go (+155 -0)
client/internal/dns/handler_chain_test.go (+319 -0)
📝 client/internal/dns/mock_server.go (+6 -13)
📝 client/internal/dns/server.go (+44 -32)
📝 client/internal/dns/service_memory.go (+0 -1)
📝 client/internal/dns/upstream.go (+5 -0)
📝 client/internal/dnsfwd/forwarder.go (+13 -8)
📝 client/internal/engine_test.go (+1 -4)
📝 client/internal/routemanager/dnsinterceptor/handler.go (+34 -26)
📝 client/internal/routemanager/dynamic/route.go (+1 -5)
📝 dns/dns.go (+6 -0)
📝 go.mod (+1 -0)
📝 go.sum (+1 -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/3039 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 12/12/2024 **Status:** ✅ Merged **Merged:** 12/12/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `dns-interceptor` ← **Head:** `dns-interceptor-handler-chain` --- ### 📝 Commits (5) - [`a671ba0`](https://github.com/netbirdio/netbird/commit/a671ba05646eea2b140e885a341339a9a3c39a84) Add handler chains - [`aa4389a`](https://github.com/netbirdio/netbird/commit/aa4389afce8703d35496b95193fafc09e1e95837) Fix mocks - [`69b2174`](https://github.com/netbirdio/netbird/commit/69b21747d4a9c7e189bdc99a93bc00d3513b466e) Fixed engine test - [`182d296`](https://github.com/netbirdio/netbird/commit/182d2963b7cf7a8d7c8b3f7eba9242132641ee0f) Set trace level - [`ffefc84`](https://github.com/netbirdio/netbird/commit/ffefc84406a4d282a78b03351325ad672b199677) Add test ### 📊 Changes **13 files changed** (+586 additions, -89 deletions) <details> <summary>View changed files</summary> ➕ `client/internal/dns/handler_chain.go` (+155 -0) ➕ `client/internal/dns/handler_chain_test.go` (+319 -0) 📝 `client/internal/dns/mock_server.go` (+6 -13) 📝 `client/internal/dns/server.go` (+44 -32) 📝 `client/internal/dns/service_memory.go` (+0 -1) 📝 `client/internal/dns/upstream.go` (+5 -0) 📝 `client/internal/dnsfwd/forwarder.go` (+13 -8) 📝 `client/internal/engine_test.go` (+1 -4) 📝 `client/internal/routemanager/dnsinterceptor/handler.go` (+34 -26) 📝 `client/internal/routemanager/dynamic/route.go` (+1 -5) 📝 `dns/dns.go` (+6 -0) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+1 -0) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### 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 --- <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:08:19 -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#21287