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

Fix: read pkey as DER format, not PEM #680

Merged
merged 6 commits into from
Oct 10, 2023
Merged

Fix: read pkey as DER format, not PEM #680

merged 6 commits into from
Oct 10, 2023

Conversation

codingcyclist
Copy link
Collaborator

Description

I had a small glitch in my previous PR: instead of expecting the base64-encoded private key for a Snowflake connection to come in DER format, I implemented the key loading function to expect a PEM-formatted key. I took a second look at how DBT implemented their loading of base64 encoded keys and adjusted it accordingly.

Additional Context

Original PR for base64-encoded private keys: #637

@codingcyclist codingcyclist requested a review from rudolfix October 9, 2023 06:21
@netlify
Copy link

netlify bot commented Oct 9, 2023

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit c4e64af
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/65253b777c7fc30008f1cd57

Copy link
Collaborator

@rudolfix rudolfix left a comment

Choose a reason for hiding this comment

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

please look at the CI - a test is not passing. please include both DER and PEM test cases

dlt/destinations/snowflake/configuration.py Outdated Show resolved Hide resolved
dlt/destinations/snowflake/configuration.py Outdated Show resolved Hide resolved
rudolfix
rudolfix previously approved these changes Oct 10, 2023
Copy link
Collaborator

@rudolfix rudolfix left a comment

Choose a reason for hiding this comment

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

LGTM! thanks! this will get into todays release

@rudolfix rudolfix merged commit 1436884 into devel Oct 10, 2023
34 of 37 checks passed
@rudolfix rudolfix deleted the pkey-use-der-not-pem branch October 10, 2023 12:49
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.

2 participants