Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-818558: Support configuring file paths for private key authentication #1565

Closed
sfc-gh-hachouraria opened this issue May 16, 2023 · 1 comment
Assignees
Labels

Comments

@sfc-gh-hachouraria
Copy link
Contributor

sfc-gh-hachouraria commented 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 and PRIVATE_KEY_PWD): https://github.com/snowflakedb/snowflake-connector-net#create-a-connection

The ODBC driver also supports such options (via PRIV_KEY_FILE and PRIV_KEY_FILE_PWD): https://docs.snowflake.com/en/developer-guide/odbc/odbc-parameters#using-key-pair-authentication

What is the desired behavior?

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?

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

@github-actions github-actions bot changed the title Support configuring file paths for private key authentication SNOW-818558: Support configuring file paths for private key authentication May 16, 2023
@sfc-gh-spanaite
Copy link

@sfc-gh-anugupta Can you please review this feature request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants