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
Support convenience options (e.g. private_key_file and private_key_file_passphrase) that perform reading and decrypting private key files automatically, and reduces the work required to use key-pair authentication with the connector.
How would this improve snowflake-connector-python?
github-actionsbot
changed the title
Support configuring file paths for private key authentication
SNOW-818558: Support configuring file paths for private key authentication
May 16, 2023
What is the current behavior?
Python Connector requires manually reading and decrypting a private key file (and optional passphrase), documented at https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-example#using-key-pair-authentication-key-pair-rotation
Passing file paths and passphrases directly into the config is not currently supported
The .NET driver supports such an option (via
PRIVATE_KEY_FILE
andPRIVATE_KEY_PWD
): https://github.com/snowflakedb/snowflake-connector-net#create-a-connectionThe ODBC driver also supports such options (via
PRIV_KEY_FILE
andPRIV_KEY_FILE_PWD
): https://docs.snowflake.com/en/developer-guide/odbc/odbc-parameters#using-key-pair-authenticationWhat is the desired behavior?
Support convenience options (e.g.
private_key_file
andprivate_key_file_passphrase
) that perform reading and decrypting private key files automatically, and reduces the work required to use key-pair authentication with the connector.How would this improve
snowflake-connector-python
?These options would simplify configuring private key authentication in higher level applications such as SQLAlchemy, and Django backend for Snowflake (related issues: Snowflake-Labs/django-snowflake#67 and Snowflake-Labs/django-snowflake#72)
References, Other Background
The text was updated successfully, but these errors were encountered: