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

Fixes panic in service account policy rollback #121

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

austingebauer
Copy link
Member

Overview

This PR fixes a panic in serviceAccountPolicyRollback by restoring a nil check that was removed in #107.

See that the nil check existed in the PR diff.

Testing

I was able to reproduce the issue and verify that the panic no longer occurs by causing a partial failure when creating a roleset.

Steps taken:

  1. Create a new roleset
  2. Hit debug breakpoint before storage write
  3. Stop Vault storage (postgresql container)
  4. Play through debug breakpoint causing storage write failure
  5. Start Vault storage
  6. Wait for WAL rollback to step through serviceAccountPolicyRollback behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants