open-vault/sdk/logical
Chris Capurso bbb4ab4a41
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
..
audit.go
auth.go
connection.go
controlgroup.go
error.go [VAULT-2852] deprecate req counters in oss (#12197) 2021-07-29 10:21:40 -07:00
identity.pb.go Update protobuf & grpc libraries and protoc plugins (#12679) 2021-09-29 18:25:15 -07:00
identity.proto Add Custom metadata field to alias (#12502) 2021-09-17 11:03:47 -07:00
lease.go
lease_test.go
logical.go Add support to parameterize unauthenticated paths (#12668) 2021-10-13 11:51:20 -05:00
logical_storage.go
plugin.pb.go Add Custom metadata field to alias (#12502) 2021-09-17 11:03:47 -07:00
plugin.proto
request.go Add HTTP PATCH support to KV (#12687) 2021-10-13 15:24:31 -04:00
response.go
response_util.go Add HTTP PATCH support to KV (#12687) 2021-10-13 15:24:31 -04:00
response_util_test.go
secret.go
storage.go
storage_inmem.go Add user configurable password policies available to secret engines (#8637) 2020-05-27 12:28:00 -06:00
storage_inmem_test.go
storage_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
storage_view.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
system_view.go Move sdk/helper/random -> helper/random (#9226) 2020-06-17 14:24:38 -06:00
testing.go Revert "Vault Dependency Upgrades [VAULT-871] (#10903)" (#10939) 2021-02-18 15:40:18 -05:00
token.go Adds ability to define an inline policy and internal metadata on tokens (#12682) 2021-10-07 10:36:22 -07:00
token_test.go
translate_response.go