mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 18:27:19 +00:00
Make rejectUnauthorized true if ca cert is passed for k8s auth method
This commit is contained in:
@@ -115,11 +115,9 @@ export const identityKubernetesAuthServiceFactory = ({
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Bearer ${tokenReviewerJwt}`
|
Authorization: `Bearer ${tokenReviewerJwt}`
|
||||||
},
|
},
|
||||||
...(caCert && {
|
httpsAgent: new https.Agent({
|
||||||
httpsAgent: new https.Agent({
|
ca: caCert,
|
||||||
ca: caCert,
|
rejectUnauthorized: !!caCert
|
||||||
rejectUnauthorized: true
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user