-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Disappearing session.start event when using tsh ssh
command execution
#13622
Comments
pschisa
added
bug
audit-log
Issues related to Teleports Audit Log
c-nx
Internal Customer Reference
labels
Jun 17, 2022
End user confirmed the event is no longer present via the Go API I have confirmed in my recreate that the session.start event is present during command executing in DynamoDB and no longer present in the DynamoDB events table after the command is completed with the same session ID |
rosstimothy
added a commit
that referenced
this issue
Dec 16, 2022
The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
rosstimothy
added a commit
that referenced
this issue
Dec 19, 2022
) * Prevent "session.start" from being overwritten by "session.exec" The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
github-actions bot
pushed a commit
that referenced
this issue
Dec 19, 2022
The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
github-actions bot
pushed a commit
that referenced
this issue
Dec 19, 2022
The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
rosstimothy
added a commit
that referenced
this issue
Dec 19, 2022
#19496) * Prevent "session.start" from being overwritten by "session.exec" The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
rosstimothy
added a commit
that referenced
this issue
Dec 19, 2022
#19497) * Prevent "session.start" from being overwritten by "session.exec" The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
rosstimothy
added a commit
that referenced
this issue
Dec 19, 2022
) The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
rosstimothy
added a commit
that referenced
this issue
Dec 21, 2022
…#19499) The `session.exec` event was not being passed through the session recorder, which resulted in said event having an event index of 0. This caused the original `session.start` event which also has an `eid` of 0 to be overwritten by the `session.exec` event. By emitting the `session.exec` event via the same mechanism as the `session.start` event it gets a proper event index and no longer overwrites the `session.start`. Closes #13622
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior:
Audit logs in general will never be deleted after created.
Current behavior:
The session.start event for a command execution is deleted from the audit log upon completion of the command session.
Bug details:
tsh ssh
command:tsh ssh -t <user@server> top
q
The text was updated successfully, but these errors were encountered: