-
Notifications
You must be signed in to change notification settings - Fork 995
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
Allow for connecting to Snowflake with a private key #2482
Comments
After a Slack discussion it was concluded this could be done using the ~/.snowsql/config file and passing in the private key there. Unfortunately, the python connector doesn’t take the private key path instead it takes a byte object of an unecrypted rsa private key. To create this private key we should allow a user to set the private key path and private key passcode in the config file and then convert that to the private key in code using the method detailed [here]( python connector doesn’t take the private key path instead it takes a byte object of an unecrypted rsa private key). |
@sfc-gh-madkins Sorry for dumb question, I'm facing this issue now ( I'm on Any pointers to documentation helps. Thanks ! |
These parameters have to be defined in a config file. You then just set the param config_path={file_path} in the .yaml file
…On Thu, Nov 3, 2022 at 6:15 PM Amith Adiraju ***@***.***> wrote:
@sfc-gh-madkins <https://github.com/sfc-gh-madkins> Sorry for dumb
question, I'm facing this issue now ( I'm on feast 0.26.0. Want to use
this fix , but as a user, not sure what changes I need to make and where.
I've tried passing both "password" and "private_key" in place of "password"
field in feature_store.yaml but both options aren't working.
Any pointers to documentation helps. Thanks !
—
Reply to this email directly, view it on GitHub
<#2482 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATSRCU5LX6OLWUFVQVVTV73WGRBSPANCNFSM5SPXMWEQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
For anyone who needs a step-by-step changes:
Reference for config parser: https://docs.python.org/3/library/configparser.html#module-configparser Thanks @sfc-gh-madkins |
When connecting to Snowflake with an account that requires MFA its does not work (or at least requires extra work to use MFA devices) to connect with just the username and password credentials.
Instead of using username and password we should be able to use a private key and a private key passphrase to connect to Snowflake. Snowflake already supports this method of authentication. See here. Feast should add this as an option to the feature_store.yaml as part of the Snowflake connection config.
When trying to use a private_key_path and passphrase this error was raised:
It seems like fields related to a passphrase are not permitted here
cc @sfc-gh-madkins
The text was updated successfully, but these errors were encountered: