View a markdown version of this page

Auditing simplified trusted identity propagation - Amazon EMR

Auditing simplified trusted identity propagation

For supported workloads, each action that Amazon EMR on EKS takes on the user's behalf is attributable to the individual user. Amazon EMR on EKS records the identity in its own AWS CloudTrail management events, such as StartJobRun and StartSession, and downstream services record it in theirs. The identity is also available in system tables on Amazon EMR releases 8.2 and higher.

CloudTrail records by path

CloudTrail records the role session that made the call in the userIdentity element, and identifies the workforce user in the onBehalfOf section. The recorded onBehalfOf fields depend on the path. For the full list of fields, see CloudTrail userIdentity element in the AWS CloudTrail User Guide.

On the IAM Identity Center path, onBehalfOf records the Identity Center userId, the identityStoreArn, the identityCenterInstanceArn, the subject, the subjectType, which is user, and the issuer, which is the Identity Center instance ARN. The following example shows the userIdentity element for an action on the IAM Identity Center path.

"userIdentity": { "type": "AssumedRole", "principalId": "AROAEXAMPLE:example-user-1", "arn": "arn:aws:sts::111122223333:assumed-role/DataAnalystRole/example-user-1", "accountId": "111122223333", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AROAEXAMPLE", "arn": "arn:aws:iam::111122223333:role/DataAnalystRole", "accountId": "111122223333", "userName": "DataAnalystRole" } }, "onBehalfOf": { "userId": "544894e8-80c1-707f-60e3-3ba6510dfac1", "identityStoreArn": "arn:aws:identitystore::111122223333:identitystore/d-1234567890", "identityCenterInstanceArn": "arn:aws:sso:::instance/ssoins-1234567890abcdef", "subject": "example-user-1", "subjectType": "user", "issuer": "arn:aws:sso:::instance/ssoins-1234567890abcdef" } }

On the IAM federation path, onBehalfOf records the subject, the subjectType, which is user, the issuer, and the federatedProviderArn, which is the ARN of the IAM SAML or OIDC provider. The following example shows the userIdentity element for an action on the IAM federation path.

"userIdentity": { "type": "AssumedRole", "principalId": "AROAEXAMPLE:example-user-1", "arn": "arn:aws:sts::111122223333:assumed-role/DataAnalystRole/example-user-1", "accountId": "111122223333", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AROAEXAMPLE", "arn": "arn:aws:iam::111122223333:role/DataAnalystRole", "accountId": "111122223333", "userName": "DataAnalystRole" } }, "onBehalfOf": { "subject": "example-user-1", "subjectType": "user", "issuer": "idp.example.com", "federatedProviderArn": "arn:aws:iam::111122223333:oidc-provider/idp.example.com" } }
Note

Identity propagation between services appears as standard AssumeRole events rather than the token-exchange events used by the earlier version. If your security information and event management (SIEM) rules look for the earlier token-exchange events, update them to look for AssumeRole events.

System tables

The propagated identity is available in system tables, which require Amazon EMR release 8.2 and higher. For more information, see Use Amazon EMR system tables in the Amazon EMR Management Guide.