Closed aphorise closed 2 years ago
I realise that a deregister may take longer and require additional checks by way of a restart to properly confirm - making this request not as effective even if it were possible.
There are other areas of Vault (like raft join) where a success if returned wherever an API call is correctly made but the connection can not be left pending till it's confirmed (reload + list catalogue).
Closing - I've change my mind on this issue and I understand it in a different light.
Vault CLI steps for
plugin deregister
always returns a success and what's more compatibility options provided for older versions of Vault that do not require plugin-type to be passed are also impacting deregister especially since requesting a register without a plugin-type is accepted as valid yet similarly attempting a deregister without a plugin-type passed results in the same behaviour and without any complaints or warnings.There's presently no way to determine when a plugin has been successfully deregistered (without an additional listing requests and deductive comparisons)
To Reproduce
Expected behavior Provide contextual responses which express a HTTP-2xx / 0 exit code only when an actually deregister has been successfully performed and also provide any error messages or warnings for plugin-type that must be set for all newer and current Vault versions.
Environment:
vault status
):uname -pisorv ; # Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) GNU/Linux
Vault server configuration file(s):