Skip to content

[v17] Prevent reauthentication for tilde prefix expansion errors#51649

Merged
rosstimothy merged 1 commit intobranch/v17from
bot/backport-51464-branch/v17
Jan 30, 2025
Merged

[v17] Prevent reauthentication for tilde prefix expansion errors#51649
rosstimothy merged 1 commit intobranch/v17from
bot/backport-51464-branch/v17

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #51464 to branch/v17

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 the no-changelog Indicates that a PR does not require a changelog entry label Jan 30, 2025
@github-actions github-actions Bot requested review from Joerger and nklaassen January 30, 2025 15:13
@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/v17 with commit 400cefa Jan 30, 2025
@rosstimothy rosstimothy deleted the bot/backport-51464-branch/v17 branch January 30, 2025 17:21
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