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

[v12] Fix relaxed moderator joining for Kube Access #23993

Merged
merged 1 commit into from Apr 13, 2023

Conversation

tigrato
Copy link
Contributor

@tigrato tigrato commented Apr 3, 2023

Backport #23674 to branch/v12

@tigrato tigrato enabled auto-merge April 11, 2023 18:52
This PR fixes the relaxed mode for moderator joining moderated sessions.

Previously, when the moderator didn't had access to the Kubernetes
cluster where the session he tried to join was active, Teleport would
panic because the user didn't had at least one `kubernetes_user` or
`kubernetes_group`.

This PR moves the check of kubernetes principals into the autorization
step instead of the authentication step in order to prevent the failure
of authentication followed by a panic.
@tigrato tigrato force-pushed the tigrato/fix-kube-relaxed-moderator-v12 branch from a9ca0de to 8a9be3f Compare April 13, 2023 08:48
@tigrato tigrato added this pull request to the merge queue Apr 13, 2023
Merged via the queue into branch/v12 with commit 705b5a1 Apr 13, 2023
16 checks passed
@tigrato tigrato deleted the tigrato/fix-kube-relaxed-moderator-v12 branch April 13, 2023 09:35
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.

None yet

3 participants