Skip to content

Keep the Alibaba metadata address blocked for private webhook targets - #1023

Merged
sinamics merged 1 commit into
mainfrom
fix/webhook-reserved-metadata
Sep 22, 2026
Merged

sinamics merged 1 commit into
mainfrom
fix/webhook-reserved-metadata

Conversation

@sinamics

Copy link
Copy Markdown
Owner

100.100.100.200 is now reserved on its own, so WEBHOOK_ALLOW_PRIVATE_TARGETS=true no longer opens it along with the rest of the CGNAT range. Docs reworded so the default and the opt in do not contradict each other.

Copilot AI lite review requested due to automatic review settings September 22, 2026 15:09
@github-actions github-actions Bot added documentation Improvements or additions to documentation ztnet Main Application labels Sep 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain, and the changes include regression tests and documentation updates.

Review effort: Lite
Findings: None

What changed in this PR

Updates webhook SSRF protection so Alibaba Cloud’s metadata IP remains blocked when private webhook targets are enabled.

Changes:

  • Reserves 100.100.100.200/32.
  • Adds IPv4 and IPv6-mapped regression tests.
  • Clarifies private-target and reserved-address documentation.
File Description
src/​utils/​ssrfGuard.ts Adds the metadata address to reserved ranges.
src/​utils/​__tests__/​webhookPrivateTargets.test.ts Tests delivery blocking with private targets enabled.
src/​utils/​__tests__/​ssrfGuard.test.ts Tests address classification and URL rejection.
docs/​docs/​Usage/​webhooks.md Clarifies default webhook accessibility.
docs/​docs/​Installation/​options.md Documents reserved metadata exceptions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sinamics
sinamics merged commit 88c07b7 into main Sep 22, 2026
7 checks passed
@sinamics
sinamics deleted the fix/webhook-reserved-metadata branch September 22, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ztnet Main Application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants