AWS emr: Add Lake Formation governed UDF limits and revocation guidance
Summary
Adds considerations for Lake Formation-governed UDFs: release requirements, a 10-UDF-per-application/job/session limit, required SELECT on read tables, and details on how permission revocation (including EXECUTE from the runtime role, up to 1 hour, and valid temporary credentials) takes effect. Also notes system profile logs may include governed UDF output and that custom-class UDFs remain unsupported.
Security assessment
Documents authorization semantics for Lake Formation-governed UDFs, notably that revocation is not immediate, temporary credentials stay valid until expiry, and EXECUTE revocation can lag up to an hour — directly relevant to least-privilege enforcement and residual-access risk. It is guidance, not a response to a disclosed vulnerability.
Evidence
+ * Revoking Lake Formation permissions on a governed user-defined function doesn't stop running job runs and sessions immediately. To stop access fastest, cancel the job runs and sessions that declare the user-defined function. Revoking the user-defined function's `SELECT` on a table applies to new data access requests, and temporary credentials that Lake Formation already issued remain valid until they expire. Revoking `EXECUTE` from the job runtime role takes effect when the current authorization expires, after at most 1 hour. For details, see [Security considerations](./emr-serverless-lf-udf.html#emr-serverless-lf-udf-security).
Diff
diff --git a/emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable-considerations.md b/emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable-considerations.md index 3aecbf8..9ac2e0c 100644 --- a//emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable-considerations.md +++ b//emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable-considerations.md @@ -25,0 +26,8 @@ When you enable Lake Formation for a Spark job on EMR Serverless, the job launch + * Lake Formation-governed user-defined functions are supported with release `emr-7.14.0` and later, or `emr-spark-8.2.0` and later. + + * An application, job run, or session can declare up to 10 governed user-defined functions, in the same AWS Region and partition as the application. + + * Every declared user-defined function must have `SELECT` on each table that the job run or session reads with fine-grained access control. + + * Revoking Lake Formation permissions on a governed user-defined function doesn't stop running job runs and sessions immediately. To stop access fastest, cancel the job runs and sessions that declare the user-defined function. Revoking the user-defined function's `SELECT` on a table applies to new data access requests, and temporary credentials that Lake Formation already issued remain valid until they expire. Revoking `EXECUTE` from the job runtime role takes effect when the current authorization expires, after at most 1 hour. For details, see [Security considerations](./emr-serverless-lf-udf.html#emr-serverless-lf-udf-security). + @@ -44 +52 @@ When you enable Lake Formation for a Spark job on EMR Serverless, the job launch - * UDTs, HiveUDFs, and any user-defined function that involves custom classes + * UDTs, HiveUDFs, and any user-defined function that involves custom classes. Starting with release `emr-7.14.0` and later, or `emr-spark-8.2.0` and later, Lake Formation-governed AWS Glue user-defined functions that you declare in `spark.aws.lakeformation.artifacts` are supported. For more information, see [Using user-defined functions with Lake Formation fine-grained access control](./emr-serverless-lf-udf.html). @@ -99,0 +108,2 @@ When you enable Lake Formation for a Spark job on EMR Serverless, the job launch + * System profile logs can include output from governed user-defined functions. For more information, see [Security considerations](./emr-serverless-lf-udf.html#emr-serverless-lf-udf-security). + @@ -124 +134 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please -Open-table format support +Governed user-defined functions