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

[v10] auditlog: fix panic during concurrent streams of the same session #15360

Merged
merged 3 commits into from
Aug 12, 2022

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Aug 9, 2022

The code attempts to wait on an existing download if one is already
in progress rather than starting a concurrent download of the same
session. If this code path runs, we incorrectly defer a call to a
nil function, triggering a panic.

This bug was introduced in #7360.

In some cases, an auth server can see a response from the uploader
with an empty session ID. If this is the case, skip emitting the
session end and upload events, as there's no action to take.

This scenario can happen when multiple auth servers are running
upload completers and working on the same uploads simultaneously.

Forward port of #15348

@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log backport labels Aug 9, 2022
…5348)

The code attempts to wait on an existing download if one is already
in progress rather than starting a concurrent download of the same
session. If this code path runs, we incorrectly defer a call to a
nil function, triggering a panic.

This bug was introduced in #7360.

In some cases, an auth server can see a response from the uploader
with an empty session ID. If this is the case, skip emitting the
session end and upload events, as there's no action to take.

This scenario can happen when multiple auth servers are running
upload completers and working on the same uploads simultaneously.
@zmb3 zmb3 force-pushed the zmb3/v10-fix-auditlog-stream-panic branch from 7e7d858 to b4a55d9 Compare August 12, 2022 14:19
@zmb3 zmb3 enabled auto-merge (squash) August 12, 2022 14:20
@zmb3 zmb3 merged commit d84e45e into branch/v10 Aug 12, 2022
@zmb3 zmb3 deleted the zmb3/v10-fix-auditlog-stream-panic branch August 12, 2022 15:35
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants