Skip to content

feat(network firewall): align to new naming convention for network policies#33

Merged
valerian-roche merged 7 commits into
mainfrom
vr/mode
Feb 9, 2026
Merged

feat(network firewall): align to new naming convention for network policies#33
valerian-roche merged 7 commits into
mainfrom
vr/mode

Conversation

@valerian-roche

@valerian-roche valerian-roche commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

In order to simplify comprehension, and towards future evolution, this commit updates the network policy naming convention:

  • basic modes allow-all (default) and deny-all are made simpler, as top-level definitions
  • internet-access is not allow-all, making it more explicit that it might allow private network in the future
  • no-access is now deny-all, as a direct mirror of the renaming of internet-access. It also makes it more obvious that it blocks everything, including DNS and ICMP
  • restricted is now simply a structure with restrictions. It keeps the functional meaning of "denied by default"

…licies

Signed-off-by: Valerian Roche <valerian.roche@vercel.com>
@vercel

vercel Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sandbox-cli Ready Ready Preview, Comment Feb 9, 2026 9:44pm
sandbox-sdk Ready Ready Preview, Comment Feb 9, 2026 9:44pm
sandbox-sdk-ai-example Ready Ready Preview, Comment Feb 9, 2026 9:44pm

Request Review

Comment thread packages/sandbox/src/util/network-policy.ts Outdated
Comment thread packages/vercel-sandbox/src/utils/network-policy.ts Outdated
Comment thread packages/vercel-sandbox/src/utils/network-policy.ts Outdated
@AndyW22

AndyW22 commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator

Can we also have a changeset here?

Comment thread packages/vercel-sandbox/src/sandbox.ts Outdated
Comment thread packages/sandbox/docs/index.md Outdated
Comment thread packages/sandbox/src/commands/config.ts
Comment thread .changeset/itchy-items-dig.md Outdated
Comment thread packages/sandbox/src/commands/config.ts Outdated
Comment thread packages/vercel-sandbox/src/api-client/api-client.ts
@valerian-roche
valerian-roche enabled auto-merge (squash) February 9, 2026 22:01
@valerian-roche
valerian-roche merged commit 8a2d58d into main Feb 9, 2026
10 checks passed
@valerian-roche
valerian-roche deleted the vr/mode branch February 9, 2026 22:01
@github-actions github-actions Bot mentioned this pull request Feb 9, 2026
valerian-roche pushed a commit that referenced this pull request Feb 10, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## sandbox@2.3.0

### Minor Changes

- Use new model for network-policies
([#33](#33))

### Patch Changes

- Add aborted status to sandboxes
([`863637edae310f867c224cbd60958edda51f51a5`](863637e))

- Updated dependencies
\[[`d36a202fbfa227d1b31b3bab83de510caad9afc9`](d36a202),
[`8a2d58d5a87a7a53bae1fad705538bbbbc1cffef`](8a2d58d),
[`be9a26007aa51c735f6513f9bd78acceec6aec1c`](be9a260),
[`863637edae310f867c224cbd60958edda51f51a5`](863637e)]:
    -   @vercel/sandbox@1.5.0

## @vercel/sandbox@1.5.0

### Minor Changes

- Use new model for network-policies
([#33](#33))

### Patch Changes

- Add network policy getter on Sandbox instance
([#41](#41))

- The `downloadFile` method now throws a clear error when src or dst
path is missing, instead of failing with a cryptic exception.
([#37](#37))

- Add aborted status to sandboxes
([`863637edae310f867c224cbd60958edda51f51a5`](863637e))

## sandbox-filesystem-snapshots@0.0.5

### Patch Changes

- Updated dependencies
\[[`d36a202fbfa227d1b31b3bab83de510caad9afc9`](d36a202),
[`8a2d58d5a87a7a53bae1fad705538bbbbc1cffef`](8a2d58d),
[`be9a26007aa51c735f6513f9bd78acceec6aec1c`](be9a260),
[`863637edae310f867c224cbd60958edda51f51a5`](863637e)]:
    -   @vercel/sandbox@1.5.0

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Lienard <tom.lienrd@gmail.com>
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.

4 participants