Skip to content

fix(say): allow safe public HTTPS downloads for QQ media - #35

Merged
lizheming merged 1 commit into
mainfrom
codex/say-qq-public-media
Nov 19, 2026
Merged

lizheming merged 1 commit into
mainfrom
codex/say-qq-public-media

Conversation

@lizheming

Copy link
Copy Markdown
Contributor

QQ voice attachments can use media hosts outside the hardcoded QQ domain allowlist, causing QQ_MEDIA_URL_DENIED before download. Replace that allowlist with a public HTTPS downloader so new CDN hosts work without code changes.

The downloader validates all resolved addresses and pins them to the TLS connection, rejects private/reserved destinations, URL credentials and custom ports, and revalidates each of up to three redirects. Downloads share a 15-second deadline including DNS and redirects, enforce a 20 MB limit, and never include bot credentials. Converted WAV preference and existing audio validation remain intact. Update user feedback and README accordingly.

Validation:

  • Say suite: 140 passed, 2 optional integration tests skipped.
  • Root suite: 86 passed, 24 optional integration tests skipped.
  • git diff --check passed.
  • Added coverage for public CDN downloads, DNS pinning, private/mixed DNS results, IPv6, unsafe redirects, redirect loops, HTTP errors, size limits, DNS/connection/body timeouts and sanitized errors.

Real QQ voice delivery and production Vercel deployment have not been tested; verify after deployment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T15:35:48.747119Z 5423a3c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lizheming
lizheming merged commit d35dd30 into main Nov 19, 2026
1 check passed
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