[PR #4344] [CLOSED] [server] Fix mysql setup #23085

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4344
Author: @pappz
Created: 8/14/2025
Status: Closed

Base: mainHead: fix/mysql-setup


📝 Commits (10+)

  • 376fc95 Refactor ICE connection handling for improved clarity and performance
  • b0c95d9 Enhance ICE handshake with session ID management and improve message handling
  • daa27a3 Fix grammar
  • d8ab5ce Fix test
  • fa04b2c Remove unnecessary return statement in ICE worker function
  • d0ed9bb Fix pointer logging
  • a57cb82 Fix pointer logging
  • 5194ba1 Add SessionIDString method to OfferAnswer to avoid nil pointer exceptions
  • c207e0b Fix logging
  • 8d9411e Update decryption worker to accept context in AddMsg method for avoid deadlock

📊 Changes

15 files changed (+548 additions, -338 deletions)

View changed files

📝 .github/workflows/test-infrastructure-files.yml (+2 -0)
📝 client/internal/engine.go (+49 -42)
📝 client/internal/peer/conn.go (+8 -17)
📝 client/internal/peer/conn_test.go (+46 -49)
📝 client/internal/peer/guard/guard.go (+16 -17)
📝 client/internal/peer/handshaker.go (+49 -61)
client/internal/peer/session_id.go (+47 -0)
📝 client/internal/peer/signaler.go (+8 -3)
📝 client/internal/peer/worker_ice.go (+168 -94)
infrastructure_files/mysql-init.sql (+2 -0)
📝 shared/signal/client/client.go (+2 -1)
📝 shared/signal/client/grpc.go (+53 -25)
shared/signal/client/worker.go (+55 -0)
📝 shared/signal/proto/signalexchange.pb.go (+41 -29)
📝 shared/signal/proto/signalexchange.proto (+2 -0)

📄 Description

Describe your changes

Add MySQL initialization script and update Docker configuration

Original error was:
Access denied; you need (at least one of) the SUPER or SYSTEM_VARIABLES_ADMIN privilege(s) for this operation

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)

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

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__


🔄 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/4344 **Author:** [@pappz](https://github.com/pappz) **Created:** 8/14/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/mysql-setup` --- ### 📝 Commits (10+) - [`376fc95`](https://github.com/netbirdio/netbird/commit/376fc954eeb299194a674ba7c0744cb36e09c701) Refactor ICE connection handling for improved clarity and performance - [`b0c95d9`](https://github.com/netbirdio/netbird/commit/b0c95d9bd2ed3384bc9380b332afb28bafa933cf) Enhance ICE handshake with session ID management and improve message handling - [`daa27a3`](https://github.com/netbirdio/netbird/commit/daa27a3e24256546529f8783829d6aeee019a37f) Fix grammar - [`d8ab5ce`](https://github.com/netbirdio/netbird/commit/d8ab5ceec6d657fba52faae81f194bff83b0b358) Fix test - [`fa04b2c`](https://github.com/netbirdio/netbird/commit/fa04b2ca77d2ec5d337cbc3090fc9cbf938aadb2) Remove unnecessary return statement in ICE worker function - [`d0ed9bb`](https://github.com/netbirdio/netbird/commit/d0ed9bb59d7d1e3ebd75499ef42c70847fcd0657) Fix pointer logging - [`a57cb82`](https://github.com/netbirdio/netbird/commit/a57cb82f82253febf594c29f3be1a661ffbdd6fb) Fix pointer logging - [`5194ba1`](https://github.com/netbirdio/netbird/commit/5194ba1580f7c98576f46e79ab9c3b5bb2baf83f) Add SessionIDString method to OfferAnswer to avoid nil pointer exceptions - [`c207e0b`](https://github.com/netbirdio/netbird/commit/c207e0b0b3788b5c00199f62c19fb98bdae29982) Fix logging - [`8d9411e`](https://github.com/netbirdio/netbird/commit/8d9411e11e425e7b86b99426d31ad0fe479b0b78) Update decryption worker to accept context in AddMsg method for avoid deadlock ### 📊 Changes **15 files changed** (+548 additions, -338 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test-infrastructure-files.yml` (+2 -0) 📝 `client/internal/engine.go` (+49 -42) 📝 `client/internal/peer/conn.go` (+8 -17) 📝 `client/internal/peer/conn_test.go` (+46 -49) 📝 `client/internal/peer/guard/guard.go` (+16 -17) 📝 `client/internal/peer/handshaker.go` (+49 -61) ➕ `client/internal/peer/session_id.go` (+47 -0) 📝 `client/internal/peer/signaler.go` (+8 -3) 📝 `client/internal/peer/worker_ice.go` (+168 -94) ➕ `infrastructure_files/mysql-init.sql` (+2 -0) 📝 `shared/signal/client/client.go` (+2 -1) 📝 `shared/signal/client/grpc.go` (+53 -25) ➕ `shared/signal/client/worker.go` (+55 -0) 📝 `shared/signal/proto/signalexchange.pb.go` (+41 -29) 📝 `shared/signal/proto/signalexchange.proto` (+2 -0) </details> ### 📄 Description ## Describe your changes Add MySQL initialization script and update Docker configuration Original error was: Access denied; you need (at least one of) the SUPER or SYSTEM_VARIABLES_ADMIN privilege(s) for this operation ## Issue ticket number and link ## Stack <!-- branch-stack --> ### 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) > 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). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ --- <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:06:46 -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#23085