[helm/teleport-cluster] Add audience into serviceAccountToken for proxy service #49756
Labels
bug
feature-request
Used for new features in Teleport, improvements to current should be #enhancements
What would you like Teleport to do?
We need to add the
audience
with the value{{ .Values.clusterName }}
to the projectedserviceAccountToken
in theteleport-proxy
deployment in theteleport-cluster
helm chart.What problem does this solve?
After backporting changes that allow the kubernetes in-cluster joining mechanism to use tokens with the
clusterName
specified in theaudience
, authorization forteleport-proxy
in GKE (Google Cloud Kubernetes Engine) clusters breaks.This happens because the
TokenReview
request now includes anaudience
that contains bothhttps://kubernetes.default.svc
andclusterName
. However, in GKE, the default audience for ServiceAccount tokens ishttps://container.googleapis.com/v1/projects/PROJECT/locations/LOCATION/clusters/NAME
. As a result,teleport-auth
rejects the token fromteleport-proxy
.It is necessary to explicitly specify the audience in the Deployment configuration to include
clusterName
, as it is already done in the chart for tbot.The text was updated successfully, but these errors were encountered: