Skip to content

chore: runtime guards for CDN allowlist drift - #166

Merged
KazeKaze93 merged 1 commit into
masterfrom
chore/cdn-domain-runtime-guards
Aug 13, 2026
Merged

chore: runtime guards for CDN allowlist drift#166
KazeKaze93 merged 1 commit into
masterfrom
chore/cdn-domain-runtime-guards

Conversation

@KazeKaze93

Copy link
Copy Markdown
Owner

Summary

  • Startup throw if any provider's cdnDomains is not a subset of allowedDomains (config error, not environment).
  • After mapping file_url, warn once per hostname when the host is missing from allowedDomains, or is a video URL missing from cdnDomains. Exact match, not CSP *.domain.
  • RULE34_IMAGE_HOSTS now accepts api-cdn-mp4.rule34.xxx as a source host (not a rewrite target).

Test plan

  • npm run typecheck / lint / test (344)
  • Subset violation throws; live registry does not
  • Unknown-host warn deduped; live CDN hosts produce no warn
  • Electron Main reached CSP configured from provider registry without throw

@KazeKaze93
KazeKaze93 merged commit 15d90e2 into master Aug 13, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant