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

Backslashes in Vsphere passwords are interpreted as escape characters in generated YAML #7623

Closed
jaredcookaws opened this issue Feb 16, 2024 · 0 comments · Fixed by #7829
Closed
Labels
external An issue, bug or feature request filed from outside the AWS org kind/enhancement New feature or request

Comments

@jaredcookaws
Copy link

What happened:

EKS Anywhere installation on vSphere failed with error:

"error: error parsing STDIN: error converting YAML to JSON: yaml: line 11: found unexpected end of stream\n"}

I found that in the generated YAML config, the vSphere password is being added as a value in between double quotes. When the backslash is at the end, it escapes the last double quote. I presume that when the backslash is not at the end, the password is just incorrect when converted to JSON.

What you expected to happen:

Expected the EKS Anywhere installer to begin creating cluster nodes in vSphere.

How to reproduce it (as minimally and precisely as possible):

Use a vSphere password with a backslash, exported to the shell with:

export EKSA_VSPHERE_PASSWOR='mypassword\'

Anything else we need to know?:

Environment:

  • EKS Anywhere Release: 0.16.5
  • EKS Distro Release: 1.27
@taneyland taneyland added external An issue, bug or feature request filed from outside the AWS org kind/enhancement New feature or request labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external An issue, bug or feature request filed from outside the AWS org kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants