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

CLI: infisical secrets set with multi line secret #2967

Open
felixhummel opened this issue Jan 10, 2025 · 0 comments
Open

CLI: infisical secrets set with multi line secret #2967

felixhummel opened this issue Jan 10, 2025 · 0 comments
Labels
linear This tag is used to sync issues with Infisical's internal project management system.

Comments

@felixhummel
Copy link
Contributor

Feature description

There should be a way to set multi-line secrets via the CLI.

Why would it be useful?

For certificates (PEM files) for example.

Additional context

infisical secrets --silent --projectId=$INFISICAL_PROJECT_ID set --path /some-path foo=$(cat my-new.crt)

breaks with

panic: runtime error: index out of range [1] with length 1

Should

I would expect something like this to work:

infisical secrets --silent --projectId=$INFISICAL_PROJECT_ID set --path /some-path foo < my-new.crt

Note the missing =. Infisical should read from STDIN.

@maidul98 maidul98 added the linear This tag is used to sync issues with Infisical's internal project management system. label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear This tag is used to sync issues with Infisical's internal project management system.
Projects
None yet
Development

No branches or pull requests

2 participants