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

test for auto user deactivation audit event #41497

Merged

Conversation

GavinFrazar
Copy link
Contributor

This PR updates test cases for database auto user provisioning to ensure that deactivation audit events are being sent.

In my PR that added support for spanner I noticed and fixed an issue where our mock mysql db sends a response that causes a panic right before the mysql user deactivation audit event is emitted.
We have a deferred recover() in our db server, so it didn't cause a test failure but it did silently prevent the audit event.
That panic is probably not realistically going to happen, but I guarded against it anyway.

I didn't extract that extra guard in the mysql code from the spanner PR before merging, so here's this PR which I will backport to v14 along with the mysql panic fix.

I ensured that these test updates fail without the mysql fix.

* expect deactivation audit event
@GavinFrazar GavinFrazar added database-access Database access related issues and PRs backport/branch/v14 no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 labels May 13, 2024
@GavinFrazar GavinFrazar added this pull request to the merge queue May 15, 2024
Merged via the queue into master with commit 76ef907 May 15, 2024
39 of 40 checks passed
@GavinFrazar GavinFrazar deleted the gavinfrazar/test-for-auto-user-deactivation-event branch May 15, 2024 18:06
@public-teleport-github-review-bot

@GavinFrazar See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v14 backport/branch/v15 database-access Database access related issues and PRs no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants