Skip to content

[v13] tsh puttyconfig#33543

Merged
webvictim merged 12 commits intobranch/v13from
gus/v13/tsh-puttyconfig
Oct 20, 2023
Merged

[v13] tsh puttyconfig#33543
webvictim merged 12 commits intobranch/v13from
gus/v13/tsh-puttyconfig

Conversation

@webvictim
Copy link
Copy Markdown
Contributor

@webvictim webvictim commented Oct 16, 2023

Backports the following PRs to branch/v13:

Changelog:

Enhanced PuTTY/WinSCP Support

tsh on Windows now supports the tsh puttyconfig command, which can easily configure saved sessions inside the well-known PuTTY and WinSCP clients to connect to Teleport SSH services.

For more information, see docs.

webvictim and others added 4 commits October 16, 2023 16:40
Fixes an extra full stop and tenant name which was included accidentally.
…chHosts (#32598)

* puttyconfig: Switch to string-based Validity format and deprecate MatchHosts

* Switch to more restrictive, reliable parsing

* Add validity string errors to docs

* Remove invalid test case

* Add test case

* Remove any spaces from user-provided input and use sanitized hostname

* Apply fixes from code review

* Tidy up errors, provide consistent detail about which field contains an error

* Disable docs lint for dots in heading

This is needed here, as there are 5 error messages which all start the same way but end differently.

* Catch a few more error cases

* Only delete old MatchHosts key after new Validity key has been written successfully

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Address Zac's comments from code review

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
@public-teleport-github-review-bot
Copy link
Copy Markdown

@webvictim - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

@github-actions github-actions Bot added size/xl tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Oct 16, 2023
@github-actions github-actions Bot requested a review from jakule October 16, 2023 19:52
@webvictim webvictim enabled auto-merge October 18, 2023 23:56
Copy link
Copy Markdown

@orca-security-us orca-security-us Bot left a comment

Choose a reason for hiding this comment

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

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

@webvictim webvictim added this pull request to the merge queue Oct 20, 2023
Merged via the queue into branch/v13 with commit 750f0b9 Oct 20, 2023
@webvictim webvictim deleted the gus/v13/tsh-puttyconfig branch October 20, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport documentation size/xl tsh tsh - Teleport's command line tool for logging into nodes running Teleport.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants