You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you for your tutorial on Kestra and putting the templates into your boilerplates. Unfortunately I can't get the passing of the secrets to work properly.
I have set up Kestra as docker compose, like you did and added the SSH-Variable in the environment-Part:
I created a keypair, created an Ansible users on the target system, copied the keypair and made sure it's logging in and executing commands with sudo (without any warnings or prompts).
I encoded my private keyfile with base64 -w 0 ~/.ssh/id_ed25519 > ssh_key_base64.txt.
I copied the content of the file to .env, so it looks like
SECRET_SSH_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
When I access the kestra container and do echo $SECRET_SSH_KEY. It's displaying the Key
But when I use your flow-example and simply put in one host like this:
it's giving me the error fatal: [10.0.9.20]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.0.9.20' (ED25519) to the list of known hosts.\r\nLoad key \"/tmp/kestra-wd/tmp/sJsPGfZTeENFMrMMcE6ov/id_rsa\": invalid format\r\[email protected]: Permission denied (publickey,password).", "unreachable": true}
The text was updated successfully, but these errors were encountered:
Issue Reporting
Dear Christian,
thank you for your tutorial on Kestra and putting the templates into your boilerplates. Unfortunately I can't get the passing of the secrets to work properly.
I have set up Kestra as docker compose, like you did and added the SSH-Variable in the environment-Part:
I created a keypair, created an Ansible users on the target system, copied the keypair and made sure it's logging in and executing commands with sudo (without any warnings or prompts).
I encoded my private keyfile with
base64 -w 0 ~/.ssh/id_ed25519 > ssh_key_base64.txt
.I copied the content of the file to .env, so it looks like
When I access the kestra container and do
echo $SECRET_SSH_KEY
. It's displaying the KeyBut when I use your flow-example and simply put in one host like this:
it's giving me the error
fatal: [10.0.9.20]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.0.9.20' (ED25519) to the list of known hosts.\r\nLoad key \"/tmp/kestra-wd/tmp/sJsPGfZTeENFMrMMcE6ov/id_rsa\": invalid format\r\[email protected]: Permission denied (publickey,password).", "unreachable": true}
The text was updated successfully, but these errors were encountered: