-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cannot unseal vault with wrong plugin checksum #3602
Comments
The same happens when deleting the plugin file, it also complains that it cannot verify the checksum:
|
What version of Vault are you running? |
Im running vault version 0.9.0 |
This issue is closely related to #3266 which might have been closed without being addressed. |
3266 was addressed, it's a different failure mode. One is unmounting, the other is unsealing. |
The comments later in the 3266 thread also touch on the unseal case. Sorry, I was referring to that and not the original case. |
Oh you're right. Yeah, I think the OP problem was addressed but looking at the comments I think we have a decent idea of how to go about this. |
We actually partially addressed the problem for the unseal scenario too (in a7dd937), but only for the case where the plugin is removed from the plugin catalog. If the plugin is removed from the catalog before sealing, during unseal the mount entry will be kept in place, but the backend will not be initialized, and that's where I remember why your wrote your last comment on 3266 (that maybe we should just entirely remove the entry).
|
So I think this issue is more on missing binary (or sha256 mismatch) during unseal or an unmount operation while the plugin is still registered in the plugin catalog. |
Yeah, I think we should just treat any plugin failure (missing, sha mismatch) during postUnseal to behave in that way. |
This issue is probably related to #3241, but covers another failure mode.
When having a vault plugin mounted, if the checksum set in
sys/plugins/catalog/stuff
is wrong, vault cannot be unsealed, and thus, the offending mount cannot be removed, essentially bricking the vault database. The unsealing fails with the following log:Expected Behavior:
Vault should unseal with a warnign and leave the offending mount inacessible. It should be possible to update the checksum and/or remove the mount.
The text was updated successfully, but these errors were encountered: