View a markdown version of this page

Simplified trusted identity propagation - Amazon EMR

Simplified trusted identity propagation

Simplified trusted identity propagation is the recommended way to propagate a workforce user's identity through Amazon EMR on EKS to downstream AWS services. When a user runs a Spark workload, Amazon EMR on EKS carries that user's identity to AWS Lake Formation, Amazon S3 Access Grants, and S3 table grants. Those services then authorize and audit access as the individual user rather than as a shared role.

This topic describes simplified trusted identity propagation for Amazon EMR on EKS. For the other deployment options, see the Amazon EMR on EC2 and Amazon EMR Serverless documentation.

What changed from the earlier version

Simplified trusted identity propagation changes the following from the earlier version of trusted identity propagation:

  • With the earlier version, Amazon EMR created the Identity Center application for you. The simplified version doesn't use one.

  • There are no OAuth scopes to manage.

  • There is no identity-propagation configuration to add to Amazon EMR on EKS. On supported releases, identity propagation applies automatically after you complete the one-time setup for your chosen path.

  • There is no sts:SetContext permission to add to execution roles.

  • Workforce users who reach AWS through IAM federation, not only through IAM Identity Center, can propagate their identity.

The two paths

Simplified trusted identity propagation supports two paths. You can use both paths in the same account during a transition.

  • IAM Identity Center path – An administrator opts in once in the IAM Identity Center console, at the account or organization level. For more information, see Enable the simplified experience in the IAM Identity Center User Guide.

  • IAM federation path – An administrator configures a context provider once in IAM, for users who reach AWS through SAML or OIDC federation. For more information, see Configure a context provider for trusted identity propagation in the IAM User Guide.

The identity context is the identity information about the workforce user that travels with the credentials. The identity context that Amazon EMR on EKS propagates depends on the path:

  • On the IAM Identity Center path, the context carries the user's subject (for example, the corporate email), the Identity Center user ID, the identity store ARN, and the Identity Center session ID.

  • On the IAM federation path, the context carries the subject, the subject type, the issuer, and, if you attach an IAM Identity Center instance, the Identity Center instance ARN.

How it works

A user authenticates through IAM Identity Center, or through your corporate identity provider using IAM federation, and works with Amazon EMR on EKS. When a session or job runs on a supported release, Amazon EMR on EKS reads the identity context on the incoming credentials and propagates it to downstream services for authorization and auditing.

If the incoming credentials carry no identity context, or the role needed to carry the identity is not configured, Amazon EMR on EKS runs the workload under the job execution role and does not propagate a user identity. The identity is dropped rather than causing an error.

Supported workloads, releases, and entry points

For Amazon EMR on EKS, simplified trusted identity propagation is available with release 8.2 and higher. It supports the following workloads:

  • Spark batch jobs that you run through the StartJobRun API. Batch jobs are new with simplified trusted identity propagation.

  • Apache Livy interactive sessions.

  • Spark Connect sessions, which are new with simplified trusted identity propagation.

You reach these workloads through the Amazon EMR API, the AWS CLI, the AWS SDKs, the console, and Amazon SageMaker Unified Studio. Workloads on releases earlier than 8.2 continue to use the earlier version of trusted identity propagation.