-
Notifications
You must be signed in to change notification settings - Fork 27
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: Support for Base64 String Private key #341
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kronnk, this is a very comprehensive change!
Just some minor comments.
target_snowflake/connector.py
Outdated
key_content = self.config["private_key"].encode() | ||
|
||
private_key = self.config["private_key"] | ||
self.logger.debug("Reading private key from config: %s", private_key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a risk that will leak the private key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i should have removed that.
Thanks! |
Something I missed: we should probably update the |
This pull request includes significant updates to the Meltano configuration and enhancements to the Snowflake connector. The changes improve configuration management and add new functionality for handling private keys.
Meltano Configuration Updates:
default_environment
andenvironments
to specify deployment environments. (meltano.yml
: meltano.ymlL3-R114)target-snowflake
loader settings to include new validation groups and reorganized settings for better readability. (meltano.yml
: meltano.ymlL3-R114)Snowflake Connector Enhancements:
base64
,binascii
, andwarn
to handle private key formats and deprecations. (target_snowflake/connector.py
: target_snowflake/connector.pyR3-R10)SingerSDKDeprecationWarning
to warn users about using private key pem formats. (target_snowflake/connector.py
: target_snowflake/connector.pyR19)get_private_key
method to support both PEM and base64 encoded private keys, with appropriate logging and error handling. (target_snowflake/connector.py
: target_snowflake/connector.pyL131-R151)