Skip to content

[v13] Allow RoleRemoteProxy to list kube_servers when cluster isn't licensed for Kubernetes#25492

Merged
tigrato merged 1 commit intobranch/v13from
bot/backport-25461-branch/v13
May 3, 2023
Merged

[v13] Allow RoleRemoteProxy to list kube_servers when cluster isn't licensed for Kubernetes#25492
tigrato merged 1 commit intobranch/v13from
bot/backport-25461-branch/v13

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented May 2, 2023

Backport #25461 to branch/v13

When a remote proxy retrieves the list of kube clusters available in the
remote cluster and the remote cluster isn't licensed, the request fails because the remote proxy role was not
whitelisted. This PR does not return the license error if the requester is a local or remote server.

This PR also disables the `kubernetes_service` on startup if the cluster is
not licensed for Kubernetes access.

This prevents the process from being in the degraded state when trying to
upsert the `kube_server` via heartbeat.
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fspmarshall May 3, 2023 09:12
@tigrato tigrato added this pull request to the merge queue May 3, 2023
Merged via the queue into branch/v13 with commit 3941308 May 3, 2023
@tigrato tigrato deleted the bot/backport-25461-branch/v13 branch May 3, 2023 09:36
@r0mant r0mant mentioned this pull request Jul 14, 2023
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