[Response Ops][Connectors] Adding allowPartialTrustChain for connector usage reporting task (#214193)

## Summary

We need to pass this option to allow the CA certificate to be used for
pushing to the usage API.
This commit is contained in:
Ying Mao 2025-03-13 11:17:19 -04:00 committed by GitHub
parent 14871c31aa
commit 811d7cb4d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -298,6 +298,8 @@ export class ConnectorUsageReportingTask {
headers: { 'Content-Type': 'application/json' },
timeout: CONNECTOR_USAGE_REPORTING_TASK_TIMEOUT,
httpsAgent: new https.Agent({
// @ts-expect-error option added to node 20.18.0 but @types/node has not been updated to reflect this
allowPartialTrustChain: true,
ca: this.caCertificate,
}),
});