Skip to content

feat(engine): operators can add networks the render must treat as non-public - #7790

Merged
miguel-heygen merged 2 commits into
mainfrom
feat/engine-extra-non-public-ranges
Nov 15, 2026
Merged

miguel-heygen merged 2 commits into
mainfrom
feat/engine-extra-non-public-ranges

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

A render service can now name extra networks that its renders must treat as non-public: PRODUCER_NON_PUBLIC_CIDRS, a comma-separated list such as 192.160.0.0/16. Asset downloads, the render browser's proxy and the page network rules then refuse those addresses too. A malformed entry refuses every address and logs a warning, rather than being skipped.

Why

Some networks route a range that is not a private one, for example a cluster whose pods sit on addresses outside the private ranges. A public-only check cannot know that, so the operator has to be able to say it.

Related work

Refs #7758, #7789.

How

  • networkPolicy.ts: the setting is parsed into a block list and re-read only when its value changes. isBlockedNetworkHost checks it after the built-in list. ipv4HostClass reports these addresses as private, so refusal logs name the right class.
  • Fails closed: a bad entry blocks every address and warns, and nothing throws inside a DNS lookup callback.
  • Docs: one paragraph in docs/packages/producer.mdx next to PRODUCER_RESTRICT_PAGE_NETWORK.

Test plan

fails without the fix: packages/engine/src/utils/networkPolicy.test.ts "operator ranges" (an added range is refused and classed private; three malformed settings refuse every address).

  • Three runs in a row: engine networkPolicy, publicNetwork and urlDownloader.publicAddress tests 91 of 91.

  • Mutations, each reverted and each caught: not consulting the setting, letting a malformed setting allow everything, and reporting the class as public.

  • Engine typecheck, oxlint and oxfmt clean.

  • Unit tests added/updated

  • Manual testing performed

  • Documentation updated (if applicable)

  • Comments follow CONTRIBUTING.md "Comments": they say why, not what, and a bug fix says what the code must do and how to reproduce the bug

@mintlify

mintlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
hyperframes 🟢 Ready View Preview Nov 15, 2026, 12:58 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 267 (base branch 267), smooth 99 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (8)

Unstable (1)

  • seqinflight-none-pct-r0-root-z100: tracking 0.05, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true / tracking 0.05, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true / tracking 0.05, pressJump 0, drop 0, reload 0, render 0.03, renderKey -, undo true, teleport true

@miguel-heygen
miguel-heygen merged commit b54f207 into main Nov 15, 2026
93 checks passed
@miguel-heygen
miguel-heygen deleted the feat/engine-extra-non-public-ranges branch November 15, 2026 01:33
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