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

[v16] [kube] return Kubernetes API errors when using Websocket API #46811

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Sep 20, 2024

Backport #46796 to branch/v16

changelog: Fixes a regression where Teleport swallowed Kubernetes API errors when using kubectl exec with a Kubernetes cluster newer than v1.30.0.

Kubernetes 1.30 introduced a new Remote Command protocol that uses WebSockets, replacing the deprecated SPDY protocol. The new executor protocol didn't returned the status error when API call failed.

For Teleport, this creates an issue because permission errors are absorbed by the WebSocket executor and were never passed to users.

This pull request implements a status parser for websocket Kubernetes API error.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato added this pull request to the merge queue Sep 20, 2024
Merged via the queue into branch/v16 with commit f3eaa78 Sep 20, 2024
41 checks passed
@tigrato tigrato deleted the bot/backport-46796-branch/v16 branch September 20, 2024 17:18
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.

3 participants