What is the canonical way to get the value of a Se...
# ask-community
k
What is the canonical way to get the value of a Secret block? Inspecting the code, I can do:
Copy code
from prefect.blocks.system import Secret

secret_block = Secret.load("BLOCK_NAME")

# Access the stored secret
secret_block.get()
print(secret_block.value._secret_value)
Is this the "correct" approach?