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

Spring Cloud Encrypt/Decrypt exhibits unwanted behavior when args contain '!' and are not enclosed in single quotes #170

Open
sweller999 opened this issue Dec 17, 2020 · 0 comments

Comments

@sweller999
Copy link

sweller999 commented Dec 17, 2020

Bug report

Environment:
spring-cloud-version
(Initially had Spring Cloud CLI version 2.2.3.RELEASE installed and downgraded to 2.2.0.RELEASE while troubleshooting this error)

When attempting to encrypt some keys with spring encrypt, I noticed that the encrypt command fails when there is a single '!' character in any of the arguments, and when one contains '!!' it will append previous command line arguments into the argument before encrypting. This can be avoided by enclosing all arguments in single quotes- double quotes will not work however. Since the spring cloud cli documentation does not mention this behavior, I suggest updating it to include single quotes around the example key and value arguments

Behavior:
spring-cloud-screenshot

Relevant Documentation:
Screen Shot 2020-12-16 at 5 06 45 PM

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