Skip to content

chore(cloud-agent): fix local docker sandbox build#60864

Merged
tatoalo merged 1 commit into
masterfrom
chore/cloud-sandbox-dev-tooling
Jun 1, 2026
Merged

chore(cloud-agent): fix local docker sandbox build#60864
tatoalo merged 1 commit into
masterfrom
chore/cloud-sandbox-dev-tooling

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Jun 1, 2026

Problem

The local-overlay cloud-agent sandbox image fails to build under pnpm v11, treating an unapproved dependency build script as fatal, which breaks SANDBOX_PROVIDER=docker image builds

@tatoalo tatoalo self-assigned this Jun 1, 2026
@tatoalo tatoalo changed the title chore(cloud-agent): fix local docker sandbox build + dev env loader chore(cloud-agent): fix local docker sandbox build Jun 1, 2026
@tatoalo tatoalo force-pushed the chore/cloud-sandbox-dev-tooling branch from 55576ea to 3d06de3 Compare June 1, 2026 11:21
@tatoalo tatoalo marked this pull request as ready for review June 1, 2026 11:22
@assign-reviewers-posthog assign-reviewers-posthog Bot requested a review from a team June 1, 2026 11:23
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 1, 2026

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
products/tasks/backend/sandbox/images/Dockerfile.sandbox-local:24
**Broad build-script allowlist in local sandbox**

`--config.dangerouslyAllowAllBuilds=true` permits every installed package to run its `preinstall`/`install`/`postinstall` scripts unconditionally. For this local-only development image the risk is low, but pnpm v9+ offers a more targeted alternative: list the specific packages that need build scripts in `package.json` under `pnpm.onlyBuiltDependencies` (or a `.npmrc` `onlyBuiltDependencies[]` array). That would satisfy pnpm v11's stricter check without opening the door to all packages. Worth considering if the offending package is already known.

Reviews (1): Last reviewed commit: "chore(cloud-agent): fix local docker san..." | Re-trigger Greptile

Copy link
Copy Markdown
Contributor

@mendral-app mendral-app Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supply Chain Security Review

✅ Approve — 1 finding in 1 file

Single Dockerfile change adds --config.dangerouslyAllowAllBuilds=true to a pnpm install of locally-packed workspace tarballs in a local sandbox image. Since the installed packages are internal monorepo artifacts (not arbitrary registry packages), the blast radius is minimal.

Tag @mendral-app with feedback or questions. View session

Comment thread products/tasks/backend/sandbox/images/Dockerfile.sandbox-local
Comment thread products/tasks/backend/sandbox/images/Dockerfile.sandbox-local
Comment thread products/tasks/backend/sandbox/images/Dockerfile.sandbox-local
@tatoalo tatoalo merged commit 1a6a3c3 into master Jun 1, 2026
199 checks passed
@tatoalo tatoalo deleted the chore/cloud-sandbox-dev-tooling branch June 1, 2026 12:29
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented Jun 1, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-06-01 12:53 UTC Run
prod-us ✅ Deployed 2026-06-01 13:24 UTC Run
prod-eu ✅ Deployed 2026-06-01 13:11 UTC Run

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.

2 participants