Skip to content

Unable to set the private keys: load_pem_private_key() failing to deserialize private key #47221

@suchiparihar

Description

@suchiparihar

Apache Airflow version

2.10.5

If "Other Airflow 2 version" selected, which one?

2.10.4

What happened?

Facing an error while setting private key inside the airflow connection. In Airflow 2.10.4 + Python 3.12, Snowflake's load_pem_private_key() does not accept traditional RSA PEM keys directly anymore due to recent updates in cryptography and OpenSSL libraries. Getting an error "Unable to deserialize the key"

What you think should happen instead?

No response

How to reproduce

Create a connection in airflow UI and try to paste private key in PEM format and check. It is failing with "Unable to deserialize the key" error

Operating System

MacOS

Versions of Apache Airflow Providers

cryptography= 40.0.0
apache-airflow-providers-cncf-kubernetes=8.4.1
apache-airflow-providers-amazon=8.28.0
apache-airflow-providers-microsoft-azure=10.4.0

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions