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

'infisical secrets --recursive' not listing all secrets as secrets with the same name in a different folder are overwritten #3296

Open
EmileSpa opened this issue Mar 24, 2025 · 1 comment

Comments

@EmileSpa
Copy link

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:
Run 'infisical secrets --env= --projectId= --recursive' with the CLI. This will produce a list with all secrets in the project, but secrets that occur multiple times in different folder will only be listed once with the value of the one in the latest folder.

Expected behavior

The command should produce a list with all secrets with their value. If the recursive flag is used the folders should also be listed, so if there are secrets with the same name (that could have a different value) all of them are in the list.

Platform you are having the issue on:

Tested on Debian Bookworm and Windows 10

@EmileSpa EmileSpa changed the title infisical secrets --recusive not listing all secrets as secrets with the same name in a different folder are overwritten 'infisical secrets --recursive' not listing all secrets as secrets with the same name in a different folder are overwritten Mar 24, 2025
@akhilmhdh
Copy link
Member

The infisical secrets command is used to get the final list of key value pair of secrets. Thus having the same key twice doesn't make sense, if you want to get it with duplicate keys as well please use the SDK

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

2 participants