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

--path not working with infisical secrets folders get #3297

Open
EmileSpa opened this issue Mar 24, 2025 · 0 comments
Open

--path not working with infisical secrets folders get #3297

EmileSpa opened this issue Mar 24, 2025 · 0 comments

Comments

@EmileSpa
Copy link

Describe the bug

I try to get a list of folder in my environment with 'infisical secrets folders get --env=prod'. This produces a list like:

│ FOLDER NAME │ PATH │ FOLDER ID │
├─────────────┼──────┼───────────┤
│ s1 │ / │ fa580bd8- │
│ s3 │ / │ 4f6c7254- │
│ c1 │ / │ 92a2d8d5- │
│ c2 │ / │ 5cb5eac3- │
│ common │ / │ 962047a5- │

When adding a path like 'infisical secrets folders get --env=prod --path=/s1' I suppose to get a list with the subfolders underneath the 's1' folder. Instead it gives a list like this:

│ FOLDER NAME │ PATH │ FOLDER ID │
├─────────────┼───────┼───────────┤
│ s1 │ /s1 │ fa580bd8- │
│ s3 │ /s1 │ 4f6c7254- │
│ c1 │ /s1 │ 92a2d8d5- │
│ c2 │ /s1 │ 5cb5eac3- │
│ common │ /s1 │ 962047a5- │

So this it the same output with only the path column changed with what I gave as value for --path. Even when a non existing path is given it just list that:

infisical secrets folders get -p /a-non-existing-path --env=prod

│ FOLDER NAME │ PATH │ FOLDER ID │
├─────────────┼──────────────────────┼───────────┤
│ s1 │ /a-non-existing-path │ fa580bd8- │
│ s3 │ /a-non-existing-path │ 4f6c7254- │
│ c1 │ /a-non-existing-path │ 92a2d8d5- │
│ c2 │ /a-non-existing-path │ 5cb5eac3- │
│ common │ /a-non-existing-path │ 962047a5- │

To Reproduce

Run the above infisical command.

Expected behavior

A list with the (sub)-directories underneath the given path.

Platform you are having the issue on:

Tested on Debian Bookworm and Windows 10.

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

No branches or pull requests

1 participant