Skip to content

Populate GOAWAY response body#61264

Merged
rosstimothy merged 1 commit intomasterfrom
tross/kube_goaway_body
Nov 14, 2025
Merged

Populate GOAWAY response body#61264
rosstimothy merged 1 commit intomasterfrom
tross/kube_goaway_body

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Follow up to #61142 which sets the response body so that clients which only look at the reason and not the headers will behave appropriately.

@rosstimothy rosstimothy force-pushed the tross/kube_goaway_body branch from bf398a4 to 3a8e456 Compare November 11, 2025 22:35
@rosstimothy rosstimothy marked this pull request as ready for review November 12, 2025 13:28
@github-actions github-actions bot requested review from camscale and kimlisa November 12, 2025 13:28
@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Nov 12, 2025
Copy link
Copy Markdown
Contributor

@smallinsky smallinsky left a comment

Choose a reason for hiding this comment

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

LGTM once the https://github.com/gravitational/teleport/pull/61264/files#r2518381718 (changing the header after the rw.WriteHeader(http.StatusTooManyRequests) was called) will be addressed

@rosstimothy
Copy link
Copy Markdown
Contributor Author

Friendly ping reviewers

Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
@rosstimothy rosstimothy force-pushed the tross/kube_goaway_body branch from 8922336 to 9a90d92 Compare November 14, 2025 23:18
@rosstimothy rosstimothy added this pull request to the merge queue Nov 14, 2025
Merged via the queue into master with commit 94de198 Nov 14, 2025
42 checks passed
@rosstimothy rosstimothy deleted the tross/kube_goaway_body branch November 14, 2025 23:57
rosstimothy added a commit that referenced this pull request Nov 17, 2025
Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
rosstimothy added a commit that referenced this pull request Nov 17, 2025
Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
rosstimothy added a commit that referenced this pull request Nov 17, 2025
Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
github-merge-queue bot pushed a commit that referenced this pull request Nov 17, 2025
* Kubernetes: Handle GOAWAY requests

This is an attempt to address #57766.

When a request is terminated because the upstream Kubernetes API
Server GOAWAY chance is exceeded, clients are informed to retry
by replying with a 429 status code and a Retry-After header.

This deviates from the approaches taken in
#57881 and
#60695 to favor
simplicity and avoid buffering request data in a teleport process.
The downside to this approach is that it requires clients to properly
handle retry requests.

* Populate GOAWAY response body (#61264)

Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
github-merge-queue bot pushed a commit that referenced this pull request Nov 17, 2025
* Kubernetes: Handle GOAWAY requests

This is an attempt to address #57766.

When a request is terminated because the upstream Kubernetes API
Server GOAWAY chance is exceeded, clients are informed to retry
by replying with a 429 status code and a Retry-After header.

This deviates from the approaches taken in
#57881 and
#60695 to favor
simplicity and avoid buffering request data in a teleport process.
The downside to this approach is that it requires clients to properly
handle retry requests.

* Populate GOAWAY response body (#61264)

Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kubernetes-access 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