Repository navigation
Closed as not planned
Labels
area:workspaceWorkspace tooling, justfile, templateseffort:medium1-4 hoursfeatureNew feature or requestsemver:minorNew feature, backward-compatible
Description
Summary
Extend devc-remote.sh to automatically generate and inject a Tailscale ephemeral auth key into the remote container's docker-compose.local.yaml before compose up. This enables the container to join the tailnet without manual key setup on the remote host.
Context
devc-remote.sh([FEATURE] devc-remote.sh — bash orchestrator for remote devcontainer #152) handles remote devcontainer orchestration- Tailscale SSH ([FEATURE] Add opt-in Tailscale SSH support to devcontainer workspace template #208) requires
TAILSCALE_AUTHKEYindocker-compose.local.yaml - Currently, the auth key must be manually placed on the remote host
- With this feature, local OAuth credentials generate a per-session ephemeral key that gets injected into the remote automatically
Design
Prerequisites (local machine)
TS_CLIENT_IDandTS_CLIENT_SECRETenvironment variables (from Tailscale OAuth client withauth_keysscope andtag:devcontainer)curlandjqavailable
Flow
- After
remote_preflight, beforeremote_compose_up - Check if
TS_CLIENT_IDis set locally — if not, skip (opt-in, like everything Tailscale) - Generate an OAuth access token from
api.tailscale.com/api/v2/oauth/token - Create an ephemeral (non-reusable) auth key via
api.tailscale.com/api/v2/tailnet/-/keyswithtag:devcontainer - Inject
TAILSCALE_AUTHKEY=<key>into the remotedocker-compose.local.yamlvia SSH - Proceed with
compose up— container installs Tailscale and joins tailnet - Output the Tailscale hostname for downstream use (IDE wrappers, direct SSH)
Constraints
- OAuth client must have
tag:devcontainer— ACLs must allow SSH to tagged devices - Key is ephemeral: container removal auto-cleans the tailnet node
- Non-reusable: one key per container session, not shared across rebuilds
docker-compose.local.yamlis git-ignored, safe to write
Scope boundary
This issue covers only the infra side — key generation + injection + container on tailnet. IDE-specific connection (Cursor, VS Code) is a separate concern (see linked issue).
Depends on
- [FEATURE] Add opt-in Tailscale SSH support to devcontainer workspace template #208 (Tailscale SSH in workspace template)
- [FEATURE] devc-remote.sh — bash orchestrator for remote devcontainer #152 (devc-remote.sh orchestrator)
References
- Tailscale OAuth clients
- Tailscale API — create key
- Design doc:
docs/designs/tailscale-ssh.md
Metadata
Metadata
Assignees
Labels
area:workspaceWorkspace tooling, justfile, templateseffort:medium1-4 hoursfeatureNew feature or requestsemver:minorNew feature, backward-compatible
Activity
feat(remote): add Tailscale key injection and --open/--yes flags
feat(remote): Tailscale key injection and --open/--yes flags (#233)
c-vigo commentedon Jul 8, 2026
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.