Skip to content

[v15] Prevent reauthentication for tilde prefix expansion errors#51651

Merged
rosstimothy merged 1 commit intobranch/v15from
tross/backport-51464/v15
Jan 30, 2025
Merged

[v15] Prevent reauthentication for tilde prefix expansion errors#51651
rosstimothy merged 1 commit intobranch/v15from
tross/backport-51464/v15

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Jan 30, 2025

Backport #51464 and part of #48716 to branch/v15

@rosstimothy rosstimothy added backport no-changelog Indicates that a PR does not require a changelog entry labels Jan 30, 2025
@github-actions github-actions Bot requested review from Joerger and nklaassen January 30, 2025 15:17
@rosstimothy rosstimothy force-pushed the tross/backport-51464/v15 branch from a882de6 to 9f31c20 Compare January 30, 2025 16:13
In #24254 expansion
of tilde prefixes(i.e. `tsh scp CHANGELOG.md root@host:~foo/`) was
explicitly denied. However, because the error returned to the user
is a trace.BadParameter error the reauthentication logic kicks in
and attempts to resolve the issue with fresh credentials. This
error is now caught and wrapped in a NonRetryableError to prevent
the authentication logic from providing a weird UX.

Updates #22886.
@rosstimothy rosstimothy force-pushed the tross/backport-51464/v15 branch from 9f31c20 to 7a894be Compare January 30, 2025 16:20
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from Joerger January 30, 2025 17:01
@rosstimothy rosstimothy added this pull request to the merge queue Jan 30, 2025
Merged via the queue into branch/v15 with commit 0bbd643 Jan 30, 2025
@rosstimothy rosstimothy deleted the tross/backport-51464/v15 branch January 30, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants