-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
tsh proxy jump fails with TLS routing enabled #13554
Comments
@codingllama it looks like the error I'm getting might be caused by your changes in #12475, which causes the MFA check to use the web proxy address set in the client rather than the one passed down. Line 90 in 972872a
|
After looking into this I think #12475 is a red herring. From the stack traces, the failure stems from Digging a bit deeper I found that TLS routing / non-TLS routing code paths use different addresses:
It looks correct to me to check MFA against the "root" cluster, as that is the cluster where the user is registered (and thus, the cluster where their credentials will be). That said, I don't think ConnectThroughALPN ever respects the jump host. I'm not sure what the correct approach is here, so pinging @r0mant and @smallinsky. |
The TLS routing flow does the MFA check agains leaf cluster in case of I have made a fix for that PR13791 |
Fixed in #13791 |
Related to #11271
Tracked in #13340
What happened:
When using
tsh ssh -J leaf-proxy
, the connection is successfully made through the leaf proxy, as it was fixed in #11282. However some connections made within thetsh ssh
call still attempt to connect to the root proxy, such as theIsMFARequired
check.Note that this still works as expected with TLS Routing turned off.
What you expected to happen:
Jump host should be respected across the entire
tsh ssh
call, such that it works even with the root cluster completely shut down.Reproduction Steps
As minimally and precisely as possible, describe step-by-step how to reproduce the problem.
tsh login --proxy=root-proxy --auth=local --user=alice
.tsh login leaf
.tsh ssh -J leaf-proxy root@node-1
.tsh ssh
.Server Details
teleport version
): v10Client Details
tsh version
): v10Debug Logs
With root cluster shut down:
The text was updated successfully, but these errors were encountered: