[PR #3164] [MERGED] [management] Send relay credentials with turn updates #19504

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3164
Author: @mlsmaycon
Created: 1/8/2025
Status: Merged
Merged: 1/10/2025
Merged by: @mlsmaycon

Base: mainHead: fix/send-relay-credentials-with-turn


📝 Commits (7)

  • cb50f98 Send relay credentials with turn updates
  • ff09ca9 send only if relay config is not nil
  • 1a9dcfd rename pushNewTURNTokens to pushNewTURNAndRelayTokens
  • e84cfa6 use GenerateRelayToken
  • 3d7003b use GenerateRelayToken
  • 70b0925 test only relay credentials push updates
  • a6eb3c2 adjust minimum benchmark

📊 Changes

3 files changed (+25 additions, -10 deletions)

View changed files

📝 management/server/peer_test.go (+3 -2)
📝 management/server/token_mgr.go (+14 -3)
📝 management/server/token_mgr_test.go (+8 -5)

📄 Description

Describe your changes

send relay credentials when sending turn credentials update to avoid removing servers
from clients
linked to the issue fixed in #3162

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/3164 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 1/8/2025 **Status:** ✅ Merged **Merged:** 1/10/2025 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/send-relay-credentials-with-turn` --- ### 📝 Commits (7) - [`cb50f98`](https://github.com/netbirdio/netbird/commit/cb50f98d9deee21ab7e94ce22f93558795481654) Send relay credentials with turn updates - [`ff09ca9`](https://github.com/netbirdio/netbird/commit/ff09ca977db841bcee24a21c742bd0df28a9bd32) send only if relay config is not nil - [`1a9dcfd`](https://github.com/netbirdio/netbird/commit/1a9dcfdfba9ddf1135b93fddb7ef9865c922f964) rename pushNewTURNTokens to pushNewTURNAndRelayTokens - [`e84cfa6`](https://github.com/netbirdio/netbird/commit/e84cfa6657e811f3b64c8af201f09628f0cfde1d) use GenerateRelayToken - [`3d7003b`](https://github.com/netbirdio/netbird/commit/3d7003b8b46465fbc0c74169c564f442914e1746) use GenerateRelayToken - [`70b0925`](https://github.com/netbirdio/netbird/commit/70b0925c6728b84659ff189a0509d054db7f0fb9) test only relay credentials push updates - [`a6eb3c2`](https://github.com/netbirdio/netbird/commit/a6eb3c2b394ffa603b48ce6b003680aab47bfd12) adjust minimum benchmark ### 📊 Changes **3 files changed** (+25 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `management/server/peer_test.go` (+3 -2) 📝 `management/server/token_mgr.go` (+14 -3) 📝 `management/server/token_mgr_test.go` (+8 -5) </details> ### 📄 Description ## Describe your changes send relay credentials when sending turn credentials update to avoid removing servers from clients linked to the issue fixed in #3162 ## Issue ticket number and link ### Checklist - [x] 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:06:06 -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#19504