Skip to content

[v16] Prevent reauthentication for tilde prefix expansion errors#51650

Merged
rosstimothy merged 1 commit intobranch/v16from
tross/backport-51464/v16
Jan 30, 2025
Merged

[v16] Prevent reauthentication for tilde prefix expansion errors#51650
rosstimothy merged 1 commit intobranch/v16from
tross/backport-51464/v16

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #51464 to branch/v16

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 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:16
@rosstimothy rosstimothy enabled auto-merge January 30, 2025 16:03
@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/v16 with commit 1ad8d04 Jan 30, 2025
@rosstimothy rosstimothy deleted the tross/backport-51464/v16 branch January 30, 2025 17:19
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