eu-nebulous / gui

Mozilla Public License 2.0
0 stars 0 forks source link

Cloud provider SSH credentials double scaped #35

Open robert-sanfeliu opened 2 days ago

robert-sanfeliu commented 2 days ago

In the cloud registration form, If I provide the following value in "Key Private Key" field:

-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAlEu1UYevZmtuOosEY+oiIDNLEwWnkrUvIyTfp7X/tcEmkfIE\n...

EXN middleware library reports that this message is sent to SAL:

... "privateKey":"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEAlEu1UYevZmtuOosEY+oiIDNLEwWnkrUvIyTfp7X/tcEmkfIE\\ncYtQasYrgpvyT6Ev3fJpvY6UWb2poL+zciw8Pf5362m/9Aun ....

\n characters are escaped to \\n, making the SSH key invalid.

robert-sanfeliu commented 2 days ago

I assume it is an error of the UI, if it comes from EXN middleware, please, feel free to assign it to the responsible person and move it to the appropriate repo.