nsAstro commented on issue #22576: URL: https://github.com/apache/airflow/issues/22576#issuecomment-1099530773
Okay this is kind of gross, but I decided to take a stab at this issue. Not sure why this happens for only Ed25519 keys but removing the newlines causes paramiko to not detect the key as type SSH because the key parsing logic loops line by line (if there is only one line, the whole thing barfs). The issue with new lines is that passing them in the Extra field causes things Airflow field validation to break, so a simple fix was just to replace each new line character in the Extra with "\n" and then lo and behold it worked. The actual fix for this should really be done in paramiko. Can you try replacing your keys newlines with "\n" and see if that works? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
