Skip to content

Add plural devbox stage to pre-stage microvm sandbox assets - #848

Merged
michaeljguarino merged 2 commits into
mainfrom
devbox/68ec312e-a07b-400d-a219-8139e301934e
Nov 24, 2026
Merged

michaeljguarino merged 2 commits into
mainfrom
devbox/68ec312e-a07b-400d-a219-8139e301934e

Conversation

@plural-copilot

Copy link
Copy Markdown
Contributor

Summary

  • New plural devbox stage --bucket-url <url> uploads the microvm sandbox binaries (cloud-hypervisor, virtiofsd, Kata kernel/rootfs) to microvm-assets/<arch>/<sha256>, verified against the digests pinned by the agent-substrate chart. Idempotent. For clusters/enterprises that pre-stage from a workstation with egress.
  • Backend-agnostic via gocloud.dev/blob: s3://, gs://, azblob://. Auth uses each cloud's standard chain (AWS default chain incl. shared config/SSO/assume-role, Azure DefaultAzureCredential). For gs:// it uses ADC and falls back to the active gcloud auth login.
  • Defaults: --arch amd64, Kata 4.3.1, Cloud Hypervisor v53.0, --release-base-url https://github.com (for mirrors), 30m timeout. --sandboxconfig overrides the built-in digests.
  • Same logic as the console microvm-assets command (duplicated for now); digests are embedded in pkg/devbox/microvmassets/digests.go and must be updated when the chart bumps its pins.

Note: adding gocloud.dev v0.47.0 bumps several existing deps (aws-sdk-go-v2, s3, sts, cloud.google.com/go/storage, azcore, azidentity, google.golang.org/api, testify). The module builds; the full test suite was not run.

Test plan

  • go build ./cmd/... ./pkg/devbox/..., go vet
  • --help and missing-bucket error path
  • Full go test ./... given the dependency bumps
  • End-to-end upload to S3/GCS/Azure

Downloads and verifies the microvm sandbox binaries and uploads them to an
S3, GCS or Azure Blob bucket using each cloud's standard credential chain, with
a gcloud login fallback for gs://. Lets enterprises stage from a workstation
with egress when the cluster can't.

Co-Authored-By: Claude Code <noreply@anthropic.com>

@plural-copilot plural-copilot Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This PR was opened from a Plural devbox. Open the session to see the prompting behind it, or to keep working on it:

Name Details
📦 Devbox devbox
💬 Session Devbox-vm runner with microVM sandboxing
🔗 Instance wise-sequoia

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge; no new blocking issue was established.

Summary

Adds plural devbox stage to download, check, and upload pinned microvm assets.

  • Operators can stage verified microVM files into cloud buckets from the CLI.

Tests were inspected but not run.

Reviews (2) · Last reviewed commit: "Use gcloud's real token expiry, bind it ..." · Reviewed by Greptile

Comment thread pkg/devbox/microvmassets/gcs.go Resolved
Comment thread pkg/devbox/microvmassets/gcs.go Resolved
Comment thread pkg/devbox/microvmassets/stage.go Resolved
@michaeljguarino michaeljguarino added the enhancement New feature or request label Nov 24, 2026
…dd staging tests

Co-Authored-By: Claude Code <noreply@anthropic.com>
@michaeljguarino

Copy link
Copy Markdown
Member

@greptileai

@michaeljguarino
michaeljguarino merged commit b30c668 into main Nov 24, 2026
16 checks passed
@michaeljguarino
michaeljguarino deleted the devbox/68ec312e-a07b-400d-a219-8139e301934e branch November 24, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant