Files
teleport/lib/auth
Tim Buckley 86c568a475 Add GetEmitter() to allow proper emitter wrapping for PreHog (#19356)
* Add `GetEmitter()` to allow proper emitter wrapping for PreHog

This is part of a fix for the PreHog usage reporter to resolve a bug
where an improper emitter implementation was wrapped, potentially
replacing a valid set of emitters. A new `GetEmitter` function is
added to `Server` to allow fetching of the correct implementation
so it can be wrapped overwritten sensibly.

Additionally, this changes the signature of `UsageLogger.New()` to
require just an `events.Emitter` interface rather than an `IAuditLog`
specifically.

Finally, this fixes a small bug in the PreHog submitter where failed
events were accidentally dropped too early.

* Add godoc for GetEmitter/SetEmitter

* Add warnings to godoc for SetEmitter and SetUsageReporter
2022-12-14 18:03:44 +00:00
..
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-12-12 19:34:53 +00:00
2022-11-01 12:15:10 +00:00
2022-12-05 17:13:54 +00:00
2022-10-28 20:20:28 +00:00
2022-11-28 21:07:57 +00:00
2022-12-12 19:34:53 +00:00
2022-10-28 20:20:28 +00:00
2022-12-06 15:50:52 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-12-02 20:30:52 +00:00
2022-10-28 20:20:28 +00:00
2022-12-12 19:34:53 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00