diff --git a/backend/src/ee/services/pam-resource/kubernetes/kubernetes-resource-factory.ts b/backend/src/ee/services/pam-resource/kubernetes/kubernetes-resource-factory.ts index fcfca61cf..5fb4516fe 100644 --- a/backend/src/ee/services/pam-resource/kubernetes/kubernetes-resource-factory.ts +++ b/backend/src/ee/services/pam-resource/kubernetes/kubernetes-resource-factory.ts @@ -51,7 +51,8 @@ export const executeWithGateway = async ( } const httpsAgent = new https.Agent({ ca: connectionDetails.sslCertificate, - rejectUnauthorized: connectionDetails.sslRejectUnauthorized + rejectUnauthorized: connectionDetails.sslRejectUnauthorized, + servername: targetHost }); return withGatewayV2Proxy( async (proxyPort) => {