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

builtin/database: fix creds rotation panic for nil resp #9258

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

jasonodonnell
Copy link
Contributor

A panic occurs if resp is a nil pointer in the event of a password rotation failure. Added a small check if resp is nil before trying to extract WAL ID from it.

@jasonodonnell jasonodonnell added the bug Used to indicate a potential bug label Jun 18, 2020
@jasonodonnell jasonodonnell added this to the 1.4.3 milestone Jun 18, 2020
@jasonodonnell jasonodonnell requested a review from a team June 18, 2020 16:23
@jasonodonnell
Copy link
Contributor Author

Similar bug in OpenLDAP secret engine: hashicorp/vault-plugin-secrets-openldap#14

@jasonodonnell jasonodonnell merged commit 3447871 into master Jun 18, 2020
@jasonodonnell jasonodonnell deleted the database-rotate-panic branch June 18, 2020 17:49
catsby added a commit that referenced this pull request Jun 19, 2020
* master: (31 commits)
  changelog++
  changelog++
  Ui/replication status discoverability (#8705)
  Update CHANGELOG.md
  Counter that increments on every secret engine lease creation. (#9244)
  Add password_policy field to Azure docs (#9249)
  Replaced ClusterMetricSink's cluster name with an atomic.Value. (#9252)
  Fix database creds rotation panic for nil resp (#9258)
  changelog++
  changelog++
  Move sdk/helper/random -> helper/random (#9226)
  UI: Disallow kv2 with too large 'max versions' value (#9242)
  Allow mTLS for mysql secrets engine (#9181)
  docs: add sample revocation for mongodb (#9245)
  Add new Telemetry config options (#9238)
  Add a simple sealed gauge, updated when seal status changes (#9177)
  Test Shamir-to-Transit and Transit-to-Shamir Seal Migration for post-1.4 Vault. (#9214)
  Configure metrics wrapper with the "global" object, not just the fanout. (#9099)
  changelog++
  Add backend type to audit logs (#9167)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport bug Used to indicate a potential bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants