hwang-cadent commented on issue #58573:
URL: https://github.com/apache/airflow/issues/58573#issuecomment-3566817547

   The code at line 361 in snowflake.py always base64-decodes 
private_key_content without checking if it's already raw PEM format. This 
causes failures when users provide raw PEM (starts with -----BEGIN PRIVATE 
KEY-----), as base64 decoding produces invalid bytes that fail to deserialize. 
I think the suggested Fix might add Auto-detect the format and handle both 
base64-encoded and raw PEM. This maintains backward compatibility with 
base64-encoded keys (as required since 6.3.0) while also supporting raw PEM for 
convenience.
   
   The OpenSSL error may also indicate an unsupported key format or EC curve on 
AWS Linux. Ensure the key is PKCS#8 format (-----BEGIN PRIVATE KEY-----), not 
PKCS#1.


-- 
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]

Reply via email to