

# Considerations and limitations for simplified trusted identity propagation

Consider the following points when you use simplified trusted identity propagation with Amazon EMR on EC2:
+ On the IAM federation path, authorization is based on user information by default. Group-based access control and revocation checking require that you attach an IAM Identity Center instance.
+ On the IAM federation path without an attached IAM Identity Center instance, the maximum identity lifetime is up to 7 days. A workload that runs longer, such as Spark structured streaming, fails when the maximum is reached. Attach an IAM Identity Center instance for a maximum of 90 days.
+ To revoke access, end the user's Identity Center session. Revocation is not immediate. Amazon EMR rechecks the user's identity about every 30 minutes, and stops renewing it when a recheck fails. Running work isn't terminated. Credentials that Amazon EMR already issued stay valid until they expire, up to 1 hour, so calls that do not evaluate the user's identity can continue until then.
+ Only the identity that started a Spark Connect or Apache Livy session can reconnect to it or run statements on it. The subject, issuer, and IAM Identity Center user ID must match.
+ Amazon EMR stores the identity context it uses for refresh in a service-owned table encrypted at rest with an AWS managed key. The user's subject is encrypted client side before it is stored.
+ For a request without an execution role, on a cluster where `EnableApplicationScopedIAMRole` is `false`, Amazon EMR uses the cluster's `DefaultApplicationScopedIAMRole` as the runtime role. If that field isn't set, callers that use simplified trusted identity propagation fall back to `IAMRoleForEMRIdentityCenterApplicationARN` on a cluster that uses IAM Identity Center, or to the instance profile on a cluster without IAM Identity Center. When `EnableApplicationScopedIAMRole` is `true`, Amazon EMR rejects a request that doesn't specify an execution role. A step or session runs without a propagated identity only when Amazon EMR falls back to the instance profile.
+ On a cluster where `EnableApplicationScopedIAMRole` is `false`, a request that names an execution role is accepted only on a cluster that uses IAM Identity Center, and only when it names the cluster's recorded role: `DefaultApplicationScopedIAMRole`, or `IAMRoleForEMRIdentityCenterApplicationARN` if `DefaultApplicationScopedIAMRole` isn't set. Amazon EMR rejects any other role. On a cluster without IAM Identity Center, a request that names a role is rejected.
+ When `EnableApplicationScopedIAMRole` is `false` and Amazon EMR uses the default role, the `elasticmapreduce:ExecutionRoleArn` condition in IAM policies doesn't constrain which role Amazon EMR uses. Control access through the caller's permissions for `AddJobFlowSteps`, `GetClusterSessionCredentials`, and `StartSession` on the cluster.
+ On a cluster where `EnableApplicationScopedIAMRole` is `true`, every request must pass an execution role. Amazon EMR never substitutes `DefaultApplicationScopedIAMRole`, so the `elasticmapreduce:ExecutionRoleArn` condition always applies.
+ To prevent confused-deputy use of an execution role, use `sts:ExternalId` in its trust policy. The `aws:SourceAccount` and `aws:SourceArn` condition keys don't apply to this `AssumeRole` call.
+ When you opt in, fine-grained access control with Lake Formation moves from an OAuth scope to a trusted session tag, which you set in the following places:
  + The authorized session tag value in the Lake Formation console.
  + `sts:TagSession` allowed in the cluster's instance profile role.
  + `sts:TagSession` in the trust policy of each execution role.
  + On the IAM Identity Center path, `sts:TagSession` in the trust policy of the IAM Identity Center application role.

  If any of these is missing, fine-grained access control jobs fail with a Lake Formation access denied error after the IAM Identity Center instance moves to the simplified experience (release 8.2 and higher).

  For more information, see [Migrate from the earlier version of trusted identity propagation](emr-tip-simplified-migrate.md).
+ Simplified trusted identity propagation is not supported on Amazon EMR on EC2 clusters that use Kerberos, use LDAP, or have multiple primary nodes. It is also not supported through an CloudFormation service role. Submitting an CloudFormation step on Amazon EMR on EC2 with the caller's own credentials works.
+ Identity propagation isn't supported across AWS Organizations. If a job reaches resources in another account by role chaining, the identity context isn't carried to the chained credentials when the target account is in a different organization.
+ Identity propagation through AWS Step Functions is not supported.
+ Simplified trusted identity propagation on Amazon EMR on EC2 is available in AWS commercial Regions, the AWS GovCloud (US) Regions, and the China Regions. It is not available in the ISO and ADC Regions.