mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 09:44:51 +00:00
d4b3afe9a1
* split recording session events and emitting audit events This is a refactor of how audit events and session events are handled. Previously, all events were emitted using the same interface, api/types/events.Emitter. This lead to event-related code getting to be very confusing, as it was often unclear whether a given event was being recorded as a session event and emitted as an audit event, or only one of the two. Naturally, a few bugs arose due to this. To simplify event handling, a separate interface for recording session events has been created. A api/types/events.Recorder should now only be used to record session events, and an Emitter should now only be used to emit audit events. Instead of using a confusing TeeWriter that would transparently (and confusingly, given its name) hold a few event types that only belonged in session recordings, callers can now explicitly record and/or emit an event when necessary. * ensure e build won't break |
||
---|---|---|
.. | ||
breaker | ||
client | ||
constants | ||
defaults | ||
fixtures | ||
gen/proto/go | ||
identityfile | ||
internalutils | ||
metadata | ||
observability/tracing | ||
profile | ||
proto | ||
testhelpers | ||
types | ||
utils | ||
go.mod | ||
go.sum | ||
import_compute.go | ||
version.go |