Skip to content

Commit 491c3d0

Browse files
committed
fix: merge skill permissions into escalated sandbox by default
1 parent 74e5150 commit 491c3d0

File tree

25 files changed

+735
-59
lines changed

25 files changed

+735
-59
lines changed

codex-rs/app-server-protocol/schema/json/ClientRequest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,10 @@
16181618
"type": "fullAccess"
16191619
}
16201620
},
1621+
"networkAccess": {
1622+
"default": false,
1623+
"type": "boolean"
1624+
},
16211625
"type": {
16221626
"enum": [
16231627
"readOnly"

codex-rs/app-server-protocol/schema/json/EventMsg.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5261,6 +5261,10 @@
52615261
],
52625262
"description": "Read access granted while running under this policy."
52635263
},
5264+
"network_access": {
5265+
"description": "When set to `true`, outbound network access is allowed. `false` by default.",
5266+
"type": "boolean"
5267+
},
52645268
"type": {
52655269
"enum": [
52665270
"read-only"

codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11772,6 +11772,10 @@
1177211772
"type": "fullAccess"
1177311773
}
1177411774
},
11775+
"networkAccess": {
11776+
"default": false,
11777+
"type": "boolean"
11778+
},
1177511779
"type": {
1177611780
"enum": [
1177711781
"readOnly"

codex-rs/app-server-protocol/schema/json/v2/CommandExecParams.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
"type": "fullAccess"
9090
}
9191
},
92+
"networkAccess": {
93+
"default": false,
94+
"type": "boolean"
95+
},
9296
"type": {
9397
"enum": [
9498
"readOnly"

codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,10 @@
653653
"type": "fullAccess"
654654
}
655655
},
656+
"networkAccess": {
657+
"default": false,
658+
"type": "boolean"
659+
},
656660
"type": {
657661
"enum": [
658662
"readOnly"

codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,10 @@
653653
"type": "fullAccess"
654654
}
655655
},
656+
"networkAccess": {
657+
"default": false,
658+
"type": "boolean"
659+
},
656660
"type": {
657661
"enum": [
658662
"readOnly"

codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,10 @@
653653
"type": "fullAccess"
654654
}
655655
},
656+
"networkAccess": {
657+
"default": false,
658+
"type": "boolean"
659+
},
656660
"type": {
657661
"enum": [
658662
"readOnly"

codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@
214214
"type": "fullAccess"
215215
}
216216
},
217+
"networkAccess": {
218+
"default": false,
219+
"type": "boolean"
220+
},
217221
"type": {
218222
"enum": [
219223
"readOnly"

codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ export type SandboxPolicy = { "type": "danger-full-access" } | { "type": "read-o
1212
/**
1313
* Read access granted while running under this policy.
1414
*/
15-
access?: ReadOnlyAccess, } | { "type": "external-sandbox",
15+
access?: ReadOnlyAccess,
16+
/**
17+
* When set to `true`, outbound network access is allowed. `false` by
18+
* default.
19+
*/
20+
network_access?: boolean, } | { "type": "external-sandbox",
1621
/**
1722
* Whether the external sandbox permits outbound network traffic.
1823
*/

codex-rs/app-server-protocol/schema/typescript/v2/SandboxPolicy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf";
55
import type { NetworkAccess } from "./NetworkAccess";
66
import type { ReadOnlyAccess } from "./ReadOnlyAccess";
77

8-
export type SandboxPolicy = { "type": "dangerFullAccess" } | { "type": "readOnly", access: ReadOnlyAccess, } | { "type": "externalSandbox", networkAccess: NetworkAccess, } | { "type": "workspaceWrite", writableRoots: Array<AbsolutePathBuf>, readOnlyAccess: ReadOnlyAccess, networkAccess: boolean, excludeTmpdirEnvVar: boolean, excludeSlashTmp: boolean, };
8+
export type SandboxPolicy = { "type": "dangerFullAccess" } | { "type": "readOnly", access: ReadOnlyAccess, networkAccess: boolean, } | { "type": "externalSandbox", networkAccess: NetworkAccess, } | { "type": "workspaceWrite", writableRoots: Array<AbsolutePathBuf>, readOnlyAccess: ReadOnlyAccess, networkAccess: boolean, excludeTmpdirEnvVar: boolean, excludeSlashTmp: boolean, };

0 commit comments

Comments
 (0)