Apply ttl check only when authenticate allocation creating (#4526)

* Apply ttl check only when authenticate allocation creating

TTL check could reject allocation/persmission refresh in
security enhancement #4505, cause long-live session disconnect
when turn credential is expired.
Only check ttl on allocation creating to prevent abusing leaked
credential but keep long-live session work.
This commit is contained in:
cnderrauber
2026-05-15 14:55:05 +08:00
committed by GitHub
parent b32933b0d4
commit 89faaeba82
9 changed files with 180 additions and 32 deletions
+2 -1
View File
@@ -38,7 +38,7 @@ require (
github.com/pion/sctp v1.9.5
github.com/pion/sdp/v3 v3.0.18
github.com/pion/transport/v4 v4.0.1
github.com/pion/turn/v4 v4.1.4
github.com/pion/turn/v5 v5.0.4
github.com/pion/webrtc/v4 v4.2.11
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.23.2
@@ -74,6 +74,7 @@ require (
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect
github.com/olekukonko/errors v1.2.0 // indirect
github.com/olekukonko/ll v0.1.6 // indirect
github.com/pion/turn/v4 v4.1.4 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 // indirect