deislabs / yo-wasm

Yeoman generator for Rust projects intended to build to WASM in OCI registries
Other
64 stars 10 forks source link

Hippo app create fails if password is loaded from EV and has $ #65

Closed technosophos closed 3 years ago

technosophos commented 3 years ago

Environment: Windows 10, WSL2, Ubuntu 20.04

If I set my password to Sw0rdfi$h and store the password as export HIPPO_PASSWORD='Sw0rdfi$h', I can very using env that the password is correct.

I then run through the yo wasm prompts, and accept the password from the environment variable. It fails to authenticate to the Hippo server, saying the password is incorrect.

If I do the same process, but type the password in manually, it works. My best guess is that the $ might cause some sort of problem when reading it from the env.

NB: No, I don't actually use the password Sw0rdfi$h.

technosophos commented 3 years ago

Wait... Wait... maybe the password was Sw0rdf1$h or swOrdf!$h

Just kidding... but I did find the problem, and it is related to the shell, not Hippo. the $ was incorrectly escaped.