feat(deploy): P1 — cap /deploy/new tarball at 10MB (413 + prebuilt-image nudge)#220
Merged
Merged
Conversation
First phase of the multi-source deploy plan (PLAN-deploy-multisource-2026-06-03). Direct source uploads on POST /deploy/new now cap at 10 MB (was 50): a 10 MB gzipped source tar is ample for app code; larger almost always means vendored deps / build output that belong in the build, not the upload. - maxTarballBytes (10<<20) + enforceTarballCap() helper, applied on /deploy/new. - Over-cap → 413 Payload Too Large (was 400), code stays `tarball_too_large` (no breaking rename), with a routed agent_action nudging the caller to slim the upload or deploy a prebuilt image (source=image, P2) instead of uploading. - Updated codeToAgentAction["tarball_too_large"] (was 50 MiB copy) + openapi. - Fiber global BodyLimit stays 50 MiB (/stacks/new multi-service + webhooks). - Scope: /deploy/new only this phase. Redeploy + /stacks/new keep 50 MB — tightening them to 10 MB is the P1.1 fast-follow (they sit behind extra gates that need their own fixtures). Tests: white-box TestEnforceTarballCap (413 + agent_action + at-cap boundary, 100% on the helper) + DB-gated TestDeployNew_OversizedTarball_413 (end-to-end 413). build + vet + agent_action contract green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- go1.25.10 → go1.25.11 fixes GO-2026-5039/5038 (net/textproto, mime), which blocked govulncheck/osv-scan (same pre-existing stdlib CVE as worker #79). - Regenerated openapi.snapshot.json for the /deploy/new 10MB cap description change (snapshot-drift gate). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of the multi-source deploy plan. /deploy/new direct uploads cap at 10MB (was 50); over-cap → 413
tarball_too_largewith an agent_action nudging to slim the upload or deploy a prebuilt image (source=image, P2). Fiber global BodyLimit unchanged (50 MiB). Scoped to /deploy/new; redeploy + /stacks/new stay 50MB as the P1.1 fast-follow. White-box + DB-gated integration tests; contract test green. 🤖 Generated with Claude Code