Repository navigation
Description
Summary
Video ingestion can go through one proxy of its own (VIDEO_INGEST_PROXY_URL) or through the deployment's
outbound proxies (OUTBOUND_PROXY_URLS), which also carry every other request to other websites. It cannot go
through several proxies of its own. This issue asks for VIDEO_INGEST_PROXY_URLS: a list of proxies for video
ingestion only, with the per-video failover that the outbound list already gets.
Why
- Platforms refuse many proxy addresses. On 2026-10-28, YouTube served metadata through 27 and then 31 of one
provider's 100 shared data-center addresses, in two passes about 35 minutes apart. It refused 70 and then 66 with
its bot check, and 12 addresses changed verdict between the passes. - The addresses that pass are the expensive ones. Proxies on residential or ISP networks are refused less often
(docs/en/self-hosted/configuration/video-ingestion.md:48), and providers usually bill them per address or per
gigabyte. Listed inOUTBOUND_PROXY_URLS, they would also carry the website crawler, the chat assistant's web
fetch, remote email images and everything sandbox sessions reach on the internet
(docs/en/self-hosted/configuration/environment-reference.md:227-233). - One video proxy has no failover.
VIDEO_INGEST_PROXY_URLtakes one URL, and an attempt the platform refuses
through it is not repeated. One refused or expired address stops video ingestion until an operator changes the
environment and recreates the worker. - A report on 2026-10-29: video ingestion still fails through shared data-center proxies. The version, the
configuration, the log lines and the failure reasons were not captured.
What the code does today
At main 9be5cad:
services/platform/backend/core/video_links/ytdlp.ts:194-211readsVIDEO_INGEST_PROXY_URLas one URL, in any
scheme yt-dlp speaks (:179-186:http,https,socks4,socks4a,socks5,socks5h). An invalid value is
ignored with a warning.ytdlp.ts:230-238: that URL wins over the outbound proxies.ytdlp.ts:389-403:YtdlpRoute.blamereturns false off the outbound list, so a run through
VIDEO_INGEST_PROXY_URLis never repeated (test:ytdlp.test.ts:474).moveOn(:408-421) walks only the
outbound list (nextOutboundProxy,services/platform/lib/net/outbound-proxy.ts:58).ytdlp.ts:282-292: at most five runs per yt-dlp call, and none after the first 90 seconds of a step, so the metadata
step stays inside the worker watchdog's five minutes.:294-303: per platform, the next video starts on the proxy
that last served one.ytdlp.ts:305-313: a video keeps one address for all its runs, because YouTube signs media for the address that
asked and can refuse the download from another.packages/shared/src/net/outbound-proxies.ts:1-23:OUTBOUND_PROXY_URLSacceptshttp://entries only, because
sandbox-egressreads the same list (services/sandbox-egress/outbound-proxies.awk). A malformed entry stops the
backend from starting (services/platform/backend/env.ts:173).
Where the setting is described or checked:
.env.example:919-924. The CLI's generated.envmentions onlyOUTBOUND_PROXY_URLS
(tools/cli/src/lib/config/ensure-env.ts:791-793).docs/{en,de,fr}/self-hosted/configuration/video-ingestion.md:30-56andenvironment-reference.md:232and:539.- Spec VID-R7 (
services/platform/backend/domains/video_links/spec.md:51-59). - Manual boxes VID-F6, VID-F9 and VID-B2 (
services/platform/tests/manual/suites/video-links.md:65-71,:84-90,
:98-101), andservices/platform/tests/manual/reference/automation/video-links.md:9. - Guard
services/platform/tests/guards/outbound-proxies.guard.test.ts:182-194: each locale's row for
VIDEO_INGEST_PROXY_URLmust nameOUTBOUND_PROXY_URLS. - Not examined: how the Kubernetes manifests hand video settings to the worker.
Observed: static residential addresses (2026-10-29)
20 static residential addresses from one provider were each set as VIDEO_INGEST_PROXY_URL and run through the
backend's own runner (ytdlp.ts at main, yt-dlp 2026.10.26, bgutil PO-token provider 1.3.1, player clients
default,mweb,tv_simply). All 20 fetched the metadata, the English captions and the audio of one YouTube video. One
address alone took 86 seconds; with five at a time, each took 166 to 273 seconds. That was one video at one moment,
from one machine.
Constraints
- A video keeps one address for all its runs, so a list keeps the per-video route, and rotating endpoints stay
unsuitable. - Deployments that set
VIDEO_INGEST_PROXY_URLkeep working unchanged. - Log lines name a proxy by its position and
host:port, never by its credentials (outboundProxyEntry,
services/platform/lib/net/outbound-proxy.ts:95). - The metadata step stays inside the watchdog's five minutes.
Options (no preference)
- A new
VIDEO_INGEST_PROXY_URLS, a list for video only.VIDEO_INGEST_PROXY_URLkeeps working as a list of
one. - Let
VIDEO_INGEST_PROXY_URLtake a list. No new name, and a single value keeps today's meaning, but the
singular name would hold several. - A video list in front of the outbound list. Video goes through its own proxies first, and moves on to
OUTBOUND_PROXY_URLSonce all of them have failed it.
Questions
- With both
VIDEO_INGEST_PROXY_URLandVIDEO_INGEST_PROXY_URLSset: refuse to start, merge them, or let one win? - When every video proxy has failed a video: end with the platform's reason, as the outbound list does, or fall back
to the outbound proxies or a direct connection? - Schemes:
http://only, likeOUTBOUND_PROXY_URLS(one parser, one grammar), or every scheme yt-dlp speaks, like
VIDEO_INGEST_PROXY_URL(socks5h://included)? - A malformed entry: stop the backend from starting, like
OUTBOUND_PROXY_URLS, or warn and ignore it, like
VIDEO_INGEST_PROXY_URL? - Rotation state: its own turn and its own memory of proxies set aside, or shared with the outbound rotation? Today a
proxy that yt-dlp cannot get through is set aside for every request (setOutboundProxyAside,
services/platform/lib/net/outbound-proxy.ts:107). - Keep five runs per call and the 90-second window for the video list, or scale them with its length?
Related
- fix(platform): get video ingestion through partly walled proxies #5066: one proxy per video, with failover through the outbound list (shipped in v0.5.94)
- feat(platform): reach other websites through a round-robin proxy pool #5053: the outbound proxy list
OUTBOUND_PROXY_URLS - docs(platform): state the video proxy attempt cap per fetch #5067: the docs' description of the attempt cap
Activity
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
tale-code-bot commentedon Nov 2, 2026
Landed on
release/0.6, the 0.6 feature line, with feature train #5329 as 83866e6 (feat(platform): give video ingestion a list of proxies of its own); it ships with Tale 0.6.0. GitHub closes issues only for commits onmain, so the feature-train role closes this one. Board task: TALE-335.feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own
feat(platform): give video ingestion a list of proxies of its own