Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] [Cloud Security] [Agentless] Improving error log metadata and sending APM trace id (#192235) #193901

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

… 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

(cherry picked from commit 10bcc62)
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #13 / Category renders the category field correctly

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @opauloh

@kibanamachine kibanamachine merged commit be2edae into elastic:8.x Sep 24, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants