Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell completion not working for KV v2 mounts #16552

Closed
georgethebeatle opened this issue Aug 3, 2022 · 1 comment · Fixed by #16553
Closed

Shell completion not working for KV v2 mounts #16552

georgethebeatle opened this issue Aug 3, 2022 · 1 comment · Fixed by #16553
Labels

Comments

@georgethebeatle
Copy link
Contributor

georgethebeatle commented Aug 3, 2022

Describe the bug
Shell completion list/put/patch for KV v2 paths is always empty

To Reproduce
Steps to reproduce the behavior:

  1. Create a vault instance with the following structure:
- kvv1 (mount of type kv, version 1)
  - a
    - b
- kvv2 (mount of type kv, version 2)
  - c
    - d
  1. Run vault kv delete kvv1/<tab>, I get kvv1/a/b as a suggestion.
  2. Run vault kv delete kvv2/<tab>, the suggestion list is empty.

Expected behavior
I would expect that the kvv2 suggestions are not empty and contain kvv2/c/d, similarly to what I get for kvv1

Environment:

  • Vault Server Version (retrieve with vault status): 1.10.3
  • Vault CLI Version (retrieve with vault version): 1.12.0
  • Server Operating System/Architecture: Linux vault-0 5.10.109+ #1 SMP Tue May 24 09:08:48 UTC 2022 x86_64 Linux (running on kubernetes pod)
@HridoyRoy
Copy link
Contributor

Hi @georgethebeatle , thanks for opening the PR! I've left a few comments on it, but the functional code changes look good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants