Release· Databricks release notes (AWS)
Scala UDFs can now read Unity Catalog secrets
Session-scoped and Unity Catalog Scala UDFs can now access secrets managed in Unity Catalog. Session-scoped UDFs use the caller's permissions, while Unity Catalog Scala UDFs declare secrets in a SECRETS clause and use the function owner's permissions. Users must check the stated environment, Databricks Runtime, access mode, and SQL warehouse requirements before using this in a UDF.
Learners using UDFs need to understand which identity is used when a function reads a secret.