Skip to content

fix connecting to agentless leaf nodes#25206

Merged
capnspacehook merged 2 commits intomasterfrom
capnspacehook/fix-agentless-leaf-nodes
May 2, 2023
Merged

fix connecting to agentless leaf nodes#25206
capnspacehook merged 2 commits intomasterfrom
capnspacehook/fix-agentless-leaf-nodes

Conversation

@capnspacehook
Copy link
Copy Markdown
Contributor

@capnspacehook capnspacehook commented Apr 26, 2023

Pass user and role information to Auth server signing OpenSSH cert so avoid user/role lookup errors if the target node is on a leaf cluster. Also use role and trait information from the current connection rather than the backend to support role impersonation.

Fixes #25068.
Fixes #25083.

@capnspacehook capnspacehook marked this pull request as draft April 26, 2023 17:07
@capnspacehook capnspacehook force-pushed the capnspacehook/fix-agentless-leaf-nodes branch 2 times, most recently from a363e94 to 1021b91 Compare April 26, 2023 17:35
@capnspacehook capnspacehook marked this pull request as ready for review April 26, 2023 17:35
@github-actions github-actions Bot requested review from lxea and rosstimothy April 26, 2023 17:36
@capnspacehook capnspacehook force-pushed the capnspacehook/fix-agentless-leaf-nodes branch 2 times, most recently from 94c04b3 to 9add8c0 Compare April 26, 2023 17:57
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add test coverage to prevent any regressions?

@capnspacehook capnspacehook marked this pull request as draft April 27, 2023 21:35
@capnspacehook capnspacehook force-pushed the capnspacehook/fix-agentless-leaf-nodes branch 5 times, most recently from 49afbc8 to 4eed39e Compare May 1, 2023 22:39
@capnspacehook capnspacehook marked this pull request as ready for review May 1, 2023 22:41
@capnspacehook capnspacehook requested a review from rosstimothy May 1, 2023 22:41
@github-actions github-actions Bot requested review from camscale and smallinsky May 1, 2023 22:41
Comment thread api/proto/teleport/legacy/client/proto/authservice.proto Outdated
@r0mant r0mant requested review from strideynet and removed request for gabrielcorado and lxea May 2, 2023 00:58
Copy link
Copy Markdown
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the issues I was experiencing, and seems like an acceptable solution.

Comment thread api/proto/teleport/legacy/client/proto/authservice.proto Outdated
Comment thread api/proto/teleport/legacy/client/proto/authservice.proto Outdated
Comment thread api/proto/teleport/legacy/client/proto/authservice.proto Outdated
@capnspacehook capnspacehook force-pushed the capnspacehook/fix-agentless-leaf-nodes branch 2 times, most recently from a5d3725 to 9a7ac6e Compare May 2, 2023 12:37
Comment thread api/types/user.go Outdated
Pass user and role information to Auth server signing OpenSSH cert
so avoid user/role lookup errors if the target node is on a leaf
cluster. Also use role and trait information from the current
connection rather than the backend to support role impersonation.
@capnspacehook capnspacehook force-pushed the capnspacehook/fix-agentless-leaf-nodes branch from 9a7ac6e to 732997d Compare May 2, 2023 13:53
@capnspacehook capnspacehook requested a review from espadolini May 2, 2023 17:14
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fspmarshall May 2, 2023 17:23
@capnspacehook capnspacehook added this pull request to the merge queue May 2, 2023
Merged via the queue into master with commit 68feffb May 2, 2023
@capnspacehook capnspacehook deleted the capnspacehook/fix-agentless-leaf-nodes branch May 2, 2023 17:56
@public-teleport-github-review-bot
Copy link
Copy Markdown

@capnspacehook See the table below for backport results.

Branch Result
branch/v13 Create PR

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

Projects

None yet

7 participants