Hi y'all. If I run this bit of code, is my passwor...
# ask-community
k
Hi y'all. If I run this bit of code, is my password getting seen/logged anywhere (in plain text) in Prefect Cloud? Thanks!
Copy code
from prefect.blocks.system import Secret

pwd = Secret.load("db-password")
print(pwd.get())
1
n
hi @kiran - it would only be logged in plain text if you're doing that
print
from within a flow or task where
log_prints=True
note that this setting is inherited, that is, if a parent flow has
log_prints=True
then all child subflows or tasks will inherit that setting unless they explicitly opt out with
log_prints=False
k
Great thanks for this info!
catjam 1