Missing Patch function in api/logical.go #12330
Labels
core/secret
devex
Developer Experience
enhancement
internal
Mark for internal discussion/implementation
secret/kv
Is your feature request related to a problem? Please describe.
I was trying to append secrets to a file path using kv version 2 and that worked as expected using the
patch
command from the CLI. However, while using go api, I can see there is no function available for the same.Describe the solution you'd like
By implementing a
Patch
in logical.go, I should be able to do the following to send the patch requests:I am novice to vault so if for any reason this doesn't make sense, please do help me out in comments below!
Describe alternatives you've considered
Alternative is to fetch all the secrets, append new ones and send a put request. However this will require some control as this might fail while running multiple independent processes of the server which is storing secrets to vault.
The text was updated successfully, but these errors were encountered: