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: Allow feast snowflake to read in byte string for private-key authentication #4384

Merged
Merged
3 changes: 3 additions & 0 deletions sdk/python/feast/infra/materialization/snowflake_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class SnowflakeMaterializationEngineConfig(FeastConfigBaseModel):
private_key: Optional[str] = None
""" Snowflake private key file path"""

private_key_content: Optional[bytes] = None
""" Snowflake private key stored as bytes"""

private_key_passphrase: Optional[str] = None
""" Snowflake private key file passphrase"""

Expand Down
3 changes: 3 additions & 0 deletions sdk/python/feast/infra/offline_stores/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ class SnowflakeOfflineStoreConfig(FeastConfigBaseModel):
private_key: Optional[str] = None
""" Snowflake private key file path"""

private_key_content: Optional[bytes] = None
""" Snowflake private key stored as bytes"""

private_key_passphrase: Optional[str] = None
""" Snowflake private key file passphrase"""

Expand Down
3 changes: 3 additions & 0 deletions sdk/python/feast/infra/online_stores/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class SnowflakeOnlineStoreConfig(FeastConfigBaseModel):
private_key: Optional[str] = None
""" Snowflake private key file path"""

private_key_content: Optional[bytes] = None
""" Snowflake private key stored as bytes"""

private_key_passphrase: Optional[str] = None
""" Snowflake private key file passphrase"""

Expand Down
3 changes: 3 additions & 0 deletions sdk/python/feast/infra/registry/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class SnowflakeRegistryConfig(RegistryConfig):
private_key: Optional[str] = None
""" Snowflake private key file path"""

private_key_content: Optional[bytes] = None
""" Snowflake private key stored as bytes"""

private_key_passphrase: Optional[str] = None
""" Snowflake private key file passphrase"""

Expand Down
26 changes: 21 additions & 5 deletions sdk/python/feast/infra/utils/snowflake/snowflake_utils.py