Closed fhoffa closed 1 year ago
There's not a simpler way (other than reading the private key bytes (pkb) yourself) because the python connector does not accept a file path as an input yet. See also a related issue discussion on: https://github.com/Snowflake-Labs/django-snowflake/issues/67
Feature request raised at: https://github.com/snowflakedb/snowflake-connector-python/issues/1565
I see @sfc-gh-hachouraria is adding some examples to
OPTIONS
for authentication:https://github.com/Snowflake-Labs/django-snowflake/pull/66
As we find the best way to include this code, I wanted to document a hack to authenticate with a private key in the meantime.
In
settings.py
I just add an ugly block to decrypt the key:So then in DATABASES in
settings.py
I can use that pkb value: