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

Prevent panic in web app transport #35501

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

rosstimothy
Copy link
Contributor

@rosstimothy rosstimothy commented Dec 7, 2023

The case where no app servers were available was not handled and resulted in exceeding the bounds of the app servers slice. When no servers are available now the slice is set to nil instead of trying to shift it beyond the bounds. A test was added to validate that the panic is not possible any more.

Fixes #35460

Changelog: Prevent panic when dialing a deleted Application Server

The case where no app servers were available was not handled and
resulted in exceeding the bounds of the app servers slice. When
no servers are available now the slice is set to nil instead of
trying to shift it beyond the bounds. A test was added to validate
that the panic is not possible any more.

Fixes #35460
@rosstimothy rosstimothy marked this pull request as ready for review December 7, 2023 19:08
@github-actions github-actions bot requested review from tcsc and tigrato December 7, 2023 19:09
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from tcsc December 7, 2023 20:58
@rosstimothy rosstimothy added this pull request to the merge queue Dec 7, 2023
Merged via the queue into master with commit 1c20bb0 Dec 7, 2023
36 checks passed
@rosstimothy rosstimothy deleted the tross/fix_app_transport_panic branch December 7, 2023 21:25
@public-teleport-github-review-bot

@rosstimothy See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 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.

Http Request to Removed Application Server Craches Cluster
3 participants