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:
parent
0e3a58faa6
commit
4b52f2dc0b
@ -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.
|
||||
|
Reference in New Issue
Block a user