Describe the bug
This bug fix fixed the problem for secret engines of type kv and version 2 but does not consider secret engines of type generic and version 2.
To Reproduce
Steps to reproduce the behavior:
- Select secret engine of type
generic and version 2
No secrets in this backend
Expected behavior
Secrets should be shown.
Environment:
- Vault Server Version: 1.16.2
- Vault CLI Version (retrieve with
vault version): -
- Server Operating System/Architecture: RedHat 8.8
Vault server configuration file(s):
Additional context
the above mentioned fix introduces this condition:
if (secretEngine.type === 'kv' && secretEngine.version === 2)
which does not include secretEngine.type === 'generic'