@clearideas/agent-runtime-sandbox 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/bubblewrap.js +7 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ allowlists, and artifact persistence.
|
|
|
9
9
|
read-only root filesystem, process and memory limits, and an isolated
|
|
10
10
|
`/workspace` tmpfs. `BubblewrapSandboxProvider` provides equivalent isolation
|
|
11
11
|
on Linux without a container daemon (user, PID, IPC, UTS, cgroup, and network
|
|
12
|
-
namespaces
|
|
13
|
-
development and continuous integration. Remote and application-specific
|
|
12
|
+
namespaces, dropped capabilities, and `prlimit` limits) and is the reference
|
|
13
|
+
provider for local development and continuous integration. Remote and application-specific
|
|
14
14
|
services can implement the same `SandboxProvider` contract.
|
|
15
15
|
|
|
16
16
|
`ProviderRunSandbox` implements the run sandbox: one sandbox per run attempt
|
package/dist/bubblewrap.js
CHANGED
|
@@ -110,6 +110,8 @@ export class BubblewrapSandboxProvider {
|
|
|
110
110
|
"--die-with-parent",
|
|
111
111
|
"--new-session",
|
|
112
112
|
"--clearenv",
|
|
113
|
+
"--cap-drop",
|
|
114
|
+
"ALL",
|
|
113
115
|
...binds,
|
|
114
116
|
"--proc",
|
|
115
117
|
"/proc",
|
|
@@ -204,11 +206,16 @@ export class BubblewrapSandboxProvider {
|
|
|
204
206
|
async *execute(handle, command, options) {
|
|
205
207
|
const state = this.#state(handle);
|
|
206
208
|
const binds = await this.#bindArgumentList();
|
|
209
|
+
// bwrap already runs an unprivileged user's command without capabilities.
|
|
210
|
+
// Started by root (a container, WSL as root, sudo), the command would keep
|
|
211
|
+
// them, including the override that ignores file modes; drop them all.
|
|
207
212
|
const args = [
|
|
208
213
|
"--unshare-all",
|
|
209
214
|
"--die-with-parent",
|
|
210
215
|
"--new-session",
|
|
211
216
|
"--clearenv",
|
|
217
|
+
"--cap-drop",
|
|
218
|
+
"ALL",
|
|
212
219
|
...binds,
|
|
213
220
|
"--proc",
|
|
214
221
|
"/proc",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clearideas/agent-runtime-sandbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Provider-neutral sandbox lifecycle and code execution adapters for Clear Ideas Agent Runtime.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Clear Ideas Incorporated",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"postpack": "node ../../scripts/cleanup-package-license.mjs"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@clearideas/agent-runtime-contracts": "0.
|
|
45
|
-
"@clearideas/agent-runtime-core": "0.
|
|
44
|
+
"@clearideas/agent-runtime-contracts": "0.7.0",
|
|
45
|
+
"@clearideas/agent-runtime-core": "0.7.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.6.6",
|