AWS emr: Document Lake Formation-governed UDFs and their execution profile
Summary
Adds support for Lake Formation-governed AWS Glue user-defined functions (EMR 7.14+/emr-spark-8.2+) and clarifies that UDFs invoked by a Lake Formation row-level security policy or Data Catalog view run on the privileged system driver/executors, while query-invoked UDFs run on user profile executors.
Security assessment
The change documents a security-relevant trust-boundary exception: user-defined code invoked via Lake Formation RLS policies or Data Catalog views executes on the privileged system profile, which is important for understanding fine-grained access control isolation. It is documentation of behavior, not a fix for a specific vulnerability.
Evidence
+ 3. EMR Serverless sets up a second driver called the system driver and runs it in the system profile (with a privileged identity). EMR Serverless sets up an encrypted TLS channel between the two drivers for communication. The user driver uses the channel to send the job plans to the system driver. The system driver does not run user-submitted code. The exception is Lake Formation-governed user-defined functions that a Lake Formation row-level security policy or a Data Catalog view calls. For more information, see [Using user-defined functions with Lake Formation fine-grained access control](./emr-serverless-lf-udf.html). It runs full Spark and communicates with S3, and the Data Catalog for data access. It request executors and compiles the Job Plan into a sequence of execution stages.
Diff
diff --git a/emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable.md b/emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable.md index 13fb82e..58082d7 100644 --- a//emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable.md +++ b//emr/latest/EMR-Serverless-UserGuide/emr-serverless-lf-enable.md @@ -13 +13 @@ OverviewHow it worksEnable Lake FormationEnable runtime permissionsSet up runtim -With Amazon EMR releases 7.2.0 and higher, leverage AWS Lake Formation to apply fine-grained access controls on Data Catalog tables that are backed by S3. This capability lets you configure table, row, column, and cell level access controls for read queries within your Amazon EMR Serverless Spark jobs. To configure fine-grained access control for Apache Spark batch jobs and interactive sessions, use EMR Studio. Interactive Spark Connect sessions are also supported with release `emr-7.14.0` and later, or `emr-spark-8.1.0` and later. For more information, see [Fine-grained access control with AWS Lake Formation for Spark Connect sessions](./spark-connect.html#spark-connect-fgac). See the following sections to learn more about Lake Formation and how to use it with EMR Serverless. +With Amazon EMR releases 7.2.0 and higher, leverage AWS Lake Formation to apply fine-grained access controls on Data Catalog tables that are backed by S3. This capability lets you configure table, row, column, and cell level access controls for read queries within your Amazon EMR Serverless Spark jobs. To configure fine-grained access control for Apache Spark batch jobs and interactive sessions, use EMR Studio. Interactive Spark Connect sessions are also supported with release `emr-7.14.0` and later, or `emr-spark-8.1.0` and later. For more information, see [Fine-grained access control with AWS Lake Formation for Spark Connect sessions](./spark-connect.html#spark-connect-fgac). With release `emr-7.14.0` and later, or `emr-spark-8.2.0` and later, you can also run Lake Formation-governed AWS Glue user-defined functions. For more information, see [Using user-defined functions with Lake Formation fine-grained access control](./emr-serverless-lf-udf.html). See the following sections to learn more about Lake Formation and how to use it with EMR Serverless. @@ -44 +44 @@ The following is a high-level overview of how EMR Serverless gets access to data - 3. EMR Serverless sets up a second driver called the system driver and runs it in the system profile (with a privileged identity). EMR Serverless sets up an encrypted TLS channel between the two drivers for communication. The user driver uses the channel to send the job plans to the system driver. The system driver does not run user-submitted code. It runs full Spark and communicates with S3, and the Data Catalog for data access. It request executors and compiles the Job Plan into a sequence of execution stages. + 3. EMR Serverless sets up a second driver called the system driver and runs it in the system profile (with a privileged identity). EMR Serverless sets up an encrypted TLS channel between the two drivers for communication. The user driver uses the channel to send the job plans to the system driver. The system driver does not run user-submitted code. The exception is Lake Formation-governed user-defined functions that a Lake Formation row-level security policy or a Data Catalog view calls. For more information, see [Using user-defined functions with Lake Formation fine-grained access control](./emr-serverless-lf-udf.html). It runs full Spark and communicates with S3, and the Data Catalog for data access. It request executors and compiles the Job Plan into a sequence of execution stages. @@ -46 +46 @@ The following is a high-level overview of how EMR Serverless gets access to data - 4. EMR Serverless then runs the stages on executors with the user driver or system driver. User code in any stage is run exclusively on user profile executors. + 4. EMR Serverless then runs the stages on executors with the user driver or system driver. User code in any stage is run exclusively on user profile executors. Lake Formation-governed user-defined functions that your query calls also run on user profile executors; those that a Lake Formation row-level security policy or a Data Catalog view calls run on system profile executors.