Skip to content

fix: use client preferred URL for the default DERP #18911

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

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

deansheather
Copy link
Member

The agentsdk currently does a remap of the DERP map to change the EmbeddedRelay node's URL to match the agent's access URL.

This PR makes changes to the workspacesdk (used by clients like the CLI) and vpn (used by Coder Desktop) to match this behavior.

This enables us the ability to try Coder clients in dogfood over a VPN without changing the global access URL.

The agentsdk currently does a remap of the DERP map to change the
EmbeddedRelay node's URL to match the agent's access URL.

This PR makes changes to the `workspacesdk` (used by clients like the
CLI) and `vpn` (used by Coder Desktop) to match this behavior.

This enables us the ability to try Coder clients in dogfood over a VPN
without changing the global access URL.
Comment on lines +79 to +81
type DERPMapRewriter interface {
RewriteDERPMap(derpMap *tailcfg.DERPMap)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interface 👍

@deansheather deansheather merged commit a1b87a6 into main Jul 17, 2025
32 checks passed
@deansheather deansheather deleted the dean/derp-rewrite branch July 17, 2025 10:17
@github-actions github-actions bot locked and limited conversation to collaborators Jul 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants