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

Error about Private Key Authentication in documentation #322

Open
JonathanStefanov opened this issue Feb 12, 2025 · 0 comments
Open

Error about Private Key Authentication in documentation #322

JonathanStefanov opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@JonathanStefanov
Copy link

Describe the bug
In the Private Key Authentication of the readme documentation, it is said that the users should write the private key path in "private-key".

This is in fact not the case as pointed by @sfc-gh-astus in this thread snowflakedb/snowflake-cli#1480. Indeed one is supposed to use private_key_file

I was not able to use my account's private key for auth private-key in connections.toml but was able to with private_key_file. Using private-key gave the error TypeError: Expected bytes or RSAPrivateKey, got <class 'NoneType'> schemachange

To Reproduce
Create a connections.toml file like so
[xxxxxxxx]
account = "xxxx-xxxx"
user = "xxxx"
warehouse = "xxxx"
authenticator = "snowflake_jwt"
private-key = "rsa_key.p8"

Observe that it does not work

[xxxxxxxx]
account = "xxxx-xxxx"
user = "xxxx"
warehouse = "xxxx"
authenticator = "snowflake_jwt"
private_key_file = "rsa_key.p8"

Observe it works

Schemachange (please complete the following information):

  • Version: 4.0.0
@JonathanStefanov JonathanStefanov added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant