Skip to content

Sync fork with skevetter/devpod v0.26.3 - #2

Open
secautoai wants to merge 194 commits into
mainfrom
cursor/sync-upstream-v0.26.3-1083
Open

secautoai wants to merge 194 commits into
mainfrom
cursor/sync-upstream-v0.26.3-1083

Conversation

@secautoai

Copy link
Copy Markdown
Owner

Range

Verified against https://github.com/skevetter/devpod main on 2026-11-09. Fork main has no commits of its own relative to that history.

Commit Release
Fork main before this PR b358e1b0697bc441de54fed6a5a032489ce1ae57 2 commits after v0.14.0 (2026-02-21). Tip: refactor(driver/docker): simplify UpdateContainerUserUID and add tests (#508)
Upstream skevetter/devpod main 8dec889699a91e48ff0db177c829f8d36ab58a92 v0.26.3 (2026-10-02). Tip: feat: support features in --extra-devcontainer-path (#781)

git rev-list --left-right --count <fork>...upstream/main was 0 193. Fork main is an ancestor of upstream main, so this branch fast-forwards those 193 commits and then adds one follow-up commit that restores .github/workflows. History was not rewritten.

LICENSE is still MPL-2.0 and matches both parents. Neither tree has a NOTICE file.

The only open pull request before this one is #1. It does not sync upstream, so this is a separate PR.

What's new

Releases v0.15.0 through v0.26.3:

Fixes in this range:

Breaking changes and dependencies

  • The go directive moves from 1.25.5 to 1.25.8. The module path stays github.com/skevetter/devpod.
  • Direct github.com/loft-sh/* dependencies are replaced by skevetter forks or removed (feat!: rewrite module deps from loft-sh to skevetter forks skevetter/devpod#726, analytics inlined in refactor: inline analytics-client to remove loft-sh dependency skevetter/devpod#720):
    • github.com/loft-sh/agentapi/v4 → github.com/skevetter/agentapi v1.0.0
    • github.com/loft-sh/api/v4 → github.com/skevetter/api v1.0.1
    • github.com/loft-sh/apiserver → github.com/skevetter/apiserver v1.0.2
    • github.com/loft-sh/admin-apis → github.com/skevetter/admin-apis v1.0.0
    • github.com/loft-sh/analytics-client inlined under pkg/telemetry/analytics
    • github.com/loft-sh/programming-language-detection removed
    • github.com/skevetter/ssh v0.0.8 → v0.1.0
    • tailscale.com is still replaced with github.com/skevetter/tailscale v1.92.2
  • Interactive prompts move from github.com/charmbracelet/huh v0.8.0 to charm.land/huh/v2 v2.0.3.
  • ACR credentials use Azure SDK azidentity instead of chrismellard/docker-credential-acr-env.

--mount, --additional-features, and feature support on --extra-devcontainer-path are new flags on top of the existing CLI.

Security and dependency fixes

Dependency bumps on security-sensitive surfaces, taken from the upstream commit log:

  • golang.org/x/crypto v0.48.0 → v0.50.0
  • google.golang.org/grpc v1.79.1 → v1.80.0
  • github.com/google/go-containerregistry v0.20.7 → v0.21.5, plus several authn/kubernetes digest updates
  • github.com/moby/buildkit v0.27.1 → v0.29.0
  • k8s.io/* v0.35.1 → v0.35.3
  • github.com/docker/cli v29.2.1 → v29.4.0
  • github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.11.0 → v0.12.0
  • tailscale.com v1.94.2 → v1.96.5 (the replace directive still points at github.com/skevetter/tailscale v1.92.2)

Credential and signing fixes:

CI

Upstream edited seven existing workflow files: act.yml, labeler.yml, lint.yml, pr-ci.yml, pre-commit.yml, release.yml, and workflow-approval.yml. commit.yml and devcontainer.yml were already identical. A follow-up commit restores those seven files to the copies on fork main, so this PR does not add or change GitHub Actions. Every other path matches upstream 8dec8896.

Merge order versus #1

#1 (cursor/devpod-monorepo-phase1-6a3d, Phase 1 DevPod monorepo layout) is unchanged. These paths were edited on both sides since b358e1b0 and are the likely conflicts:

  • cmd/root.go — this sync reformats the root command and switches environment names to config constants. Phase 1 DevPod monorepo layout #1 adds rootCmd.AddCommand(web.NewWebCmd(globalFlags)).
  • desktop/src/client/client.ts, desktop/src/client/command.ts, desktop/src/lib/store.ts, desktop/src/lib/useDownloadLogs.ts, desktop/src/main.tsx — Phase 1 DevPod monorepo layout #1 adds the browser web UI; upstream updates the desktop client and log download handling.
  • desktop/package.json, desktop/yarn.lock, package.json — dependency and script updates on both sides. desktop/yarn.lock is the large conflict.
  • README.md and Taskfile.yml — both sides add short sections.

#1's new trees (cmd/web/, desktop auth and admin views, docs/monorepo.md, examples/devpod-demo/, scripts/check.sh, monorepo.manifest.json) are absent on upstream and should come in as additions.

cmd/pro on #1 still imports github.com/loft-sh/api/v4 and github.com/loft-sh/agentapi/v4 because that branch is behind this rewrite. Those files are outside #1's own diff. Landing this sync first keeps the skevetter import paths when #1 merges. Landing #1 first still needs those imports retargeted once this sync lands, in any #1 code that still names loft-sh.

Upstream browser IDEs (pkg/ide/vscodeweb, pkg/ide/codeserver, desktop IDE settings) and #1's devpod web UI are separate features. They do not edit the same IDE settings files.

Verification

  • go build ./... passed with Go 1.25.8.
  • go test passed for all 131 non-e2e packages.
  • Skipped on purpose: the 15 github.com/skevetter/devpod/e2e/... packages, which need Docker, a provider, or cloud. pkg/devcontainer/setup TestLifecycleHookTestSuite/TestSymlinkWithQuotes skipped because it requires root (this run was uid 1000). Packages with no *_test.go files were reported as such.
  • Desktop Vitest, Playwright, and a browser pass were not part of this check.
Open in Web Open in Cursor 

skevetter and others added 30 commits February 24, 2026 23:47
…nsConfig struct (skevetter#521)

Signed-off-by: Samuel K <skevetter@pm.me>
Signed-off-by: Samuel K <skevetter@pm.me>
Signed-off-by: Samuel K <skevetter@pm.me>
…#506)

* fix(deps): update dependency @loft-enterprise/client to v4

* fix: update workspace details for api changes

Signed-off-by: Samuel K <skevetter@pm.me>

---------

Signed-off-by: Samuel K <skevetter@pm.me>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Samuel K <skevetter@pm.me>
…ource of providers (skevetter#528)

Signed-off-by: Leonid Dubinsky <dub@podval.org>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ter#532)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Samuel K <skevetter@pm.me>
…vetter#533)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
….13.9 (skevetter#536)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ing selfupdate (skevetter#535)

references skevetter#534

Signed-off-by: Samuel K <skevetter@pm.me>
…bernetes digest to 85f2bf5 (skevetter#538)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…per/ecr-login to v0.12.0 (skevetter#540)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…bernetes digest to 9e0ccb0 (skevetter#541)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…vetter#542)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
….21.2 (skevetter#543)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…evetter#547)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Samuel K <skevetter@pm.me>
…mpatibility (skevetter#549)

Signed-off-by: Samuel K <skevetter@pm.me>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Samuel K <skevetter@pm.me>
…er#553)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate Bot and others added 30 commits April 12, 2026 21:40
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…r#730)

- Add 30s timeout to agent URL wait loop to prevent infinite hangs
- Propagate errors in SetupGPG instead of silently returning nil
- Use dedicated http.ServeMux in ServeAgent to avoid global state conflicts
- Add explicit timeouts/polling to all Eventually assertions missing them
- Replace bare defer cleanup with ginkgo.DeferCleanup for timeout safety
- Remove 3s sleep in SSH port forwarding test
- Consolidate duplicate setupDockerProvider into framework.SetupDockerProvider
- Delete commented-out GPG forwarding test code
- Fix "nachine" typos and apt-get install spacing in error messages
…ter#733)

Adds retry-with-backoff to all DevPodUp* commands so transient Docker
Hub errors (rate limits, timeouts, connection resets) don't cause false
E2E test failures.
…#732)

When the user has SSH-based commit signing configured (gpg.format=ssh),
the GPG agent forwarding code no longer passes the SSH key path as
--gitkey to setup-gpg. SSH signing keys are handled by the separate
SSH signature helper path.
…ter#734)

GPG key IDs are hex fingerprints, not file paths. When user.signingKey
is a file path (starts with / or ~), it's an SSH key — skip passing it
to setup-gpg. This handles the case where gpg.format is not set to ssh
but the signing key is still an SSH key path.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…vetter#728)

Introduce RunPreAttachHooks (onCreate through postStart) and
RunPostAttachHooks (postAttach only). The original RunLifecycleHooks
now delegates to both, preserving existing behavior.

Part of skevetter#708
…kevetter#706)

On Linux hosts booted with ipv6.disable=1 or built without CONFIG_IPV6,
/proc/net/tcp6 and /proc/net/udp6 do not exist. doNetstat previously
returned the os.IsNotExist error verbatim, which propagated through
TCP6Socks and caused findPorts to discard already-collected IPv4 sockets
and fail the entire watch loop — leaving IDEs such as openvscode
unreachable because no ports were ever forwarded.

Treat a missing procfile as "zero sockets of this family" by returning
(nil, nil) only when os.IsNotExist is true. Permission errors, I/O
errors, and parse errors continue to propagate unchanged.

Adds the first unit tests for pkg/netstat, covering the missing-file
path, the happy path, non-IsNotExist open errors, and parse errors.

Fixes skevetter#705

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Samuel K <skevetter@pm.me>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…bernetes digest to 7a66278 (skevetter#737)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…evetter#739)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This keeps reverse forwarding unchanged while letting forward-only port mappings target service names and other remote hostnames that resolve inside the workspace runtime.
install podman and kind directly due to issues with chocolatey installation
closes skevetter#750

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
The agent-side tunnelLogger forwards log lines over the tunnel
asynchronously via a background worker. On shutdown (e.g. a failing
lifecycle hook), the agent process exited and cancelled the context
before the worker drained the channel, silently dropping the last
queued line(s).

Add a Flush() that drains the channel and is deferred in the container
setup Run path, send with a cancellation-detached context, and flush
before Fatal exits.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…kevetter#769)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
)

Quote-heavy lifecycle commands (e.g. a postStartCommand using a
single-quoted grep) caused the generated devcontainer.metadata image
label to contain an illegal `\'` JSON escape, because every single quote
in the label value was rewritten to `\'\'` before yaml.Marshal.

On the next up/attach, GetImageMetadataFromContainer failed to unmarshal
the label, swallowed the error, and returned empty metadata, so all
customizations.vscode.extensions/settings were silently dropped on
Compose-based devcontainers.

yaml.Marshal already handles YAML quoting, so the manual single-quote
escaping is unnecessary and corrupting. Extract the label escaping into
escapeComposeLabelValue, which now only doubles `$` for compose
interpolation, and add a regression test that round-trips a quote-heavy
postStartCommand plus a vscode extension through the compose override.

Fixes skevetter#770

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Samuel K <skevetter@pm.me>
Signed-off-by: Samuel K <skevetter@pm.me>
Signed-off-by: Samuel K <skevetter@pm.me>
Signed-off-by: Samuel K <skevetter@pm.me>
Signed-off-by: Samuel K <skevetter@pm.me>
The skevetter/devpod main merge brought updates to seven existing
.github/workflows files. Restore those files to the copies on fork
main so this sync does not add or change CI.

Co-authored-by: secautoai <secautoai@users.noreply.github.com>
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.