-
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
Add plugin CLI for interacting with the plugin catalog #4911
Add plugin CLI for interacting with the plugin catalog #4911
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.
This is super awesome!
command/plugin_deregister.go
Outdated
helpText := ` | ||
Usage: vault plugin deregister [options] NAME | ||
|
||
Deregister an existing plugin in the catalog. This command requires sudo |
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.
I wonder if this will confuse people into thinking they need to do sudo vault plugin deregister ...
? I don't have a great suggestion for alternative phrasing though, maybe ".. requires a privileged vault user?" but that's true of all vault commands 🤷
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.
Hmm yea - I agree with you. I'm going to remove it because I can see it causing problems.
This PR adds the following commands, docs, and tests:
plugin list
plugin register
plugin deregister
plugin info
It also fixes a small bug I found in the API library.