Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Add an event for when a session recording is accessed#970

Merged
ryanclark merged 8 commits into
masterfrom
ryan/add-session-recording-view-event
Aug 15, 2022
Merged

Add an event for when a session recording is accessed#970
ryanclark merged 8 commits into
masterfrom
ryan/add-session-recording-view-event

Conversation

@ryanclark
Copy link
Copy Markdown
Member

@ryanclark ryanclark commented Jul 11, 2022

As part of gravitational/teleport#13880, a new event has been added (SESSION_RECORDING_ACCESS, code T2011I).

This adds it to the frontend so it displays correctly -
image

image

Comment thread packages/teleport/src/services/audit/makeEvent.ts Outdated
@ryanclark ryanclark changed the title Add an event for when a session recording is viewed Add an event for when a session recording is accessed Jul 13, 2022
color="light"
font-size="3"
/>
App Session Started
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Confused as to why this would be removed given this change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It looks like APP_SESSION_START has the same event code:

APP_SESSION_START: 'T2007I',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, turns out I missed the second block of session events (gravitational/teleport#14302 (review)) - I'll change the code

Copy link
Copy Markdown
Contributor

@kimlisa kimlisa left a comment

Choose a reason for hiding this comment

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

i think it's worth to add instructions on how to add events on our root README, it's a very common addition (and various devs come in to add them) and the steps are all the same as well as the files touched, see example here: #561,

the instructions are also detailed in this file:

* eventCodes is a map of event codes.
, but i guess it's hard to see

@zmb3
Copy link
Copy Markdown
Contributor

zmb3 commented Aug 12, 2022

@ryanclark is there any work left here? We can merge this at any time (backend doesn't need to be ready)

@ryanclark
Copy link
Copy Markdown
Member Author

@ryanclark is there any work left here? We can merge this at any time (backend doesn't need to be ready)

@zmb3 Yeah it's ready to go, I'll sort it out in a couple of hours once I'm at my MacBook

@ryanclark ryanclark force-pushed the ryan/add-session-recording-view-event branch from 4b0b466 to 2dae3ed Compare August 15, 2022 18:03
@ryanclark ryanclark enabled auto-merge (squash) August 15, 2022 18:03
@ryanclark ryanclark merged commit 676a076 into master Aug 15, 2022
@ryanclark ryanclark deleted the ryan/add-session-recording-view-event branch August 15, 2022 18:10
ryanclark added a commit to gravitational/teleport that referenced this pull request Aug 22, 2022
This adds a new SessionRecordingAccess event that is emitted every time a session's events are queried, or if a session's events are streamed.

This event is emitted by both v1 and v2 of the API, so both the web UI and tsh play will result in an event in the audit log.

Implements #13880.

The frontend change for supporting this event type is here - gravitational/webapps#970.
ryanclark added a commit to gravitational/teleport that referenced this pull request Aug 22, 2022
This adds a new SessionRecordingAccess event that is emitted every time a session's events are queried, or if a session's events are streamed.

This event is emitted by both v1 and v2 of the API, so both the web UI and tsh play will result in an event in the audit log.

Implements #13880.

The frontend change for supporting this event type is here - gravitational/webapps#970.
ryanclark added a commit to gravitational/teleport that referenced this pull request Aug 22, 2022
This adds a new SessionRecordingAccess event that is emitted every time a session's events are queried, or if a session's events are streamed.

This event is emitted by both v1 and v2 of the API, so both the web UI and tsh play will result in an event in the audit log.

Implements #13880.

The frontend change for supporting this event type is here - gravitational/webapps#970.
ryanclark added a commit to gravitational/teleport that referenced this pull request Aug 30, 2022
This adds a new SessionRecordingAccess event that is emitted every time a session's events are queried, or if a session's events are streamed.

This event is emitted by both v1 and v2 of the API, so both the web UI and tsh play will result in an event in the audit log.

Implements #13880.

The frontend change for supporting this event type is here - gravitational/webapps#970.
ryanclark added a commit to gravitational/teleport that referenced this pull request Aug 30, 2022
Record when a session recording is accessed

This adds a new SessionRecordingAccess event that is emitted every time a session's events are queried, or if a session's events are streamed.

This event is emitted by both v1 and v2 of the API, so both the web UI and tsh play will result in an event in the audit log.

Implements #13880.

The frontend change for supporting this event type is here - gravitational/webapps#970.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants