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

Key-pair auth #5

Open
GClunies opened this issue May 6, 2024 · 2 comments
Open

Key-pair auth #5

GClunies opened this issue May 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@GClunies
Copy link

GClunies commented May 6, 2024

First, thanks for developing this adapter and making Snowflake in Harlequin possible!

Wondering if you know how to configure a connection using key-pair authorization? I have tried a connection string in my harlequin.toml like

default_profile = 'mp_profile'

[profiles.mp_profile]
limit = 500
adapter = "adbc"
conn_str = "my_user@my_account&auth_type=auth_jwt&jwt_private_key=/home/my_user/.keys/snowflake/my_rsa_key.p8&jwt_private_key_pkcs8_password=my-password"
driver_type= "snowflake"

But I get the error

❯ harlequin
╭─ Harlequin could not connect to your database. ─╮
│ INVALID_ARGUMENT: 260002: password is empty     │
╰─────────────────────────────────────────────────╯

NOTE: 1 of 2 errors shown. Run with textual run --dev to see all errors.

I shouldn't need my password if using key pair auth?

Normally I would just create a a password and be done with this, but my employer prefers key-pair.

@TylerHillery TylerHillery self-assigned this May 6, 2024
@TylerHillery TylerHillery added the bug Something isn't working label May 6, 2024
@TylerHillery
Copy link
Owner

Thank you for raising this issue! I was able to recreate it on my end. Will try to figure what's going on here. I hoping it's a matter of just getting the URI right.

@TylerHillery
Copy link
Owner

Still struggling to figure out root cause. FYI It might be awhile until I have the time to figure out what's going wrong here.

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

2 participants