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
+3 -2
View File
@@ -26,10 +26,11 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/timestamppb"
"github.com/livekit/protocol/livekit"
"github.com/livekit/livekit-server/pkg/telemetry"
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/protocol/livekit"
)
type twirpRequestFields struct {
@@ -407,7 +408,7 @@ func telemetryResponseSent(
}
a.NodeId = string(nodeID)
if statusCode, ok := twirp.StatusCode(ctx); ok {
if status, err := strconv.Atoi(statusCode); err == nil {
if status, err := strconv.ParseInt(statusCode, 10, 32); err == nil {
a.Status = int32(status)
}
}