Files
livekit/pkg/service
Pradeep SharmaandClaude Opus 5.5 5a992e5a22 ingress: reject URL pull sources on internal addresses
CreateIngress for a URL pull ingress only checked the URL scheme, so the
ingress handler could be pointed at loopback, private, link-local
(including the cloud metadata address) or other internal hosts.

Resolve the host of http, https and srt URLs at create time and reject
localhost names, unresolvable hosts, and any host with a resolved address
that is loopback, private, link-local, CGNAT, unspecified, 0.0.0.0/8,
multicast or broadcast. IPv4-mapped addresses are checked as IPv4.

ingress.allow_private_url_pull (default false) turns the check off for
deployments that pull from sources on their own network.

This is a create-time check against the server's DNS. Redirects, HLS
sub-fetches and DNS answers that change before the fetch still have to
be enforced where the fetch happens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:49:14 -08:00
..
2024-06-27 02:13:51 -07:00
2025-09-24 13:16:27 +05:30