Skip to content

Provide client address information in transport request#25853

Merged
AntonAM merged 1 commit intomasterfrom
anton/tunnel-client-src
May 10, 2023
Merged

Provide client address information in transport request#25853
AntonAM merged 1 commit intomasterfrom
anton/tunnel-client-src

Conversation

@AntonAM
Copy link
Copy Markdown
Contributor

@AntonAM AntonAM commented May 8, 2023

If client address information is missing in dial request, we take it from the parent ssh connection, otherwise we end up with localhost/Proxy address as client source address. It's needed for correctly propagating IP information of users connecting to auth server through proxy tunnel listener (fx command tctl status etc).

@AntonAM
Copy link
Copy Markdown
Contributor Author

AntonAM commented May 8, 2023

Not directly related but same are of code, issue: https://github.com/gravitational/teleport-private/issues/618

Comment thread lib/reversetunnel/transport.go Outdated
Copy link
Copy Markdown
Contributor

@espadolini espadolini May 9, 2023

Choose a reason for hiding this comment

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

Should this be if (dreq.ClientSrcAddr == "" || dreq.ClientDstAddr == "") && p.sconn != nil? Or maybe we could only fill the missing field?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed according to offline discussion.

If client address information is missing in dial request, we take it from the ssh connection.
It's needed for correctly propagating IP information of users
 connecting to auth server through proxy tunnel listener.
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fspmarshall May 10, 2023 12:40
@AntonAM AntonAM added this pull request to the merge queue May 10, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 10, 2023
@AntonAM AntonAM added this pull request to the merge queue May 10, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 10, 2023
@AntonAM AntonAM added this pull request to the merge queue May 10, 2023
Merged via the queue into master with commit a06249e May 10, 2023
@AntonAM AntonAM deleted the anton/tunnel-client-src branch May 10, 2023 14:36
@public-teleport-github-review-bot
Copy link
Copy Markdown

@AntonAM See the table below for backport results.

Branch Result
branch/v12 Create PR
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

Development

Successfully merging this pull request may close these issues.

4 participants