Skip to content

Add DNS configuration to vpn to allow it to be used to tell if Coder Connect is running. #466

Closed
coder/coder
#17298

Description

@sreya

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.

Activity

  1. added theissue type on Mar 12, 2025
  2. sreya commented on Apr 8, 2025

    @sreya
    Author

    During our weekly call we talked about determining whether Desktop is running by querying DNS

  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions