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

[v15] Enrich audit events with server information #48835

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #48475 to branch/v15

Changelog: Ensure that agentless server information is provided in all audit events

Subsystem events did not include ServerMetadata, which results in
any events generated for agentless hosts to contain limited
information. For example, any sftp subsystem requests made in
response to tsh scp for agentless nodes provided information about
the proxy forwarding the requests, but no information about the
target host.

Additionally, the way ServerMetadata information was being populated
by using the ServerContext overrode only a subset of the information
that was available. This lead to SessionData events emitted when
an sftp operation was completed not populating any relevant information
about agentless nodes either. To avoid this going forward, the
GetServerMetadata receiver has been removed from ServerContext and
instead the TargetMetadata must be used from the appropriate SSH
server, which already populates the relevant information without
omitting any.
@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log size/sm labels Nov 12, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48835.d1v2yqnl3ruxch.amplifyapp.com

@rosstimothy rosstimothy added this pull request to the merge queue Nov 13, 2024
Merged via the queue into branch/v15 with commit 399d7d6 Nov 13, 2024
39 of 40 checks passed
@rosstimothy rosstimothy deleted the tross/backport-48475/v15 branch November 13, 2024 04:33
@camscale camscale mentioned this pull request Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit-log Issues related to Teleports Audit Log backport size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants