We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The password when executing teller sh should be enclosed in quote to avoid interpreting special characters such as parentheses.
teller sh
Currently passwords are not escaped, resulting in the following error: bash: syntax error near unexpected token '('
bash: syntax error near unexpected token '('
Enclose password with quote and substitute single quote already in the variable strings.ReplaceAll(v.Value, "'", "'\"'\"'")
strings.ReplaceAll(v.Value, "'", "'\"'\"'")
I've a commit ready to be submitted as a PR: kpetremann@7610091
()"';@ \(\)\"\'\;\@
eval "$(teller sh)"
Secrets can have special characters which should not be interpreted by the shell
The text was updated successfully, but these errors were encountered:
Hey @kpetreman, thanks for reporting this issue. Do you want to open a pull request with your fix? We're accepting PRs
It will good also if your will create a e2e test that test this scenario. just add a yaml file to https://github.com/tellerops/teller/tree/master/e2e/tests
Sorry, something went wrong.
sure, I'll add it and then send the PR!
@kaplanelad I added the e2e test in the PR #132, don't hesitate if it needs adjustments
closing the issue as the PR has been merged and released.
Thanks for having merged the PR :)
kaplanelad
No branches or pull requests
Expected Behavior
The password when executing
teller sh
should be enclosed in quote to avoid interpreting special characters such as parentheses.Current Behavior
Currently passwords are not escaped, resulting in the following error:
bash: syntax error near unexpected token '('
Possible Solution
Enclose password with quote and substitute single quote already in the variable
strings.ReplaceAll(v.Value, "'", "'\"'\"'")
I've a commit ready to be submitted as a PR: kpetremann@7610091
Steps to Reproduce
()"';@ \(\)\"\'\;\@
eval "$(teller sh)"
Context
Secrets can have special characters which should not be interpreted by the shell
Specifications
The text was updated successfully, but these errors were encountered: