You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/03/08 15:32:53 UTC

[GitHub] [airflow] fmaritato commented on a change in pull request #4875: [AIRFLOW-4031] Allow for key pair auth in snowflake hook

fmaritato commented on a change in pull request #4875: [AIRFLOW-4031] Allow for key pair auth in snowflake hook
URL: https://github.com/apache/airflow/pull/4875#discussion_r263819065
 
 

 ##########
 File path: airflow/contrib/hooks/snowflake_hook.py
 ##########
 @@ -64,6 +66,33 @@ def _get_conn_params(self):
             "region": self.region or region or '',
             "role": self.role or role or '',
         }
+
+        """
+        If private_key_file is specified in the extra json, load the contents of the file as a private
+        key and specify that in the connection configuration. The connection password then becomes the
+        passphrase for the private key. If your private key file is not encrypted (not recommended), then
+        leave the password empty.
+        """
+        private_key_file = conn.extra_dejson.get('private_key_file', None)
+        if private_key_file is not None:
 
 Review comment:
   fixed

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services