Skip to content

Use the correct emitter in auth.TLSServer#25265

Merged
espadolini merged 1 commit intomasterfrom
espadolini/tlsserver-emitter
Apr 27, 2023
Merged

Use the correct emitter in auth.TLSServer#25265
espadolini merged 1 commit intomasterfrom
espadolini/tlsserver-emitter

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR adds an explicit implementation of apievents.Emitter to auth.Server, which delegates the call to EmitAuditEvent to the emitter of the auth server; this is then used to pass the auth server itself to the auth.TLSServer as the emitter, which lets future calls to (*auth.Server).SetEmitter actually take effect on anything that grabs the emitter from the auth.TLSServer (as it's the case with all the plugins).

Fixes gravitational/teleport.e#1221

@espadolini espadolini added this pull request to the merge queue Apr 27, 2023
Merged via the queue into master with commit c5a720a Apr 27, 2023
@espadolini espadolini deleted the espadolini/tlsserver-emitter branch April 27, 2023 16:20
@public-teleport-github-review-bot
Copy link
Copy Markdown

@espadolini See the table below for backport results.

Branch Result
branch/v11 Failed
branch/v12 Create PR
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants