user_secrets
Access secrets that are private to you. User secrets are private to the authenticated user — they are not shared with your team. Requires a paid plan.
import fused
@fused.udf
def udf():
val = fused.user_secrets["MY_KEY"]
...
Overview
fused.user_secrets is a UserSecretsManager object that provides read-only access to secrets owned by the authenticated user. Unlike fused.secrets (team secrets), user secrets follow you across execution environments and are not visible to other team members.
To create, update, or delete user secrets, use the Workbench UI under Integrations & secrets.
Usage
Accessing secrets
import fused
@fused.udf
def udf():
val = fused.user_secrets["MY_KEY"]
# or
val = fused.user_secrets.MY_KEY
...
Listing secret keys
import fused
@fused.udf
def udf():
keys = list(fused.user_secrets)
...
Security notes
- User secrets are private to the authenticated user
- Secrets are stored encrypted in the Fused backend
- Never log or return secret values from UDFs
See also
fused.secretsfor team-shared secrets scoped to an execution environment- Secrets Management for a full guide on storing, accessing, and securing secrets