Merge pull request #2811 from Infisical/fix/address-custom-audience-kube-native-auth

fix: address custom audience issue
This commit is contained in:
Sheen
2024-11-29 03:55:50 +08:00
committed by GitHub

View File

@@ -120,7 +120,8 @@ export const identityKubernetesAuthServiceFactory = ({
apiVersion: "authentication.k8s.io/v1", apiVersion: "authentication.k8s.io/v1",
kind: "TokenReview", kind: "TokenReview",
spec: { spec: {
token: serviceAccountJwt token: serviceAccountJwt,
...(identityKubernetesAuth.allowedAudience ? { audiences: [identityKubernetesAuth.allowedAudience] } : {})
} }
}, },
{ {