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

Improve error messaging when connections to nodes fail #47351

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Oct 8, 2024

Prevents duplicate information about missing tunnels preventing a connection when attempting to connect locally and via a proxy peer. The error from the remote dial is now omitted from the message provided to end users. The information about how the connection was attempted was instead updated to reflect that tunnels were attempted via both the local proxy and a peer and they both failed. Additionally, if a hostname was provided in the dial request, it will be included in the error message instead of the internal @local-node identifier for tunnels or the public address for direct dial nodes.

Closes #45256.

changelog: Improve error messaging when connections to offline agents are attempted

Prevents duplicate information about missing tunnels preventing a
connection when attempting to connect locally and via a proxy peer.
The error from the remote dial is now omitted from the message
provided to end users. The information about how the connection
was attempted was instead updated to reflect that tunnels were
attempted via both the local proxy and a peer and they both
failed. Additionally, if a hostname was provided in the dial
request, it will be included in the error message instead of
the internal @local-node identifier for tunnels or the public
address for direct dial nodes.

Closes #45256.
@rosstimothy
Copy link
Contributor Author

See the below screenshots for what the error messaging now looks like on this branch in various connection scenarios:

Failure to connect to a tunnel node when proxy peering is enabled
Screenshot 2024-10-08 at 1 38 11 PM

Failure to connect to a tunnel node when proxy peering is disabled:
Screenshot 2024-10-08 at 1 37 05 PM

Failure to connect to a direct dial node:
Screenshot 2024-10-08 at 1 37 15 PM

@rosstimothy rosstimothy marked this pull request as ready for review October 8, 2024 17:59
@github-actions github-actions bot requested review from espadolini and Tener October 8, 2024 18:00
@gravitational gravitational deleted a comment from github-actions bot Oct 8, 2024
@rosstimothy rosstimothy enabled auto-merge October 8, 2024 18:56
@rosstimothy rosstimothy changed the title Improve error messaging when a connections to nodes fail Improve error messaging when connections to nodes fail Oct 8, 2024
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from Tener October 8, 2024 19:49
@rosstimothy rosstimothy added this pull request to the merge queue Oct 8, 2024
Merged via the queue into master with commit b2de7f2 Oct 8, 2024
48 of 49 checks passed
@rosstimothy rosstimothy deleted the tross/connection_errors branch October 8, 2024 20:07
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

repeated errors on ssh attempts
3 participants