Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use the tailscale integration #166

Open
strausmann opened this issue Dec 18, 2021 · 3 comments
Open

Option to use the tailscale integration #166

strausmann opened this issue Dec 18, 2021 · 3 comments
Assignees
Labels
awaiting-gitpod-internal-fix The issue will be addressed by the gitpod team enhancement New feature or request workaround-given The bug/feature will not be fixed/implemented at this time. See the comments for workaround
Milestone

Comments

@strausmann
Copy link
Contributor

Problem this feature will solve

With the Tailscale integration you can use e.g. services / databases in other environments in your GitPod development environment.

Background

  • Securely access a cloud or on-prem resource, like a production database
  • Spin up a fleet of connected Gitpod workspaces
  • Share a staged resource with a colleague, as part of a review
  • Access a package registry
  • Complete a coding interview

Proposed Solution

GitPod has a sample project for the tailscale integration. https://github.com/gitpod-io/template-tailscale

If the GitPod ENV "TAILSCALE_AUTHKEY" is present and the Tailscale integration has been enabled in the starter.ini, the Tailscale service shall be started in the background and the AuthKey shall be used to log into the TailNet.

Here the GitPod Blog Post: https://www.gitpod.io/blog/tailscale

@strausmann strausmann added the enhancement New feature or request label Dec 18, 2021
@apolopena
Copy link
Owner

apolopena commented Dec 21, 2021

At the time of writing this, the tailscale and tailscald binaries are very new and require sudo to run. Also running: tailscale --help outputs this: This CLI is still under active development. Commands and flags will change in the future.

Until Gitpods tailscale commands will not change (the API is solid and not so expiremental) a user that wants to implement tailscale can do so manually by setting a value for the TAILSCALE_AUTHKEY environment variable in the Gitpod dashboard and then running the following command in the terminal after a workspace is created:

      sudo -E tailscale up --hostname "gitpod-${GITPOD_WORKSPACE_ID}"  --authkey "${TAILSCALE_AUTHKEY}"

Also as a side note it is not advised to run tailscale in the background as a user would not be prompted in the terminal to authenticate:

To authenticate, visit:

 https://login.tailscale.com/a/542947456ed5

Or notified in the terminal if tailscale was successfully authenticated or not.

Success.

@apolopena apolopena added awaiting-gitpod-internal-fix The issue will be addressed by the gitpod team workaround-given The bug/feature will not be fixed/implemented at this time. See the comments for workaround labels Dec 21, 2021
@apolopena apolopena added this to the Backlog 🗂 milestone Jan 22, 2022
@apolopena
Copy link
Owner

@strausmann is it ok with you if I keep this issue in the backlog and leave it out of the 1.4 release?

@strausmann
Copy link
Contributor Author

it's ok for me... thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-gitpod-internal-fix The issue will be addressed by the gitpod team enhancement New feature or request workaround-given The bug/feature will not be fixed/implemented at this time. See the comments for workaround
Projects
None yet
Development

No branches or pull requests

2 participants