-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Avoid unseal failure if plugin backends fail to setup during postUnseal #3686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small comment, otherwise 👍
// If we encounter an error instantiating the backend due to an error, | ||
// skip backend initialization but register the entry to the mount table | ||
// to preserve storage and path. | ||
c.logger.Warn("core: skipping plugin-based credential entry", "path", entry.Path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we output the error here so the user knows why it failed (plugin missing, bad SHA, etc.), and the same for mounts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error is printed out up top in https://github.com/hashicorp/vault/pull/3686/files#diff-444ea30b36f7a95d6672fd6fd9b7a87cR461.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pfft, obviously @bk, duh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha, I even looked there and thought "Oh, it's only printing out the path", missed the error somehow :)
* oss/master: Defer reader.Close that is used to determine sha256 changelog++ Avoid unseal failure if plugin backends fail to setup during postUnseal (#3686) Add logic for using Auth.Period when handling auth login/renew requests (#3677) plugins/database: use context with plugins that use database/sql package (#3691) changelog++ Fix plaintext backup in transit (#3692) Database gRPC plugins (#3666)
Fixes #3602