-
Notifications
You must be signed in to change notification settings - Fork 226
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
Pulumi encrypts incorrectly strings with special characters #13564
Comments
Could you provide a script to reproduce? I currently cannot reproduce with this Python script:
Note: since your string contains special characters you must be careful about escaping them correctly through your shell etc. |
@t0yv0 sure, please find minimal code to reproduce (I'm using nodejs with typescript). I added readme with steps that I did. |
What shell do you use? What does this print?
In bash/zsh you need to apply escaping to certain characters like |
damn, you are right @t0yv0 |
Closing, sounds like not a pulumi bug. |
Maybe, can we add a warning for this, for the zsh/bash terminals? |
How could we warn about it? By the time the pulumi process sees the text it's already been escaped by the shell. We'd have to warn on every input because potentially anything could have been escaped. |
True. When you use single quote it prints without formatting the variables. Maybe if you use double quotes, it can be warned -if it's detectable-. Or this info could be recommended in the docs as a little note? It's not very important anyway but. |
We can do that. |
@Frassle are you going to add this to the current sprint and pick this up or should we work this into our planning? |
If you can pick it up it would be grand. I've only got two days left before a long time off so I'm pretty thin on time. |
I had password with special characters: 9#^XeshqnX$bG9vFPa@r7Ti98uo@sS, which I stored as pulumi config secret and then retrived it from config and stored as AWS SSM secret.
After comparison AWS SSM Secret value and original password don't match
Expected behavior
It should match of course
Current behavior
It doesn't match
Steps to reproduce
Context (Environment)
Affected feature
The text was updated successfully, but these errors were encountered: