Fix CLI panic caused by single backslash values (#14523)

* upgrade go-secure-stdlib/kv-builder to v0.1.2

* add kv test to ensure single backslash values no longer panic

* add changelog entry
This commit is contained in:
Chris Capurso
2022-03-24 16:40:32 -04:00
committed by GitHub
parent 4fe5e58d46
commit c9665012bd
4 changed files with 12 additions and 1 deletions

View File

@@ -141,6 +141,12 @@ func TestKVPutCommand(t *testing.T) {
[]string{"== Secret Path ==", "kv/data/write/foo"},
0,
},
{
"v2_single_value_backslash",
[]string{"kv/write/foo", "foo=\\"},
[]string{"== Secret Path ==", "kv/data/write/foo"},
0,
},
}
for _, tc := range cases {