-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make VaultSource compatible with KV Backend V2
Detect if a KV backend uses the new v2 versioning features and rewrite request paths and bodies if necessary. The new API uses additional /data/ and /metadata/ for GET/PUT and LIST operations, respectively. To facilitate versioning, v2 wraps the actual payload in a JSON object with "data" and "metadata" keys: { "data": {<payload (same as v1)>}, "metadata": { <versioning info> } }
- Loading branch information
Showing
2 changed files
with
120 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters