mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 01:03:40 +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 |
||
---|---|---|
.. | ||
bytecode | ||
audit.go | ||
config.go | ||
fuzz_test.go | ||
manager.go | ||
network.go | ||
nop.go | ||
restricted.go | ||
restricted_test.go | ||
watcher.go |