Repository navigation
Request declared network origins from widefleet.jsonc - #242
Merged
Merged
Conversation
tnkuehne
force-pushed
the
feat/network-declarations
branch
from
November 20, 2026 12:00
7d135b7 to
9586fc7
Compare
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 856fc91 | Nov 20 2026, 02:32 PM |
tnkuehne
force-pushed
the
feat/network-declarations
branch
from
November 20, 2026 12:08
9586fc7 to
e1c5657
Compare
tnkuehne
force-pushed
the
feat/network-declarations
branch
2 times, most recently
from
November 20, 2026 12:26
9314b5c to
c23bf83
Compare
tnkuehne
force-pushed
the
feat/network-declarations
branch
from
November 20, 2026 12:36
c23bf83 to
7a64dd7
Compare
tnkuehne
force-pushed
the
feat/network-declarations
branch
from
November 20, 2026 12:56
7a64dd7 to
f03c452
Compare
tnkuehne
force-pushed
the
feat/network-declarations
branch
from
November 20, 2026 13:02
f03c452 to
c9f5272
Compare
tnkuehne
force-pushed
the
feat/network-declarations
branch
from
November 20, 2026 13:11
c9f5272 to
3b84533
Compare
tnkuehne
force-pushed
the
feat/network-declarations
branch
2 times, most recently
from
November 20, 2026 14:31
f442f7e to
856fc91
Compare
Apps declare the origins they need in widefleet.jsonc. widefleet deploy and the app builder add them to the deployment, and the network state reports origins the latest version requests but is not allowed to reach, and allowed origins it no longer declares. Code requests access but never grants it: the CLI prints the allow command for the owner or an administrator. Installing a template from its page, which lists its origins, grants them.
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 changes
Declaration. An app declares the origins it needs in
widefleet.jsoncbesidewrangler.jsonc:{ "network": { "backend": ["https://github.com", "https://api.github.com"], }, }wrangler.jsoncstays Cloudflare's format: Wrangler already defines a top-levelsecretskey and warns about unknown keys.widefleet deployand the app builder read the file (JSONC, unknown keys rejected) and addnetworkto the deployment's metadata. The JSONC parser moves from the builder to@platform/contracts/jsonc, which both the builder and the control plane use.requestedorigins that are not allowed yet andundeclaredorigins that are allowed but no longer declared. Allowed origins stay allowed after a version drops them, so rollbacks keep working. After a deploy, the CLI prints thewidefleet network allow …command for the app's owner or an administrator;widefleet networklists both groups.network:managescope, aswidefleet network allowrequires; otherwise they stay requested, the response lists them inrequestedNetwork, andwidefleet catalog templates installprints the allow command. Grants happen only after publishing succeeded.Screenshots
The template page gains one line under the install form ("Installing allows the app to connect to …"). Before/after screenshots are still missing.
Tests
packages/app-builder: declared origins in metadata; invalid declarations fail the build.crates/platform-cli: reading, defaults and unknown keys.apps/control-plane/tests/network-cli.test.ts: requested and undeclared origins inwidefleet network.apps/control-plane/tests/template-installs.integration.test.ts: an API install requests the declared origins; a page install grants them.

Confidence Score: 5/5
The PR appears safe to merge; no new blocking issue was established.Summary
Adds network requests from
widefleet.jsoncto deployment metadata.widefleet.jsonc.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[widefleet.jsonc] --> B[CLI or app builder] B --> C[Stored deployment metadata] C --> D[Compare declaration with allowed origins] D --> E[Requested and undeclared origins] F[Owner or administrator approval] --> G[Allowed network policy] G --> H[Runtime enforcement]Reviews (6) · Last reviewed commit: "Request declared network origins from wi..." · Reviewed by Greptile