Trusted identity propagation with AWS Glue ETL - AWS Glue
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Trusted identity propagation with AWS Glue ETL

Trusted identity propagation (TIP) carries the identity of the user who runs a AWS Glue Spark ETL job or interactive session through AWS Glue to downstream services such as AWS Lake Formation, Amazon S3 Access Grants, and Amazon Redshift. Those services then authorize and audit access as the individual user rather than as a shared execution role. Trusted identity propagation is available with AWS Glue 5.0 and later.

Users reach AWS Glue through one of two identity sources: IAM Identity Center, or IAM federation with a SAML or OIDC identity provider. This section describes trusted identity propagation for each source.

Overview

Trusted identity propagation lets administrators of connected AWS services grant and audit access to service data based on each user's identity and attributes, such as group membership. AWS Glue propagates each user's identity from interactive sessions and Spark ETL jobs to downstream services such as AWS Lake Formation, Amazon S3 Access Grants, and Amazon Redshift. Those services then authorize and audit access as the individual user rather than as a shared execution role.

The two identity sources work as follows:

Features and benefits

The AWS Glue interactive sessions and jobs integration with trusted identity propagation provides the following benefits. The simplified experience for TIP applies per-user fine-grained access control and auditing to both interactive sessions and jobs, and supports either IAM Identity Center or IAM federation:

  • The ability to enforce table-level authorization and fine-grained access control with propagated user identities on Lake Formation managed AWS Glue data catalog tables.

  • The ability to enforce authorization with propagated user identities on Amazon Redshift clusters.

  • The ability to track user actions from end to end for auditing.

  • The ability to enforce Amazon S3 prefix-level authorization with propagated user identities on Amazon S3 Access Grants-managed Amazon S3 prefixes.

  • The ability to apply per-user fine-grained access control and auditing to both AWS Glue interactive sessions and jobs with the simplified experience for TIP.

Use cases

Interactive Data Exploration and Analysis

Data engineers use their corporate identities to seamlessly access and analyze data across multiple AWS accounts. Through SageMaker Studio, they launch interactive Spark sessions through AWS Glue ETL, connecting to various data sources including Amazon S3 and the AWS Glue Data Catalog. As engineers explore datasets, Spark enforces fine-grained access controls defined in Lake Formation based on their identities, ensuring they can only view authorized data. All queries and data transformations are logged with the user's identity, creating a clear audit trail. This streamlined approach enables rapid prototyping of new analytics products while maintaining strict data governance across client environments.

Data Preparation and Feature Engineering

Data scientists from multiple research teams collaborate on complex projects using a unified data platform. They log into SageMaker Studio with their corporate credentials, immediately accessing a vast, shared data lake that spans multiple AWS accounts. As they begin feature engineering for new machine learning models, Spark sessions launched through AWS Glue ETL enforce Lake Formation's column and row-level security policies based on their propagated identities. Scientists can efficiently prepare data and engineer features using familiar tools, while compliance teams have assurance that every data interaction is automatically tracked and audited. This secure, collaborative environment accelerates research pipelines while maintaining the strict data protection standards required in regulated industries.

User-started job processing

A user can start an AWS Glue Spark ETL job run directly or through SageMaker Unified Studio. In both cases, AWS Glue propagates the user's corporate identity to downstream services such as Lake Formation, the AWS Glue Data Catalog, and Amazon S3 Access Grants. The job reads and writes only the data that the user is authorized to access. AWS Glue records every action the job takes under the user's identity, creating a complete audit trail. Job runs that a schedule or a trigger starts do not carry a user identity; they run with the execution role.

Integrations

AWS managed development environment

The following AWS managed client-facing applications support trusted identity propagation with AWS Glue interactive sessions:

With the simplified experience for trusted identity propagation, SageMaker Unified Studio can also drive AWS Glue jobs, not only interactive sessions. For more information, see Simplified experience for trusted identity propagation (recommended).

Sagemaker Unified Studio

To use trusted identity propagation with Sagemaker Unified Studio:

  1. Set up Sagemaker Unified Studio project with trusted identity propagation enabled as the client-facing development environment.

  2. Set up Lake Formation to enable fine-grained access control for AWS Glue tables based on the user or group in IAM Identity Center.

  3. Set up Amazon S3 Access Grants to enable temporary access to the underlying data locations in Amazon S3.

  4. Open Sagemaker Unified Studio JupyterLab IDE space and select AWS Glue as compute for notebook execution.

Customer managed self-hosted Notebook environment

To enable trusted identity propagation for users of custom-developed applications, see Access AWS services programmatically using trusted identity propagation in the AWS Security Blog.