Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: use tailnet v2 API for coordination #11638

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
Jan 22, 2024
Merged

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Jan 16, 2024

This one is huge, and I'm sorry.

The problem is that once I change tailnet.Conn to start doing v2 behavior, I kind of have to change it everywhere, including in CoderSDK (CLI), the agent, wsproxy, and ServerTailnet.

There is still a bit more cleanup to do, and I need to add code so that when we lose connection to the Coordinator, we mark all peers as LOST, but that will be in a separate PR since this is big enough!

Copy link
Contributor Author

spikecurtis commented Jan 16, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spikecurtis and the rest of your teammates on Graphite Graphite

@spikecurtis spikecurtis requested a review from coadler January 16, 2024 12:37
@spikecurtis spikecurtis marked this pull request as ready for review January 16, 2024 12:37
@spikecurtis spikecurtis force-pushed the spike/10533-wsproxy-endpoint branch from 4177202 to 04e3985 Compare January 17, 2024 04:57
@spikecurtis spikecurtis force-pushed the spike/10533-use-tailnet-v2 branch from 80e59bd to fe63f6a Compare January 17, 2024 04:57
@spikecurtis spikecurtis force-pushed the spike/10533-wsproxy-endpoint branch from 04e3985 to 64caaac Compare January 17, 2024 05:41
@spikecurtis spikecurtis force-pushed the spike/10533-use-tailnet-v2 branch 2 times, most recently from 9a1e2eb to 2f11961 Compare January 17, 2024 05:52
@spikecurtis spikecurtis force-pushed the spike/10533-wsproxy-endpoint branch from 64caaac to 2bced78 Compare January 17, 2024 10:04
@spikecurtis spikecurtis force-pushed the spike/10533-use-tailnet-v2 branch from 2f11961 to e611c3c Compare January 17, 2024 10:04
@spikecurtis spikecurtis force-pushed the spike/10533-wsproxy-endpoint branch from 2bced78 to afd20a0 Compare January 17, 2024 11:49
@spikecurtis spikecurtis force-pushed the spike/10533-use-tailnet-v2 branch from e611c3c to fba56d1 Compare January 17, 2024 11:49
@spikecurtis spikecurtis force-pushed the spike/10533-wsproxy-endpoint branch from afd20a0 to 0b9455c Compare January 18, 2024 06:02
Copy link
Contributor

@coadler coadler left a comment

Choose a reason for hiding this comment

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

Looks good. Nice to see it all come together

Comment on lines +45 to +46
// TODO: handle DERPMap too!
DerpMapUpdateFrequency: time.Hour,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed for this PR or is it addressed in one of the PRs after this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in some upstack PRs. As of this PR we still use the old DERPMap dedicated websocket, but I'm in the process of switching everything over after this one.

@spikecurtis spikecurtis force-pushed the spike/10533-use-tailnet-v2 branch from 6ef3db5 to a3721bb Compare January 22, 2024 06:58
@spikecurtis spikecurtis merged commit f01cab9 into main Jan 22, 2024
@spikecurtis spikecurtis deleted the spike/10533-use-tailnet-v2 branch January 22, 2024 07:07
Copy link
Contributor Author

Merge activity

@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
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