[PR #2517] [MERGED] Split relay auth config and handle multiple addresses #19751

Closed
opened 2026-08-05 05:06:24 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2517
Author: @lixmal
Created: 9/2/2024
Status: Merged
Merged: 9/4/2024
Merged by: @lixmal

Base: feature/relay-integrationHead: split-relay-auth-config


📝 Commits (10+)

  • 19285f9 Split relay and turn secret config and generation
  • 4e2929c Use sha256 for relay and sha1 for turn for backwards compat
  • 6335757 Handle multiple server connections
  • e6dbdbb Fix context being cancelled
  • 62c5bcc Fix compile issues
  • 8d96729 Fix tests
  • 02e51c6 Fix credentials test
  • 90f4e44 Fix test signature
  • 2d7366f Use client logger
  • 91083c1 Add peer ID to signature mismatch error

📊 Changes

31 files changed (+669 additions, -372 deletions)

View changed files

📝 client/cmd/testutil_test.go (+2 -5)
📝 client/internal/connect.go (+11 -17)
📝 client/internal/engine.go (+3 -3)
📝 client/internal/engine_test.go (+14 -11)
📝 client/internal/peer/status.go (+14 -8)
📝 client/server/server_test.go (+3 -5)
📝 client/testdata/management.json (+8 -1)
📝 management/client/client_test.go (+3 -5)
📝 management/cmd/management.go (+3 -3)
📝 management/cmd/management_test.go (+15 -10)
📝 management/server/config.go (+3 -1)
📝 management/server/grpcserver.go (+75 -53)
📝 management/server/management_proto_test.go (+2 -5)
📝 management/server/management_test.go (+2 -5)
📝 management/server/peer_test.go (+1 -1)
📝 management/server/token_mgr.go (+137 -61)
📝 management/server/token_mgr_test.go (+104 -31)
📝 relay/auth/allow/allow_all.go (+3 -1)
📝 relay/auth/doc.go (+2 -2)
📝 relay/auth/hmac/token.go (+8 -8)

...and 11 more files

📄 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/2517 **Author:** [@lixmal](https://github.com/lixmal) **Created:** 9/2/2024 **Status:** ✅ Merged **Merged:** 9/4/2024 **Merged by:** [@lixmal](https://github.com/lixmal) **Base:** `feature/relay-integration` ← **Head:** `split-relay-auth-config` --- ### 📝 Commits (10+) - [`19285f9`](https://github.com/netbirdio/netbird/commit/19285f9b79d778baa7b12dc7e73f5767a8182083) Split relay and turn secret config and generation - [`4e2929c`](https://github.com/netbirdio/netbird/commit/4e2929c5c0dea4c1eddfc4d41a2596932082319e) Use sha256 for relay and sha1 for turn for backwards compat - [`6335757`](https://github.com/netbirdio/netbird/commit/63357575704fcfd4316f3aa57ea928d71f14458f) Handle multiple server connections - [`e6dbdbb`](https://github.com/netbirdio/netbird/commit/e6dbdbb9de883ee26b7fc73304a71e7c0aed28f7) Fix context being cancelled - [`62c5bcc`](https://github.com/netbirdio/netbird/commit/62c5bcc0d8d93a9c42004aa2b5bdea81e2108bbc) Fix compile issues - [`8d96729`](https://github.com/netbirdio/netbird/commit/8d96729a022d0e5a56009a4c844b7355d4bc6717) Fix tests - [`02e51c6`](https://github.com/netbirdio/netbird/commit/02e51c6ae6a8d0897fac3b8d86601b2582685fbd) Fix credentials test - [`90f4e44`](https://github.com/netbirdio/netbird/commit/90f4e44a314b715938d6ed380c78230cd11aa579) Fix test signature - [`2d7366f`](https://github.com/netbirdio/netbird/commit/2d7366f0ca6cb294a4d082b30f6e65e78bb201ef) Use client logger - [`91083c1`](https://github.com/netbirdio/netbird/commit/91083c1ef72635f5ebbe9f21252ea700e3d78d18) Add peer ID to signature mismatch error ### 📊 Changes **31 files changed** (+669 additions, -372 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/testutil_test.go` (+2 -5) 📝 `client/internal/connect.go` (+11 -17) 📝 `client/internal/engine.go` (+3 -3) 📝 `client/internal/engine_test.go` (+14 -11) 📝 `client/internal/peer/status.go` (+14 -8) 📝 `client/server/server_test.go` (+3 -5) 📝 `client/testdata/management.json` (+8 -1) 📝 `management/client/client_test.go` (+3 -5) 📝 `management/cmd/management.go` (+3 -3) 📝 `management/cmd/management_test.go` (+15 -10) 📝 `management/server/config.go` (+3 -1) 📝 `management/server/grpcserver.go` (+75 -53) 📝 `management/server/management_proto_test.go` (+2 -5) 📝 `management/server/management_test.go` (+2 -5) 📝 `management/server/peer_test.go` (+1 -1) 📝 `management/server/token_mgr.go` (+137 -61) 📝 `management/server/token_mgr_test.go` (+104 -31) 📝 `relay/auth/allow/allow_all.go` (+3 -1) 📝 `relay/auth/doc.go` (+2 -2) 📝 `relay/auth/hmac/token.go` (+8 -8) _...and 11 more files_ </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [x] 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:06:24 -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#19751