You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
vault plugin reload -plugin=my-custom-plugin -global does not reload my-custom-plugin in child namespaces (in the enterprise version).
To Reproduce
Steps to reproduce the behavior:
Enable a custom auth plugin. (i.e. my-custom-plugin) in the root namespace
Read the plugin's config (to force it to run)
Create a child namespace "child"
Enable the custom auth plugin in the child namespace. Again read the child namespace's plugin's config to get it running
Update the plugin catalog with a new version of the custom auth plugin
Run vault plugin reload -plugin=my-custom-plugin -global
Observe only the plugin in the root namespace was reloaded.
Expected behavior
plugin reload -plugin=my-custom-plugin -global should reload the plugin in all namespaces; or there should be a command option to reload the plugin in all namespaces.
Environment:
1.5.3 enterprise (server and cli)
Linux x64:
The text was updated successfully, but these errors were encountered:
Thanks for reaching out! In doing some reading regarding your issue, I've noticed a few things.
First, the docs for plugin reload are incomplete. I've opened a PR to correct this, but in the interim, I wanted to point out that there's no -global flag, but rather -scope=global is the way to trigger a global reload.
From what I can tell, the global plugin reload is not designed to reload plugins within child namespaces. It very specifically only reloads plugins within the same namespace as the request. I think the purpose of global plugin reload is to reload all instances of a plugin across multiple Vault clusters.
@sgmiller please correct me if I've misstated anything here.
I'm going to close this, as I think this feature is working as intended. If you'd like to open an issue as a feature request for having a way to reload a plugin in all namespaces, please feel free to do so.
Then the vault plugin reload -scope=global command isn't a fit for enterprise use.
In the enterprise version, there is only one global catalog of custom plugins in the root namespace (child namespaces use the root namespaces catalog).
If you use the reload command to run a new version of a custom plugin -- its really surprising that you have to run it in all the child namespaces (since the child namespaces are running a different version of the plugin from not being reloaded).
Describe the bug
vault plugin reload -plugin=my-custom-plugin -global does not reload my-custom-plugin in child namespaces (in the enterprise version).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
plugin reload -plugin=my-custom-plugin -global should reload the plugin in all namespaces; or there should be a command option to reload the plugin in all namespaces.
Environment:
The text was updated successfully, but these errors were encountered: