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

Encodeing via CLI with special characters requires characters to be escaped #20

Open
simonbbrown opened this issue Aug 10, 2018 · 0 comments

Comments

@simonbbrown
Copy link

simonbbrown commented Aug 10, 2018

Hi!

Great little plugin, found that if I am trying to encrypt a variable that has special characters that I need to escape the characters in the string other wise the encoding will fail.

example:

FAILS:
sls encrypt -n dbep:password -v DxY5R&$a -k 1111111-2222-3333-4444-555555555555 --aws-profile mylocalprofilename

PASSES AND ENCODES CORRECTLY:
sls encrypt -n dbep:password -v DxY5R&$a -k 1111111-2222-3333-4444-555555555555 --aws-profile mylocalprofilename

If you don't escape your characters the plugin with throw the following error:
[1] 57648 bash: -k: command not found
and none of your variables will come through successfully. The function will also hang and not end correctly requiring the user to ctrl+c to halt the operation.

Would be great if documentation could be updated but also hanging issue resolved with warning in CLI?

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