Skip to content

Refactor AuditTrail for TransportRequests instead of TransportMessage#55141

Merged
albertzaharovits merged 1 commit intoelastic:masterfrom
albertzaharovits:audit-transport-requests
Apr 14, 2020
Merged

Refactor AuditTrail for TransportRequests instead of TransportMessage#55141
albertzaharovits merged 1 commit intoelastic:masterfrom
albertzaharovits:audit-transport-requests

Conversation

@albertzaharovits
Copy link
Copy Markdown
Contributor

This commit refactors the AuditTrail to use the TransportRequest as a parameter for all its audit methods, instead of the current TransportMessage super class.

The goal is to gain access to the TransportRequest#parentTaskId member, so that it can be audited. The parentTaskId is used internally when spawning tasks that handle transport requests. In this way tasks across nodes are related by the same parent task.

Relates #52314

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-security (:Security/Audit)

@jkakavas jkakavas self-requested a review April 14, 2020 07:00
@albertzaharovits
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-sample-unix-docker

Copy link
Copy Markdown
Contributor

@jkakavas jkakavas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@albertzaharovits albertzaharovits merged commit f824049 into elastic:master Apr 14, 2020
@albertzaharovits albertzaharovits deleted the audit-transport-requests branch April 14, 2020 12:50
albertzaharovits added a commit that referenced this pull request Apr 14, 2020
…#55141)

This commit refactors the `AuditTrail` to use the `TransportRequest` as a parameter
for all its audit methods, instead of the current `TransportMessage` super class.

The goal is to gain access to the `TransportRequest#parentTaskId` member,
so that it can be audited. The `parentTaskId` is used internally when spawning tasks
that handle transport requests; in this way tasks across nodes are related by the
same parent task.

Relates #52314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants