Skip to content

Commit

Permalink
use private-key (#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
Future-Outlier authored Aug 2, 2024
1 parent bcfbb80 commit 001b8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/types/structured/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_private_key() -> bytes:
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization

pk_string = flytekit.current_context().secrets.get("private_key", "snowflake", encode_mode="r")
pk_string = flytekit.current_context().secrets.get("private-key", "snowflake", encode_mode="r")

# Cryptography needs the string to be stripped and converted to bytes
pk_string = pk_string.strip().encode()
Expand Down

0 comments on commit 001b8ad

Please sign in to comment.