Skip to content

[v14] Fix tsh kube credentials when root cluster roles don't allow Kube access#33210

Merged
tigrato merged 3 commits intobranch/v14from
bot/backport-33014-branch/v14
Oct 10, 2023
Merged

[v14] Fix tsh kube credentials when root cluster roles don't allow Kube access#33210
tigrato merged 3 commits intobranch/v14from
bot/backport-33014-branch/v14

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Oct 10, 2023

Backport #33014 to branch/v14

tigrato and others added 3 commits October 10, 2023 13:51
…ccess

This PR fixes an edge case where an error message is printed to the
users without proper knowledge of the role mappings between root and
leaf clusters.

The user certificates include the `kubernetes_users` and
`kubernetes_groups` allowed in the root cluster but nothing prevents the
access to be sucessfull if the leaf cluster roles after the mapping
introduce the kubernetes principals.

This PR prevents tsh from failing when generating certificates for leaf
Kubernetes clusters.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
@github-actions github-actions Bot added backport size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Oct 10, 2023
@tigrato tigrato enabled auto-merge October 10, 2023 16:29
@tigrato tigrato added this pull request to the merge queue Oct 10, 2023
Merged via the queue into branch/v14 with commit d9f349c Oct 10, 2023
@tigrato tigrato deleted the bot/backport-33014-branch/v14 branch October 10, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport size/sm tsh tsh - Teleport's command line tool for logging into nodes running Teleport.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants