Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v14] fix: panic in external audit watcher #36301

Merged
merged 1 commit into from Jan 5, 2024

Conversation

nklaassen
Copy link
Contributor

Backport #36298 to branch/v14

changelog: Fixed potential panic after backend watcher failure.

This commit fixes a possible panic in the cluster External Audit watcher
that can occur whenever the underlying backend watcher closes
unexpectedly, and resulted in a double-close of the `initialized`
channel.

This fix here is to switch from closing an "initialized" channel
whenever a watcher is initialized, to periodically writing to a
"running" channel during the events watch loop, whenever there is a
listener waiting on the channel.
This is what some other watchers (e.g. HeadlessAuthenticationWatcher)
already do, and allow for the test to wait for the new watcher to init
after simulating a failed watcher.

Changelog: Fixed potential panic after backend watcher failure.
@nklaassen nklaassen added this pull request to the merge queue Jan 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 4, 2024
@nklaassen nklaassen added this pull request to the merge queue Jan 4, 2024
Merged via the queue into branch/v14 with commit a60fbfa Jan 5, 2024
26 checks passed
@nklaassen nklaassen deleted the bot/backport-36298-branch/v14 branch January 5, 2024 00:09
@camscale camscale mentioned this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants