gorram it.

so, i need to redo path detection and secret parsing etc., because turns out a SECRET at foo/bar/baz and e.g. a path at foo/bar/baz/quux means there's a "bar" and "bar/" in the keys. i need to review things.
This commit is contained in:
brent s. 2020-04-18 00:39:22 -04:00
parent 0e3a58faa6
commit 4b52f2dc0b
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ class VaultPass(object):
kname = lpath[-1]
path = '/'.join(lpath[0:-1])
self.removeSecretName(kname, path, mount, destroy = destroy)
# The business end.
# We need to recurse down and delete secrets. Empty subdirs are removed automatically.
if op == 'destroy':
if mtype == 'kv2':
versions = self.client.secrets.kv.v2.