Skip to content
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

V7 backport #9958 and #10368 #11201

Merged
merged 4 commits into from
Mar 21, 2022
Merged

V7 backport #9958 and #10368 #11201

merged 4 commits into from
Mar 21, 2022

Conversation

rosstimothy
Copy link
Contributor

Backports #9958 and #10368

rosstimothy and others added 3 commits March 16, 2022 11:27
* Dynamically resolve reverse tunnel address

The reverse tunnel address is currently a static string that is
retrieved from config and passed around for the duration of a
services lifetime. When the `tunnel_public_address` is changed
on the proxy and the proxy is then restarted, all established
reverse tunnels over the old address will fail indefinintely.
As a means to get around this, #8102 introduced a mechanism
that would cause nodes to restart if their connection to the
auth server was down for a period of time. While this did
allow the nodes to pickup the new address after the nodes
restarted it was meant to be a stop gap until a more robust
solution could be applid.

Instead of using a static address, the reverse tunnel address
is now resolved via a `reversetunnel.Resolver`. Anywhere that
previoulsy relied on the static proxy address now will fetch
the actual reverse tunnel address via the webclient by using
the Resolver. In addition this builds on the refactoring done
in #4290 to further simplify the reversetunnel package. Since
we no longer track multiple proxies, all the left over bits
that did so have been removed to accomodate using a dynamic
reverse tunnel address.
@rosstimothy
Copy link
Contributor Author

@bernardjkim FYI

@rosstimothy rosstimothy marked this pull request as ready for review March 16, 2022 21:18
@rosstimothy rosstimothy enabled auto-merge (squash) March 21, 2022 16:26
@rosstimothy rosstimothy merged commit dbc4019 into branch/v7 Mar 21, 2022
@rosstimothy rosstimothy deleted the v7-backport-9958 branch March 21, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants