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

Don't load ForwardedPorts from the .tsh/profile #26823

Merged
merged 1 commit into from Jun 1, 2023

Conversation

lxea
Copy link
Contributor

@lxea lxea commented May 24, 2023

This was leading to unexpected behavior where tsh was implicitly forwarding ports when running tsh ssh and would make it so a user could not run tsh ssh multiple times simultaneously due to conflicting ports already being open.

With this change ports to forward must always be explicitly passed via the -L flag.

Fix for #3094 and https://github.com/gravitational/customer-sensitive-requests/issues/69.

@lxea lxea force-pushed the lxea/forward_ports_config branch from 664c811 to a737566 Compare May 30, 2023 13:00
Copy link
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

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

@lxea Have you confirmed that with this fix we're not caching port forwarding configuration in all cases mentioned in the ticket?

#3094 (comment)
#3094 (comment)
#3094 (comment)

If so, lgtm.

Copy link
Contributor

@jakule jakule left a comment

Choose a reason for hiding this comment

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

LGTM if @r0mant's comment is addressed

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kimlisa May 31, 2023 16:07
@lxea
Copy link
Contributor Author

lxea commented Jun 1, 2023

@lxea Have you confirmed that with this fix we're not caching port forwarding configuration in all cases mentioned in the ticket?

#3094 (comment) #3094 (comment) #3094 (comment)

If so, lgtm.

Yeah, it should, it just stops forwarded_ports ever getting serialized out so it wont get cached anymore.

@lxea lxea added this pull request to the merge queue Jun 1, 2023
Merged via the queue into master with commit 8da636b Jun 1, 2023
22 checks passed
@lxea lxea deleted the lxea/forward_ports_config branch June 1, 2023 14:29
@public-teleport-github-review-bot

@lxea See the table below for backport results.

Branch Result
branch/v11 Failed
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.

None yet

3 participants