{"id":13994708,"url":"https://github.com/tailscale/codespace","last_synced_at":"2025-04-07T15:05:26.130Z","repository":{"id":37035216,"uuid":"411495287","full_name":"tailscale/codespace","owner":"tailscale","description":"Experimenting with codespaces","archived":false,"fork":false,"pushed_at":"2025-03-13T17:47:16.000Z","size":126,"stargazers_count":82,"open_issues_count":6,"forks_count":48,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-03-31T14:09:36.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tailscale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-29T01:48:12.000Z","updated_at":"2025-03-13T17:39:12.000Z","dependencies_parsed_at":"2025-03-31T14:09:47.360Z","dependency_job_id":"ca0d824e-80a7-48fa-b293-12ae1610261b","html_url":"https://github.com/tailscale/codespace","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailscale%2Fcodespace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailscale%2Fcodespace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailscale%2Fcodespace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailscale%2Fcodespace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailscale","download_url":"https://codeload.github.com/tailscale/codespace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T14:03:03.853Z","updated_at":"2025-04-07T15:05:26.084Z","avatar_url":"https://github.com/tailscale.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Codespace feature for Tailscale connectivity\n\nThis repository contains a feature for [GitHub Codespaces](https://github.com/features/codespaces)\nto connect the running VM to a [Tailscale network](https://tailscale.com).\n\n![Start a new codespace](codespace.jpg)\n\nTo get started, add the following [feature](https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-features-to-a-devcontainer-file)\nto your `devcontainer.json`:\n\n```json\n\"features\": {\n  \"ghcr.io/tailscale/codespace/tailscale\": {\n    \"version\": \"latest\"\n  }\n}\n```\n\n## Starting Tailscale\n\nThe Tailscale daemon starts automatically as part of the devcontainer entrypoint.\n\n### Manual Log in\n\n```shell\nsudo tailscale up --accept-routes\n```\n\nMore info: [`tailscale up`](https://tailscale.com/kb/1080/cli/#up)\n\n### Automatic login\n\nCreate an [auth key](https://tailscale.com/kb/1085/auth-keys) in the Tailscale\n[admin panel](https://login.tailscale.com/admin/settings/keys).\n\nCreate a codespace secret called `TS_AUTH_KEY` in your\n[codespaces configuration](https://github.com/settings/codespaces) containing\nthe auth key you made above.\n\nNow whenever you launch a devcontainer with access to this secret, it will\nautomatically perform a `tailscale up --accept-routes --auth-key=$TS_AUTH_KEY`.\n\n## Details\n\n- A mount is added called `tailscale-${devcontainerId}` mapped to\n  `/var/lib/tailscale` to persist taislcaled state across devcontainer rebuilds,\n  so a single devcontainer will remain logged in for the devcontainer lifetime.\n- The feature requires `CAP_NET_ADMIN` in order to configure certain network\n  properties for kernel mode tailscale.\n- The feature requires kernel tun support in the runtime and `CAP_MKNOD` so that\n  it can create a tun device node if needed.\n- `CAP_NET_RAW` enables the feature to send ICMP.\n\n## Development\n\nA convenient way to develop this feature is to use codespaces, as they start by\ndefault with many of the dependencies required (at least Docker and npx).\n\nInside a codespace you can use the `Tasks:Run Test Task` command.\n\nOn a standalone machine tests can be run with:\n\n```shell\nnpx @devcontainers/cli features test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailscale%2Fcodespace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailscale%2Fcodespace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailscale%2Fcodespace/lists"}