Skip to content

fix: stop redirecting DERP and replicasync http requests #10752

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
Nov 20, 2023

Conversation

spikecurtis
Copy link
Contributor

Fixes an issue where setting CODER_REDIRECT_TO_ACCESS_URL breaks use of multiple Coder server replicas for DERP traffic.

Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@spikecurtis spikecurtis force-pushed the spike/customers-345 branch 2 times, most recently from dfa639c to a1a771a Compare November 17, 2023 16:42
slog.F("relay_address", peer.RelayAddress), slog.Error(err))
return
}
target, err := ra.Parse("/derp")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think /derp/latency-check might be a bit better since it's meant for pinging, rather than just calling /derp incorrectly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good idea. Customers often log status codes, so 426 is going to get them wound up over nothing.

@spikecurtis spikecurtis merged commit 5173bce into main Nov 20, 2023
@spikecurtis spikecurtis deleted the spike/customers-345 branch November 20, 2023 10:47
Copy link
Contributor Author

Merge activity

@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2023
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