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

feat: Add new private_key & passphrase based authentication method #38

Merged
merged 9 commits into from
Aug 27, 2024

Conversation

haleemur
Copy link
Contributor

@haleemur haleemur commented Aug 22, 2024

Description

The tap can now connect to snowflake using a provided private key and passphrase. The private key can be provided as a string or the path to the private key file can be provided.

Fixes an edge-case handling where schemas needing quotes (example: "MySpecial.SchemaName") are properly handled during discovery.

Speeds up discovery slightly when tables is provided. The speed up is achieved by only inspecting relevant schemas which can be derived by parsing each table within tables.

Introduces 3 new config parameters to support key based authentication and since there are 2 ways to authenticate, password is now an optional parameter. The new parameters are:

  • private_key
  • private_key_path
  • private_key_passphrase

resolves: #19

@edgarrmondragon edgarrmondragon self-requested a review August 22, 2024 15:07
tap_snowflake/client.py Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
meltano.yml Show resolved Hide resolved
meltano.yml Show resolved Hide resolved
tap_snowflake/client.py Outdated Show resolved Hide resolved
@edgarrmondragon edgarrmondragon self-assigned this Aug 23, 2024
haleemur and others added 3 commits August 22, 2024 22:35
Co-authored-by: Edgar Ramírez Mondragón <16805946+edgarrmondragon@users.noreply.github.com>
Copy link
Member

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@edgarrmondragon
Copy link
Member

Thanks @haleemur!

@edgarrmondragon edgarrmondragon merged commit da58939 into MeltanoLabs:main Aug 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

private_key support (Key pair auth)
3 participants