Skip to content

[v14] Refactor desktop audit event emission#33316

Merged
zmb3 merged 2 commits intobranch/v14from
bot/backport-33189-branch/v14
Oct 13, 2023
Merged

[v14] Refactor desktop audit event emission#33316
zmb3 merged 2 commits intobranch/v14from
bot/backport-33189-branch/v14

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Oct 11, 2023

Backport #33189 to branch/v14

Our methods for emitting audit events take 10 arguments already,
and we need to add more as part of the work in #30417. To make
this more manageable, create an auditor struct that will hold on
to state that is shared for all audit events in a session (ID,
user identity, the desktop we're connecting to, etc.)

As a result, the "audit cache" for directory sharing events is
also simplified - we now create one of these per-session rather
than maintaining one large cache for all sessions.
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from probakowski October 11, 2023 20:02
@zmb3 zmb3 enabled auto-merge October 13, 2023 00:31
@zmb3 zmb3 added this pull request to the merge queue Oct 13, 2023
Merged via the queue into branch/v14 with commit 131aff8 Oct 13, 2023
@zmb3 zmb3 deleted the bot/backport-33189-branch/v14 branch October 13, 2023 01:12
@camscale camscale mentioned this pull request Oct 16, 2023
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.

3 participants