-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix regression on Core.pluginDirectory when backend is builtin #15027
Conversation
We should backport this all the way to 1.8.x as well. |
Is there a good way to add a test for this regression? |
@swenson I think it is a good idea. I will look into that. |
@calvn Looks like those backports were either closed or reverted. |
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.
LGTM; thanks for adding the tests!
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.
One question, but otherwise looks good! Thanks for adding the tests!
* fix dev-plugin-dir when backend is builtin * use builtinRegistry.Contains * revert aa76337 * use correct plugin type for logical backend after revert * fix factory func default setting after revert * add ut coverage for builtin plugin with plugin directory set * add coverage for secrets plugin type * use totp in tests to avoid test import cycle in ssh package * use nomad in tests to avoid test import cycle * remove secrets mount tests due to unavoidable test import cycle
* fix dev-plugin-dir when backend is builtin * use builtinRegistry.Contains * revert aa76337 * use correct plugin type for logical backend after revert * fix factory func default setting after revert * add ut coverage for builtin plugin with plugin directory set * add coverage for secrets plugin type * use totp in tests to avoid test import cycle in ssh package * use nomad in tests to avoid test import cycle * remove secrets mount tests due to unavoidable test import cycle
* fix dev-plugin-dir when backend is builtin * use builtinRegistry.Contains * revert aa76337 * use correct plugin type for logical backend after revert * fix factory func default setting after revert * add ut coverage for builtin plugin with plugin directory set * add coverage for secrets plugin type * use totp in tests to avoid test import cycle in ssh package * use nomad in tests to avoid test import cycle * remove secrets mount tests due to unavoidable test import cycle
Fix a regression on
Core.pluginDirectory
. When enabling a secrets/auth plugin, vault looks in theCore.pluginDirectory
if thedev-plugin-dir
flag orplugin_directory
config is set and fails if it doesn’t find it.The following error would occur when the
dev-plugin-dir
flag orplugin_directory
config was set on a vault server: