forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cloud Security] [Agentless] Improving error log metadata and sending…
… APM trace id (elastic#192235) ## Summary This PR includes a few improvements in the communication between Kibana and the Agentless API. - Adding a `X-Request-ID` Header on all HTTP calls from the Kibana server to the Agentless API. X-Request-ID is the [currentTraceparent](https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-current-traceparent) string captured from Apm Service and is unique per request. - Also, this PR enhances some error logs metadata with the relevant fields, and all documents logged to ES also includes the [trace.id](https://www.elastic.co/guide/en/ecs/8.11/ecs-tracing.html) field - Also this PR redacts the fleet token sent to the debug logs to prevent credential leaking
- Loading branch information
Showing
3 changed files
with
275 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.