teleport/api
Andrew LeFevre d4b3afe9a1
split recording session events and emitting audit events (#27873)
* 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
2023-07-11 19:53:33 +00:00
..
breaker Update jonboulle/clockwork to 0.4.0 (#24099) 2023-04-13 20:04:38 +00:00
client split recording session events and emitting audit events (#27873) 2023-07-11 19:53:33 +00:00
constants Add support for automatic database users for Postgres (#25614) 2023-05-18 23:22:14 +00:00
defaults Reduce DefaultIdleTimeout to 30s (#23943) 2023-03-31 23:19:13 +00:00
fixtures Move ALPN dialer, ALPN conn upgrade, Ping conn to api (#23860) 2023-04-03 14:16:30 +00:00
gen/proto/go Machine ID: Add guides to the Enroll Integration page (#28646) 2023-07-10 13:27:52 +00:00
identityfile Client store generalization (#19420) 2023-01-06 01:34:04 +00:00
internalutils spell fixes (#19419) 2022-12-16 19:01:28 +00:00
metadata Enable GCI linter (#17894) 2022-10-28 20:20:28 +00:00
observability/tracing Reduce login latency (#28499) 2023-07-05 15:51:56 +00:00
profile Fix an issue kube local proxy requirement is wrong in separate port mode (#27634) 2023-06-12 13:49:09 +00:00
proto Add usage-based feature values for Device Trust (#28919) 2023-07-11 17:25:00 +00:00
testhelpers Fix an issue ALPN handshake test does not respect "HTTPS_PROXY" (#27583) 2023-06-13 15:30:48 +00:00
types split recording session events and emitting audit events (#27873) 2023-07-11 19:53:33 +00:00
utils Script to configure IAM for the DeployService (#28436) 2023-07-04 15:10:00 +00:00
go.mod Batched Dependabot updates (#28863) 2023-07-10 15:07:46 +00:00
go.sum Batched Dependabot updates (#28863) 2023-07-10 15:07:46 +00:00
import_compute.go Batched Dependabot updates (#28007) 2023-06-20 17:58:13 +00:00
version.go Bump dev version to 14 (#24704) 2023-04-18 06:49:34 +00:00