diff --git a/flytekit/types/structured/snowflake.py b/flytekit/types/structured/snowflake.py index c603b55669..19ac538af2 100644 --- a/flytekit/types/structured/snowflake.py +++ b/flytekit/types/structured/snowflake.py @@ -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()