Repository navigation
feat: add external API runtime and request control plane - #810
Open
bballdavis wants to merge 15 commits into
Open
bballdavis wants to merge 15 commits into
bballdavis wants to merge 15 commits into
Conversation
bballdavis
force-pushed
the
feature/external-api-runtime
branch
from
September 8, 2026 23:23
4517a3e to
56bb87b
Compare
dialmaster
requested changes
Sep 14, 2026
Collaborator
Author
That was the plan! I just went ahead and started building out the PR's since i was confusing myself what was going where, but left them as draft. Once we get those first two I'll rebase and submit for review. |
bballdavis
force-pushed
the
feature/external-api-runtime
branch
from
October 7, 2026 04:31
c84bcf4 to
e7415ba
Compare
bballdavis
marked this pull request as ready for review
October 7, 2026 04:41
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the opt-in external API runtime for #568 on the persistence foundation now merged by #750. This branch is rebased onto current
dev(ef996c10); the diff contains phase two only. The administrator UI remains separate in #809.AUTH_ENABLED=false, plus scopes, channel grants, media/rating policy, durable quotas, and bounded request/work queues. Legacy download keys cannot authenticate the external namespace.Persistence and query plans
The four migrations from #750 and upstream dependency corrections are preserved. The root lockfile updates only
proxy-addrfrom 2.0.7 to the compatible 2.0.8 security patch for GHSA-jqcg-44mw-7w3h; no global overrides were added. There are no obsolete migration markers, channel uniqueness changes, or channel deduplication.One runtime migration adds two
external_requestsindexes justified by the actual service SQL. Catalog request status is batched for the displayed page instead of using repeated correlated history scans. The reproducible local fixture contains 300,000 cached videos, 1,000 channels, 30,000 requests, and 10 grants; MariaDB 10.3 and MySQL 8.0 plans select the new indexes. Equivalent indexes under other names are preserved; rollback removes matching owned definitions only. CI now runs the runtime/database matrix and uploads the query-plan reports.Validation
All database and consumer data are synthetic. No real customer data, YouTube downloads, deployment, or merge was used for validation.
Verified final head:
9badb936aaec4a84a7403a9d75f03dd76785c4b7. CI run: all checks passed, including both downloadable database query-plan reports.