Skip to content

Commit

Permalink
Enable cert validation on Fleet Server health check
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed Nov 14, 2024
1 parent 63b2b6f commit 1fae5dd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x-pack/plugins/fleet/server/routes/health_check/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import https from 'https';

import type { TypeOf } from '@kbn/config-schema';
import fetch from 'node-fetch';
Expand Down Expand Up @@ -83,9 +82,6 @@ export const postHealthCheckHandler: FleetRequestHandler<
accept: '*/*',
},
method: 'GET',
agent: new https.Agent({
rejectUnauthorized: false,
}),
signal: abortController.signal,
});
const bodyRes = await res.json();
Expand Down

0 comments on commit 1fae5dd

Please sign in to comment.