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

[v9] Improve error msg when client fails to auth in Teleport #13835

Merged
merged 1 commit into from Jun 29, 2022

Conversation

marcoandredinis
Copy link
Contributor

Backport #12677 to branch/v9

@marcoandredinis marcoandredinis force-pushed the marco/v9/connection_error_invalid_certs branch from f464368 to e735761 Compare June 24, 2022 11:25
@marcoandredinis marcoandredinis force-pushed the marco/v9/connection_error_invalid_certs branch 3 times, most recently from 0c8a1dc to 00e841b Compare June 24, 2022 19:41
@marcoandredinis marcoandredinis force-pushed the marco/v9/connection_error_invalid_certs branch 3 times, most recently from 18b1e0e to fb873a6 Compare June 29, 2022 08:53
@marcoandredinis
Copy link
Contributor Author

@probakowski friendly ping 🙏

When the client connects to teleport with invalid credentials (eg
expired ones) it will retry multiple times until the context deadline is
reached.
When it happens, we receive the generic error: context deadline
exceeded.
However, we can ask for the latest connection error, one which will give
us more information on why it happened.
To ask for this extra error we need to add the following
grpc.DialOption: grpc.WithReturnConnectionError()

After doing this, we will get the errors that happenned when trying to
connect to the grpc Server.

This should help us debug possible connection problems.

We had to refactor a little bit the way we handle the parallel
connection attempts to receive all the connection errors from the
multiple flows.
@marcoandredinis marcoandredinis force-pushed the marco/v9/connection_error_invalid_certs branch from fb873a6 to 461878f Compare June 29, 2022 14:57
@marcoandredinis marcoandredinis enabled auto-merge (squash) June 29, 2022 15:16
@marcoandredinis marcoandredinis merged commit 52ff709 into branch/v9 Jun 29, 2022
@marcoandredinis marcoandredinis deleted the marco/v9/connection_error_invalid_certs branch June 30, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants