VaultFS, not able to go deeper than one level in KV version2
adrianlzt opened this issue · comments
When I try to access folders deeper than one level, it does not work.
sh-5.2$ VAULT_ADDR=http://localhost:8200 VAULT_TOKEN=XXX ls mnt/secret/admon
mnt/secret/admon
sh-5.2$ curl -H "X-Vault-Request: true" -H "X-Vault-Token: XXX" http://127.0.0.1:8200/v1/secret/metadata/admon?list=true
{"request_id":"11efcb4a-15b6-4583-6e8c-e39fd7925a49","lease_id":"","renewable":false,"lease_duration":0,"data":{"keys":["foobar"]},"wrap_info":null,"warnings":null,"auth":null}
Debug output:
unique: 1096, opcode: LOOKUP (1), nodeid: 1, insize: 47, pid: 3408505
LOOKUP /secret
getattr /secret
NODEID: 8
unique: 1096, success, outsize: 144
unique: 1098, opcode: LOOKUP (1), nodeid: 8, insize: 46, pid: 3408505
LOOKUP /secret/admon
getattr /secret/admon
NODEID: 10
unique: 1098, success, outsize: 144