Repository navigation
feat(engine): operators can add networks the render must treat as non-public - #7790
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
Edit accuracy: accurate 267 (base branch 267), smooth 99 of thoseThe gate passes. Quarantined, measured but not gated (8)
Unstable (1)
|
This was referenced Nov 15, 2026
Merged
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.
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 as192.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.isBlockedNetworkHostchecks it after the built-in list.ipv4HostClassreports these addresses asprivate, so refusal logs name the right class.docs/packages/producer.mdxnext toPRODUCER_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,publicNetworkandurlDownloader.publicAddresstests 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