Skip to content

Commit fe6613d

Browse files
committed
fix(sandbox): patch snapshot runtime vulnerabilities
Refresh the pinned Debian snapshot and upgrade installed packages. Align pnpm on 11.15.0 so the image uses patched undici and passes the protected Trivy gates.
1 parent a80c21e commit fe6613d

10 files changed

Lines changed: 18 additions & 14 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ source tree on July 13, 2026; the repository now contains V2 code only.
2626
| Observability | Workers Logs + Workers Tracing + Workers Analytics Engine (no third-party APM in the initial release) |
2727
| Lint/format | Biome 2.5.2 (single config, no ESLint+Prettier except next plugin) |
2828
| QA | Direct `agent-browser --auto-connect --session cheatcode-debug` UI operation + console/network/log review; no scripted test harnesses |
29-
| Monorepo | pnpm 11.8.0 + Turborepo 2.10.5 |
29+
| Monorepo | pnpm 11.15.0 + Turborepo 2.10.5 |
3030

3131
## Repo layout
3232

@@ -57,7 +57,7 @@ scripts/ Operational helpers only: build skills, local startup,
5757
## Build
5858

5959
```bash
60-
pnpm install # Install workspace deps (use pnpm@11.8.0, not npm/yarn)
60+
pnpm install # Install workspace deps (use pnpm@11.15.0, not npm/yarn)
6161
pnpm turbo skills:build # Bundle skills/ into packages/skills/src/generated.ts (REQUIRED before build)
6262
pnpm turbo db:generate # Generate Drizzle types from schema
6363
pnpm turbo build # Production build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pnpm dev
1818
```
1919

2020
`pnpm dev` is the complete local entrypoint. Docker Compose builds the pinned
21-
Node 22.22.2/pnpm 11.8.0 development image, starts the Vault-capable Postgres
21+
Node 22.22.2/pnpm 11.15.0 development image, starts the Vault-capable Postgres
2222
database, provisions isolated `app_gateway`, `app_agent`, and `app_webhooks`
2323
roles, applies all three local migration phases, and then starts Next.js plus the
2424
chained Workers. Source changes sync into

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",
6-
"packageManager": "pnpm@11.8.0",
6+
"packageManager": "pnpm@11.15.0",
77
"engines": {
88
"node": "22.22.2"
99
},

infra/containers/dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update \
88
&& apt-get install -y --no-install-recommends ca-certificates \
99
&& rm -rf /var/lib/apt/lists/* \
1010
&& corepack enable \
11-
&& corepack prepare pnpm@11.8.0 --activate
11+
&& corepack prepare pnpm@11.15.0 --activate
1212

1313
WORKDIR /workspace
1414

infra/containers/sandbox/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:22.22.2-bookworm-slim@sha256:9f6d5975c7dca860947d3915877f85607946403fc
22

33
ARG CODE_SERVER_VERSION=4.128.0
44
ARG CODE_SERVER_SHA256=79ba26bf186e5268a22b7c17b30a5f288a16c37791f0b86c27859e8fef103188
5-
ARG DEBIAN_SNAPSHOT=20260713T000000Z
5+
ARG DEBIAN_SNAPSHOT=20260718T000000Z
66

77
# Daytona injects its own daemon (host-mounted, PID 1) and overrides ENTRYPOINT,
88
# so we do NOT bake a sandbox daemon. Headed Chromium uses Xvfb, which the
@@ -20,6 +20,7 @@ RUN set -eux; \
2020
sed -i 's|URIs: http://snapshot.debian.org|URIs: https://snapshot.debian.org|g' /etc/apt/sources.list.d/debian.sources; \
2121
rm -rf /var/lib/apt/lists/*; \
2222
apt-get -o Acquire::ForceIPv4=true -o Acquire::Retries=5 -o Acquire::Check-Valid-Until=false -o Acquire::https::No-Cache=true update; \
23+
apt-get -o Acquire::ForceIPv4=true -o Acquire::Retries=5 -o Acquire::http::Pipeline-Depth=0 upgrade -y --no-install-recommends; \
2324
apt-get -o Acquire::ForceIPv4=true -o Acquire::Retries=5 -o Acquire::http::Pipeline-Depth=0 install -y --no-install-recommends \
2425
file python3 python3-pip python3-venv git curl wget gnupg netcat-openbsd sudo \
2526
procps xvfb x11vnc novnc websockify \

infra/containers/sandbox/app-templates/expo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "expo-router/entry",
44
"version": "1.0.0",
55
"private": true,
6-
"packageManager": "pnpm@11.8.0",
6+
"packageManager": "pnpm@11.15.0",
77
"engines": {
88
"node": "22.22.2"
99
},

infra/containers/sandbox/app-templates/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cheatcode-app",
33
"version": "0.1.0",
44
"private": true,
5-
"packageManager": "pnpm@11.8.0",
5+
"packageManager": "pnpm@11.15.0",
66
"engines": {
77
"node": "22.22.2"
88
},

infra/containers/sandbox/package-manager/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/containers/sandbox/package-manager/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
},
88
"dependencies": {
99
"npm": "12.0.1",
10-
"pnpm": "11.8.0"
10+
"pnpm": "11.15.0"
11+
},
12+
"overrides": {
13+
"undici": "6.27.0"
1114
}
1215
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "git+https://github.com/cheatcode-ai/cheatcode.git"
1212
},
1313
"type": "module",
14-
"packageManager": "pnpm@11.8.0",
14+
"packageManager": "pnpm@11.15.0",
1515
"engines": {
1616
"node": "22.22.2"
1717
},

0 commit comments

Comments
 (0)