Commit Graph
4187 Commits
Author SHA1 Message Date
Raja SubramanianandClaude Opus 5.5 c19ae42e2c Let clients set a preferred ICE candidate protocol on join (#5267)
* Let clients set a preferred ICE candidate protocol on join

The v1 JoinRequest ConnectionSettings.candidate_protocol and the v0
candidate_protocol query parameter let a client ask for TCP or TLS
from the start. The SFU applies the stronger of the client preference
and the learned room fallback, and keeps the join preference on resume.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Require the candidate protocol on every connect, check ICE/TCP

Resume uses the preference from the resume request, the same as join,
so the participant no longer stores the join value. TCP mode drops UDP
candidates, so a TCP preference applies only when ICE/TCP is enabled,
and TLS without TURN/TLS falls back to TCP only under the same check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the client preference apart from the learned fallback

The room cache now holds only fallbacks the transport learned after a
failure. The participant stores the client preference from join, and
resume applies the stronger of it and the resume request before the
resume response, so the response carries the matching ForceRelay.
TLS mode lists only TLS relays, also from external TURN servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let a resume preference replace the join preference

A resume that sends TCP or TLS uses that value, and only a resume
without a value inherits the preference from join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Ignore an unsupported preference on resume

A resume preference for a transport the server does not offer no
longer replaces the join preference. Each preference is lowered to a
supported transport before the resume picks between them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:16:42 +05:30
Nehal KandDevin AI c8a3c95fd3 docs: document the Redis ACL rules the server needs (#4968)
* docs: document the Redis ACL rules the server needs

There was no reference for which Redis ACL rules LiveKit requires
(#2486), so operators with restricted users had to derive them from
behavior, and the failure modes are non-obvious: a missing
+@connection fails the first PING with a startup error, a missing
+cluster fails CLUSTER SLOTS in cluster mode, and a missing
+@scripting breaks the room lock release script silently.

Lists the keys and prefixes LiveKit stores, the command families it
uses, and working rule sets for single-node and cluster mode. All of
it verified end to end by running the server against a Redis 8
instance with restricted users: startup, room create, list, delete,
and the cluster slot-map path each exercised against the documented
grants with no denials.

Refs #2486

* docs: keep only the two working Redis ACL rule sets

The key and command enumerations can drift from the code; the rule sets
verified against Redis 8 are the durable part.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-24 15:51:35 +08:00
renovate[bot] c5cfc84bbb fix(deps): update module github.com/gammazero/workerpool to v1.3.0 (#5261)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-23 11:47:54 -08:00
renovate[bot] 78a7a128da chore(deps): update docker/login-action action to v4.8.0 (#5259)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-23 11:47:16 -08:00
Raja SubramanianandClaude Opus 5.5 46b81ee003 rtc: handle subscribed track close after subscription installation (#5265)
* rtc: handle subscribed track close after subscription installation

A close of a new SubscribedTrack during addSubscriber was lost or handled
too early. OnClose was registered before the track was stored and did not
replay an earlier close, and the publisher was marked after addSubscriber
returned. A close before the store left a closed track stored with no
resubscribe. A close after the store but before the mark left a stale
publisher mark.

SubscribedTrack now records a close and OnClose replays it. addSubscriber
marks the publisher itself and defers OnClose to its end, the same order
as the data track path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* rtc: cover a rejected install and wait for the deferred close callback

TestSubscribeRevokedInFlight now waits for the close callback that
addSubscriber installs on return before it fires a close.
TestSubscribedTrackCloseDuringInstall adds a case where the recheck
rejects the install and the removal closes the track.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:42:58 +05:30
Perfloop Agent 788c418d0c rtc: handle data track close after subscription installation (#5249)
* Test data track closes during auto-subscription

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* Wait for the close before checking installation recovery

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* Keep the installation regression on the public regrant result

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* Deliver data track close after subscription installation

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* rtc: verify the subscriber exists before the injected close

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* rtc: observe data-track permission races independently of resolver counts

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* rtc: deliver data-track close after subscription installation

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* rtc: guard the data-track close test window and wait for cleanup

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* rtc: deliver data-track close after subscription installation

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

---------

Signed-off-by: Perfloop Agent <agent@perfloop.ai>
2026-11-23 19:54:24 +05:30
cnderrauber cf8c7e066a Always use full ice for publisher offer (#5262)
* Always use full ice for publisher offer

When warp is enabled, ice-lite could complete dtls handshake
before ice is connected when RTT is high. Because libwebrtc
may send nomination after 1s interval, and pion relies on
the nomination to transit ice state to connected while libwebrtc
only relies on a writable pair. Full ice has connectivity check
to mitigate this.
After this change, ice-lite configuration only works on
subscriber pc.

* test
2026-11-23 19:44:03 +08:00
Jacob Gelman 575f96ee4d Log when a data blob is successfully stored (#5252) 2026-11-23 11:34:10 +05:30
cnderrauber d731caa8da Answer dtls server role for ice lite and full (#5260)
Full ice also get benefit from this when warp is enabled.
2026-11-23 12:49:03 +08:00
renovate[bot] 95eded4fe6 fix(deps): update module github.com/livekit/protocol to v1.54.1 (#5257)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-22 19:49:25 -08:00
renovate[bot] 0bac161fee chore(deps): update alpine docker tag to v3.24.4 (#5256)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-22 19:49:00 -08:00
fdf40b94a3 feat: add token revocation list (#4344)
* feat: add token revocation

* token revocation: match LiveKit Cloud API, make it optional

- add token_revocation config section (enabled: false by default, ttl)
- RemoveParticipant: cutoff defaults to now, revoke_token_ts must be within
  60s and is stored with the validation leeway, revoke absent participants,
  keep not found unless revoke_token_ts is given
- UpdateParticipant revokes older tokens on permission updates and the
  participant gets a refreshed token
- share the RoomService logic with Cloud through RevokeTokenClient
- revocations merge to the later cutoff and expiry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* token revocation: clean up expired revocations lazily

Drop the cleanup goroutine of LocalStore. Revocations are kept in a queue
ordered by expiry, and expired ones are removed from its front when
revoking or checking, at most once per minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* token revocation: request context for redis, own lock for LocalStore

- RedisStore revocation calls use the request context
- LocalStore revocations use their own lock instead of the store lock
- remove TestRTCValidateRoomlessTokenAfterRevocation, which passes without revocation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* token revocation: length checks before auth, test all auth chains

Check lengths before the admin permission check, as LiveKit Cloud does, and
test that the API, agent endpoint and WebTransport chains reject revoked tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* token revocation: do not return store errors to clients

Log the error of a failed revocation lookup and respond with a fixed message,
as the store error may contain internal addresses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: cnderrauber <zengjie9004@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:55:28 +08:00
Mahdi Haghparast 332a9d2569 Avoid allocating packet group traffic snapshots (#5253) 2026-11-21 23:17:41 +05:30
armaan4658 0ad326e7f2 rtc: answer an ICE restart offer while ICE is gathering (#5186)
* rtc: answer an ICE restart offer while ICE is gathering

A remote offer that restarts ICE was held while the peer connection was
still gathering candidates and only applied when gathering completed.
Until then no answer was sent, so the remote waited in have-local-offer
for as long as gathering ran, for example until a STUN request timed
out. The remote candidates of the new ICE generation that were trickled
in the meantime were added against the previous remote description,
dropped by pion as not matching the current ufrag, and never added
again.

Holding the offer was added when the ICE agent could not restart while
gathering. The ICE agent now cancels a gather in progress on restart,
so apply the restart offer and answer it right away, and remove the
held offer and its replay on gathering complete.

Refs #5167

* rtc: remove comment
2026-11-20 17:11:05 +08:00
armaan4658 6c88c98604 rtc: remove a closing participant's data tracks from the room (#5246)
UpDataTrackManager.Close empties its map and closes each track, but
does not report them unpublished. When the participant closes itself
(a peer connection disconnect timeout, a full reconnect), the room
removes it afterwards and finds no data tracks, so they stay in
RoomTrackManager and subscribers never get the removal notification.

Report each track unpublished on close, as a closing media track does.

Tests cover both close paths against a real room, and Close itself:
each track reported once, nothing on a second Close or for a track
unpublished before it.
2026-11-20 14:31:57 +05:30
Yeongbin Jeong 4951b4c401 sfu: return the last receiver report time in the wall clock domain (#5248)
DownTrack.GetPrimaryStreamLastReceiverReportTime returned
time.Unix(0, LastReceiverReportTime()), but that is a mono timestamp,
not a real wall time. Connection quality compares it with time.Now()
and with the streaming start, which is a wall time. After the wall clock
steps, for example on an NTP correction, a receiver report looks older
or newer than it is by the step, so the scorer can mark a down track
POOR after one update without a report, or miss reports that stopped.

Convert the mono timestamp to wall time, and return zero time before the
first receiver report, as #5006 does for the last sender report time.
2026-11-20 14:14:33 +05:30
Yeongbin Jeong 246639c5fe sfu: measure probe timing against mono.Now() (#5247)
The probe controller, the probe packet group and the probe cluster store
mono.Now() timestamps, but measure the time since them with time.Since.
Since livekit/protocol#1439, mono.Now() has no monotonic reading, so
time.Since takes the difference from the wall clock. After the wall
clock steps, for example on an NTP correction, the settle wait and the
probe pacing are off by the step for the rest of the process's life.

Use mono.Now().Sub instead.
2026-11-20 14:09:12 +05:30
Anandharaj 8634099070 fix: build with Go 1.27.4 (CVE-2026-97054) (#5245) 2026-11-19 22:52:42 -08:00
Denys SmirnovandClaude Opus 5.5 c10a54095c ci: replace gotestfmt with tparse v0.18.0 (#5244)
gotestfmt prints a group per test, so a failure is buried in a long log
with no summary. tparse prints build errors, failing test output and a
per-package summary table at the end.

Swap the go.mod tool directive and keep stderr out of the pipe: tparse
rejects the whole stream if a non-JSON line follows the first JSON event.


Claude-Session: https://claude.ai/code/session_01S1stDkLA73F1pW3QWkhNVT

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:18:52 +02:00
cnderrauber 4778fe46d8 Remove ParticipantJoined/Left telemetry call on signal node (#5243)
Fix double count problem in #5241.
Remove the call loss nothing, because the
SendStats/SendEvents are no-op now.
2026-11-19 20:01:05 +08:00
armaan4658 529bd357b1 rtc: re-check data track permission after the subscriber is recorded (#5196)
subscribeDataTrack checks the publisher's permission when it resolves
the data track and records the subscriber on the track afterwards. A
publisher revoke removes only the subscribers already recorded on its
data tracks, so a subscribe that passed the check before the revoke and
was recorded after it is never removed. The subscriber keeps receiving
a data track it is no longer allowed to receive.

Resolve the track again once the subscriber is recorded, as is already
done for canSubscribe. If it is still the same data track and
permission is now denied, remove the subscriber and return
ErrNoTrackPermission. The reconcile that follows records the denial,
tells the client, and keeps the subscription waiting until permission
is granted again.
2026-11-19 18:00:39 +08:00
He Chen 3f3a62dc58 TEL-1359: return InvalidArgument for invalid outbound trunk updates (#5242) 2026-11-18 11:53:50 -08:00
Raja SubramanianandClaude Opus 5.5 d1b95c28b3 service: stamp the join request time for every participant kind (#5240)
lk.rtc.joinRequestTime was set only for standard participants. SIP,
agent, egress and other participants now get it too, so the time a
participant reached the signal node is known for every kind.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:29:57 +05:30
Tanish Desai a2880d6978 feat(prometheus): add opt-in livekit_room_included_total gauge (#5239)
Add a new gauge that counts active rooms whose name does not match a
configurable regex. This lets operators keep synthetic rooms (load
tests, health checks) out of autoscaling and dashboards, without
changing livekit_room_total.

Config:

  prometheus:
    port: 6789
    room_exclude_regex: "^(loadtest|healthcheck)-"

Behavior:
- Disabled by default. With an empty room_exclude_regex the metric is
  not registered and nothing changes.
- RE2 syntax, unanchored match.
- An invalid regex fails server startup with a clear error.
- Same node_id/node_type labels as livekit_room_total.
- livekit_room_total and the RoomStarted/RoomEnded signatures are
  unchanged. The new hooks sit next to the existing calls in
  RoomManager.

Tests cover invalid/empty patterns, include/exclude counting, the
existing metric staying unchanged, and safe no-op when disabled.
2026-11-18 15:42:44 +01:00
Raja SubramanianandClaude Fable 5.2 e55b16039a rtpstats: read cumulative loss in receiver reports as signed (#5238)
A remote that counts duplicates as received reports a negative cumulative
loss. Read as unsigned, a report of -1 became 100% loss for the window.

- read TotalLost as a signed 24-bit value, clamp a negative value to 0
- pass the snapshots by pointer in the delta warnings so they are logged
- log the processed receiver reports from the oldest entry

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 17:36:49 +05:30
Raja SubramanianandClaude Fable 5.2 733991f781 rtpstats: keep per-packet state together and use a plain mutex (#5237)
Update runs for every packet. With many streams, most of its cost is
memory access across three structs and about 10 cache lines.

- use sync.Mutex, all readers are short getters
- embed the base structs, the WrapAround trackers, the history bitmap
  and the RTP converter by value
- group the fields that every packet updates, move gapHistogram after them
- compute expectedTSJump only when it is used

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 16:50:21 +05:30
Mansur AkhmadiandMansur Akhmadi c8196add0a rtc: re-check track permission after the subscriber is recorded (#5177)
* rtc: re-check track permission after the subscriber is recorded

* rtc: cover the denial after an in-flight revoke in the subscribe test

---------

Co-authored-by: Mansur Akhmadi <10739460+mansur-akhmadi@users.noreply.github.com>
2026-11-18 18:12:07 +08:00
Raja SubramanianandClaude Fable 5.2 de817c7d50 sfu: return the stream generation from HandleIncomingPacket (#5235)
A caller that writes a packet and forwards it in the same call gets the
generation it needs for a later ReadRTP of that packet.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 00:24:03 +05:30
renovate[bot] df16f90398 fix(deps): update module github.com/moby/moby/client to v0.6.2 (#5231)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-17 09:53:45 -08:00
renovate[bot] 01f893ee55 fix(deps): update module github.com/ory/dockertest/v4 to v4.0.1 (#5232)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-17 09:53:11 -08:00
renovate[bot] 0dd59d85bd fix(deps): update module github.com/urfave/negroni/v3 to v3.1.2 (#5233)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-17 09:52:44 -08:00
renovate[bot] 77ad92ef34 chore(deps): update shogo82148/actions-setup-redis action to v1.60.0 (#5234)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-17 09:52:22 -08:00
Raja SubramanianandClaude Fable 5.2 5ee9dd8da1 sfu: tighten RTP stats restart detection and RTCP report handling (#5220)
* sfu: tighten RTP stats restart detection and RTCP report handling

- A stream restart is a forward-moving run of rejected packets that
  lasts 1 s with no accepted packet, not 5 rejected packets.
- Receiver reports with a wrong cycle count are aligned to the highest
  sent sequence number and no longer dropped as runaway.
- No sender report is sent while publisher sender reports advance at
  less than half or more than twice the clock rate.
- Fold repeated drop and logging blocks into helpers and remove
  unreachable branches.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* sfu: use only the low 16 bits of the receiver report sequence number

Cycle correction could move a report before the start, underflow the
saved highest and block every later report. Map the report to the
latest matching sequence number at or before the highest sent, and
drop the misalignment bookkeeping.

A publisher sender report time stamp that does not advance is now
treated as an off clock rate, not as unmeasured.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* sfu: bound the receiver report distance and key the unchanged check on the accepted report

A report ahead of the highest sent mapped into the previous cycle once
the stream was longer than one cycle. A report must now be within half
a cycle behind the highest sent.

A repeated stale report matched the last received report, not the last
accepted one, and replaced newer loss and jitter values.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Bump mediatransportutil for the OWD estimator fix

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* sfu: log the source stream generation in packetMeta

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* rtpstats: address review comments from Jules

Addresses only the comments from Jules (jtestard) on #5220.

Restart detection
- a reordered or duplicate packet of a run does not reset the run
- padding moves a run forward in sequence number and does not count
- only a packet with payload ends a run, a skipped sequence number does not
- comments on false positives and on the minimum run duration

Publisher clock rate
- measure only across publisher reports at least 1 s apart
- an older publisher report starts a new measurement
- comment on why Seed does not copy the measurement
- drop the reportTime log field, it repeats the report time

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* rtpstats: test publisher clock rate across sources with different timestamp bases

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* rtpstats: address review comments from Anunay

Addresses the comments from Anunay (anunaym14) on #5220.

- skip a sender report only when the publisher rate is low, a pair of
  publisher reports across an unmute reads high and the report is correct
- comment on why a declared restart run is final

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* rtpstats: comment on why a high publisher clock rate is not skipped

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 21:52:32 +05:30
Perfloop Agent 1d0bae0f76 sfu: bind retransmissions to the source cache generation (#5213)
* sfu: reproduce retransmission across receiver restart

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* sfu: use an atomic counter for cache generations

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

* sfu: give test packets a stream generation

Signed-off-by: Perfloop Agent <agent@perfloop.ai>

---------

Signed-off-by: Perfloop Agent <agent@perfloop.ai>
2026-11-17 15:43:00 +05:30
armaan4658 baf98cc567 rtc: publish the upgraded receiver under the dummy receiver's lock (#5218)
DummyReceiver.Upgrade stored the real receiver and only then took
downTrackLock to move the pending down tracks to it. A DeleteDownTrack
that ran in between saw the real receiver, deleted from it (a no-op,
the down track had not moved yet) and returned. Upgrade then moved the
deleted down track to the real receiver, which kept a closed down track
in its spreader for as long as the track lived. DummyRedReceiver.upgrade
had the same order.

Store the receiver while holding downTrackLock in both, so a delete
either removes the down track from the pending map before the move or
finds it on the real receiver after it. GetDownTracks also no longer
returns the real receiver's list without the pending down tracks
during an upgrade.
2026-11-17 12:53:41 +05:30
anupamgit d5508f68ff sfu: roll back RTP state when pausing on downgrade (#5217)
* sfu: roll back RTP state when pausing on downgrade

Dropped higher-layer packets advanced the outgoing timestamp, so a lower layer that stayed slightly behind was rejected on every keyframe.

* sfu: test both sides of the downgrade switch threshold

Set the trails 10ms under and over the threshold, and pad a packet dropped after a sequence gap.
2026-11-17 10:47:35 +05:30
Daisuke Iuchi f45e8db5c4 fix(service): don't panic in UpdateIngress and DeleteIngress without redis (#5227) 2026-11-16 18:17:43 -08:00
renovate[bot] 6e289a118e fix(deps): update module github.com/quic-go/webtransport-go to v0.13.0 (#5222)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 14:35:52 -08:00
renovate[bot] 6e73c94264 fix(deps): update module github.com/urfave/cli/v3 to v3.14.0 (#5224)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 14:15:37 -08:00
renovate[bot] a3a5448bd1 fix(deps): update module github.com/redis/go-redis/v9 to v9.23.0 (#5223)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 14:15:05 -08:00
renovate[bot] f4954335a2 fix(deps): update module github.com/quic-go/quic-go to v0.64.1 (#5221)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 14:14:10 -08:00
renovate[bot] 7d2cd98ae4 fix(deps): update module github.com/olekukonko/tablewriter to v1.1.5 (#4990)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 13:22:04 -08:00
renovate[bot] b799b61d95 fix(deps): update module github.com/pion/webrtc/v4 to v4.2.26 (#4821)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 13:21:52 -08:00
renovate[bot] a726f56906 fix(deps): update github.com/ua-parser/uap-go digest to 4cb30e9 (#5216)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-16 13:20:46 -08:00
Raja SubramanianandClaude Opus 5.5 80cfa6e73f config: count lk. participant attributes against their own size limit (#5130)
* config: count lk. participant attributes against their own size limit

LiveKit services set participant attributes with the lk. prefix. These
attributes now count against a new max_lk_attributes_size limit
(default 1024 bytes), so they do not use up the customer's
max_attributes_size budget. All attribute size checks enforce both
limits and keep the existing error types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* rtc: check attribute limits against the merged participant attributes

UpdateMetadata checked only the attributes in the update, but
SetAttributes merges them into the stored attributes. Sequential
updates could each pass and leave the participant above either limit.
The check now runs on the attributes that the update would store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* service: return invalid argument when merged attributes exceed a limit

The admin API checks only the attributes in the request. The participant
checks them merged with the attributes it already has, so a request can
pass the first check and fail the second. That error reached the caller
as unknown. Return InvalidArgument for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:39:06 +05:30
Dipesh Babu c641421db1 sfu: prevent 32-bit overflow in data-channel bitrate calculations (#5210) 2026-11-15 18:59:33 +05:30
Dipesh Babu bcd327976a rtc: advance local subscription-permission versions past remote updates (#5208) 2026-11-15 18:52:16 +05:30
lukasIOandClaude Fable 5.2 800d6bfa0f rtc: re-use the offered transceiver in one shot signalling on Safari (#5212)
A one shot client, i. e. WHIP, cannot negotiate again. The transceivers
of its offer are the only place for a subscribed track. #4474 turned off
transceiver re-use for Safari, and the check ran before the one shot
branch. The server then added a new transceiver for the subscribed
track, which the answer cannot carry. A WHIP client in desktop Safari
got a `recvonly` answer and never received the track.

The one shot branch now runs first.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 09:51:16 +01:00
Shayne Parlo fb2044e3c9 [🤖 readme-manager] Update README (#5204) 2026-11-14 03:01:21 +05:30
renovate[bot] ec291ed7fb chore(deps): update module go.opentelemetry.io/otel/sdk to v1.47.0 [security] (#5203)
Generated by renovateBot

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-13 12:25:15 -08:00