Fix for some CodeQL reported issues (#4314)

One of the fix is in updated protocol (logging of a request message that includes the turn server settings, including password).
This commit is contained in:
Benjamin Pracht
2026-02-11 10:15:12 -08:00
committed by GitHub
parent 77c858f001
commit 03e90dd762
4 changed files with 10 additions and 9 deletions
+4 -4
View File
@@ -27,9 +27,6 @@ import (
"github.com/pkg/errors"
"golang.org/x/exp/maps"
"github.com/livekit/livekit-server/pkg/agent"
"github.com/livekit/livekit-server/pkg/sfu"
sutils "github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/mediatransportutil/pkg/rtcconfig"
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/livekit"
@@ -42,6 +39,10 @@ import (
"github.com/livekit/psrpc"
"github.com/livekit/psrpc/pkg/middleware"
"github.com/livekit/livekit-server/pkg/agent"
"github.com/livekit/livekit-server/pkg/sfu"
sutils "github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/pkg/clientconfiguration"
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/routing"
@@ -1003,7 +1004,6 @@ func (r *RoomManager) iceServersForParticipant(apiKey string, participant types.
participant.GetLogger().Warnw("could not create turn password", err)
hasSTUN = false
} else {
logger.Infow("created TURN password", "username", username, "password", password)
iceServers = append(iceServers, &livekit.ICEServer{
Urls: urls,
Username: username,