Files
vault/command
Chris Capurso 6f65a4addc Add HTTP PATCH support to KV (#12687)
* handle HTTP PATCH requests as logical.PatchOperation

* update go.mod, go.sum

* a nil response for logical.PatchOperation should result in 404

* respond with 415 for incorrect MIME type in PATCH Content-Type header

* add abstraction to handle PatchOperation requests

* add ACLs for patch

* Adding JSON Merge support to the API client

* add HTTP PATCH tests to check high level response logic

* add permission-based 'kv patch' tests in prep to add HTTP PATCH

* adding more 'kv patch' CLI command tests

* fix TestHandler_Patch_NotFound

* Fix TestKvPatchCommand_StdinValue

* add audit log test for HTTP PATCH

* patch CLI changes

* add patch CLI tests

* change JSONMergePatch func to accept a ctx

* fix TestKVPatchCommand_RWMethodNotExists and TestKVPatchCommand_RWMethodSucceeds to specify -method flag

* go fmt

* add a test to verify patching works by default with the root token

* add changelog entry

* get vault-plugin-secrets-kv@add-patch-support

* PR feedback

* reorder some imports; go fmt

* add doc comment for HandlePatchOperation

* add json-patch@v5.5.0 to go.mod

* remove unnecessary cancelFunc for WriteBytes

* remove default for -method

* use stable version of json-patch; go mod tidy

* more PR feedback

* temp go get vault-plugin-secrets-kv@master until official release

Co-authored-by: Josh Black <raskchanky@users.noreply.github.com>
2021-10-13 15:24:31 -04:00
..
2021-09-20 17:10:54 -04:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:28:06 -04:00
2019-03-25 10:56:04 -07:00
2017-10-24 09:28:06 -04:00
2019-02-14 11:54:47 -08:00
2018-02-12 18:12:16 -05:00
2018-07-12 10:18:50 -04:00
2017-10-24 09:30:47 -04:00
2019-09-26 08:46:41 -04:00
2019-07-05 13:36:44 -07:00
2018-08-22 14:37:40 -04:00
2020-03-17 09:46:44 -04:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:39:34 -04:00
2018-11-06 17:21:24 -08:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:30:48 -04:00
2018-08-14 14:20:49 -04:00
2017-10-24 09:39:34 -04:00
2018-02-12 18:12:16 -05:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:47 -04:00
2018-03-20 14:54:10 -04:00
2017-10-24 09:30:48 -04:00