You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add DNS configuration to vpn to allow it to be used to tell if Coder Connect is running. #466
We need a way for our various clients like plugins/IDE extensions and the CLI to be able to determine if they should use Coder Connect when connecting to a workspace.
For this we'll use DNS queries. DNS (unlike, say a ping or HTTP request to a well known HTTP endpoint on the Coder Connect tunnel) has the property of returning a definite result in both cases whether Coder Connect is running (AAAA record) or not (NXDOMAIN).
Ensure DNS TTL for Coder Connect records is 2 seconds or less, to avoid cached responses giving incorrect results
Add a generic record is.coder.connect.enabled.right.now--.<suffix> which returns the tunnel service address. This address can be used when you want to know if Coder Connect is running, but are not trying to connect to a specific known workspace.
is.coder.connect.enabled.right.now--.<suffix> has 6 label components and double-dashes which are not allowed in workspace names. This ensures it can never collide with a legitimate workspace hostname.
changed the title [-]Add a basic health check endpoint in the tunnel impl for extensions to query VPN health[/-][+]Add DNS configuration to vpn to allow it to be used to tell if Coder Connect is running.[/+]on Apr 8, 2025
Activity
sreya commentedon Apr 8, 2025
During our weekly call we talked about determining whether Desktop is running by querying DNS
[-]Add a basic health check endpoint in the tunnel impl for extensions to query VPN health[/-][+]Add DNS configuration to vpn to allow it to be used to tell if Coder Connect is running.[/+]chore: change DNS record TTL from 10 minutes to 2 seconds (#70)
chore: add generic DNS record for checking if Coder Connect is running (
chore: update tailscale (#17327)