Skip to content

Commit 45d2036

Browse files
feat(network): add allow_runloop_mirrors egress flag to network policies (#10350)
1 parent ec9fef0 commit 45d2036

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-53098c6f2c4d6e31f36a6975b3f7f504ad3f8fbe5a209dac9b2304afcd053a77.yml
3-
openapi_spec_hash: 05dcd360988cd1044b6a7ab03933a5ef
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-0b7cd0c2fc193b18189cd7f44cf45ece7726b5d485fb72577f7d235266432ea0.yml
3+
openapi_spec_hash: 78c340dbfb9d3d58b24ef318fc2a657b
44
config_hash: 218b8d25038e627faab98532392ee9a0

src/resources/network-policies.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ export interface NetworkPolicyCreateParameters {
130130
*/
131131
allow_mcp_gateway?: boolean | null;
132132

133+
/**
134+
* (Optional) If true, allows devbox egress to Runloop's package/image registry
135+
* mirrors. Defaults to false. Implicitly allowed when allow_all is true.
136+
*/
137+
allow_runloop_mirrors?: boolean | null;
138+
133139
/**
134140
* (Optional) IPv4 CIDR-based allow list with optional port restrictions, additive
135141
* with allowed_hostnames. Example: [{'cidr': '10.12.0.0/16', 'ports': [{'port':
@@ -193,6 +199,12 @@ export interface NetworkPolicyUpdateParameters {
193199
*/
194200
allow_mcp_gateway?: boolean | null;
195201

202+
/**
203+
* If true, allows devbox egress to Runloop's package/image registry mirrors.
204+
* Implicitly allowed when allow_all is true.
205+
*/
206+
allow_runloop_mirrors?: boolean | null;
207+
196208
/**
197209
* Updated IPv4 CIDR-based allow list with optional port restrictions, additive
198210
* with allowed_hostnames.
@@ -278,6 +290,12 @@ export namespace NetworkPolicyView {
278290
*/
279291
allow_mcp_gateway: boolean;
280292

293+
/**
294+
* If true, allows devbox egress to Runloop's package/image registry mirrors.
295+
* Implicitly allowed when allow_all is true.
296+
*/
297+
allow_runloop_mirrors: boolean;
298+
281299
/**
282300
* CIDR-based allow list with optional port restrictions, additive with
283301
* allowed_hostnames.
@@ -345,6 +363,12 @@ export interface NetworkPolicyCreateParams {
345363
*/
346364
allow_mcp_gateway?: boolean | null;
347365

366+
/**
367+
* (Optional) If true, allows devbox egress to Runloop's package/image registry
368+
* mirrors. Defaults to false. Implicitly allowed when allow_all is true.
369+
*/
370+
allow_runloop_mirrors?: boolean | null;
371+
348372
/**
349373
* (Optional) IPv4 CIDR-based allow list with optional port restrictions, additive
350374
* with allowed_hostnames. Example: [{'cidr': '10.12.0.0/16', 'ports': [{'port':
@@ -385,6 +409,12 @@ export interface NetworkPolicyUpdateParams {
385409
*/
386410
allow_mcp_gateway?: boolean | null;
387411

412+
/**
413+
* If true, allows devbox egress to Runloop's package/image registry mirrors.
414+
* Implicitly allowed when allow_all is true.
415+
*/
416+
allow_runloop_mirrors?: boolean | null;
417+
388418
/**
389419
* Updated IPv4 CIDR-based allow list with optional port restrictions, additive
390420
* with allowed_hostnames.

tests/api-resources/network-policies.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('resource networkPolicies', () => {
2727
allow_all: true,
2828
allow_devbox_to_devbox: true,
2929
allow_mcp_gateway: true,
30+
allow_runloop_mirrors: true,
3031
allowed_cidrs: [
3132
{
3233
cidr: 'cidr',
@@ -90,6 +91,7 @@ describe('resource networkPolicies', () => {
9091
allow_all: true,
9192
allow_devbox_to_devbox: true,
9293
allow_mcp_gateway: true,
94+
allow_runloop_mirrors: true,
9395
allowed_cidrs: [
9496
{
9597
cidr: 'cidr',

0 commit comments

Comments
 (0)