Skip to content

[FEATURE] End-to-end remote devcontainer provisioning via Tailscale SSH #232

Closed as not planned

Description

@gerchowl

Summary

One-command flow to provision a devcontainer on a remote host and connect via Tailscale SSH. From zero (uncloned repo) to working terminal session — no manual steps.

Target DX

C-SPC d → "new devc on remote" → pick host → pick repo → [automated] → SSH tab

Or from CLI:

devc-provision.sh sdsc --repo [email protected]:vig-os/fd5.git
# → clones, scaffolds .devcontainer, injects TS key, compose up, waits for tailnet, prints IP

Sub-issues

Architecture

Local machine                              Remote host
─────────────                              ───────────
devc-provision.sh <host> [repo]
  ├── devc-remote.sh --open none --yes
  │     ├── SSH connectivity check
  │     ├── Clone repo (if missing)
  │     ├── init-workspace (if no .devcontainer/)
  │     ├── Generate ephemeral TS key (OAuth API)
  │     ├── Inject key into docker-compose.local.yaml
  │     └── compose up ──────────────────► container starts
  │                                        ├── post-create: install tailscale
  │                                        └── post-start: tailscaled + tailscale up
  ├── Poll tailscale status --json
  │   until container appears on tailnet
  └── Output: tailscale hostname + IP

IDE/terminal (choose one):
  ├── WezTerm C-SPC d → ssh root@<ip>
  ├── cursor --remote ssh-remote+root@<hostname>
  ├── code --remote ssh-remote+root@<hostname>
  └── ssh root@<hostname>

Prerequisites

  • Tailscale OAuth client with auth_keys scope + tag:devcontainer
  • TS_CLIENT_ID + TS_CLIENT_SECRET in local environment
  • Tailnet ACLs allowing SSH to tag:devcontainer devices
  • Remote host with podman/docker + compose

Out of scope

  • WezTerm keybind integration (personal dotfiles, not project code)
  • JetBrains Gateway support
  • Baking Tailscale into the container image (separate optimization)

References

Activity

  1. added
    feature
    area:workspace
    effort:large
    semver:minor
    on Mar 6, 2026
  2. c-vigo commented on Jul 7, 2026

    @c-vigo
    Contributor

    @gerchowl — backlog-consolidation proposal for the whole remote-devcontainer family, from the post-0.4.0 triage (2026-07-07).

    Proposal: keep this issue (#232) and #70 as the two surviving trackers, and close the satellites below as consolidated-into-#232/#70. The family is dormant since Feb–Mar, and all of it pre-dates the Nix cutover — remote provisioning wants a fresh design against the 0.4.0 world (Nix image, direnv-mode workspaces #854, capability shells #884) and the upcoming devkit rename (#781, 1.0), so the fine-grained satellites would need re-speccing anyway. Their bodies stay linked from here, nothing is lost.

    Satellites proposed for closure:

    Stale PR: #166 (implements #70, branch feature/70-remote-devc-orchestration, open since February) — certain to conflict with the 0.4.0 scaffold; propose closing the PR, work restarts from #70 when the family is re-planned.

    Branches to prune with the closures (no other open PRs attached):

    If you'd rather keep any satellite alive, just say which — the rest close on your ack.

  3. c-vigo commented on Jul 8, 2026

    @c-vigo
    Contributor

    Closing as part of an agreed backlog cleanup (with @gerchowl). The remote-devcontainer / devc-remote / Tailscale initiative predates the Nix + Claude-native migration (#625) and has had no activity since Feb–Mar 2026. If remote provisioning is wanted again it will be re-planned from scratch after the devkit rename (#781). Reopen/refile if revived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspaceeffort:largefeaturesemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions