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

Commits on Jun 29, 2022

  1. Improve error msg when client fails to auth in Teleport (#12677)

    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 committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    461878f View commit details
    Browse the repository at this point in the history