From d3a2844a75e2222db75d1b5112d3b58a9552dcf7 Mon Sep 17 00:00:00 2001 From: Laura Uva Date: Mon, 27 Nov 2017 08:43:49 -0800 Subject: [PATCH] Added clarification to KV documentation about default CLI behavior and how to preserve non-string type values (#3596) --- website/source/docs/secrets/kv/index.html.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/source/docs/secrets/kv/index.html.md b/website/source/docs/secrets/kv/index.html.md index 8a4994bb60..49df92823d 100644 --- a/website/source/docs/secrets/kv/index.html.md +++ b/website/source/docs/secrets/kv/index.html.md @@ -19,6 +19,8 @@ of these backends at different mount points as you like. Writing to a key in the `kv` backend will replace the old value; sub-fields are not merged together. +Key names must always be strings. If you write non-string values directly via the CLI, they will be converted into strings. However, you can preserve non-string values by writing the key/value pairs to Vault from a JSON file or using the HTTP API. + This backend honors the distinction between the `create` and `update` capabilities inside ACL policies.