Vendir is failing to fetch content if private-key does not have newline at the end #350
Labels
bug
This issue describes a defect or unexpected behavior
carvel-accepted
This issue should be considered for future work and that the triage process has been completed
What steps did you take:
Steps to reproduce the issue:
-> Copy the content from file ~/.ssh/id_rsa (assuming this is the private key file on your system)
-> encode the key by running cmd:
pbpaste | base64
-> create vendir.yml
-> run vendir sync and you will see the error:
Note: pbpaste does not add new line but if you will use cat instead of pbpaste you will see newline will get added to your private key. You can try same steps just encode your private key by running command:
cat ~/.ssh/id_rsa | base64
. This will work fine.What happened:
[A small description of the issue]
What did you expect:
Vedir should work fine with/without newline in privatekey.
Anything else you would like to add:
Git actually does not work if privatekey does not have newline at the end. So add newline when vendir is writing privateKey in file. Private key with multiple newline also accepted by git.
Environment:
vendir --version
):/etc/os-release
):Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: