Files
teleport/lib/service
Tiago Silva 3ad31fb222 Kubernetes License check for Kubernetes Proxies (#24543)
* Kubernetes License check for root clusters

This PR ensures that a given Teleport root cluster is licensed for
Kubernetes access when forwarding credentials to leaf clusters.

Previously, the root Kube proxy would call auth server to generate a new
cert-key pair with the user identity and during the call Auth ensured
that it was licensed for Kubernetes usage. Given the recent developments
for #22533, the call mentioned was removed and it's now possible for a
root enterprise cluster to forward requests to a OSS leaf cluster
without validating its license.

Auth server already enforces Kubernetes license for Kubernetes service
when it tries to heartbeat the cluster. If the cluster is not properly
licensed, it's not possible to register kubernetes clusters.

Part of #22533

* remove watcher and use in process.getClusterFeatures callback

* add test to validate kube api license enforcement

* move err code to forbidden
2023-04-18 09:37:14 +00:00
..
2023-03-30 16:31:46 +00:00
2022-04-26 22:16:55 +00:00