Skip to content

Commit

Permalink
[DC] Fixed AWS CloudTrail errors when mfaAuthenticated is str (#336)
Browse files Browse the repository at this point in the history
Sometimes CloudTrail logs have

    userIdentity.sessionContext.attributes.mfaAuthenticated == '*undefined*'
  • Loading branch information
alldoami authored and sfc-gh-afedorov committed Sep 20, 2019
1 parent 10635d8 commit 977061f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectors/aws_cloudtrail.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def finalize(connection_name):
, value:userIdentity.invokedBy::STRING user_identity_invokedby
, value:userIdentity.accessKeyId::STRING user_identity_access_key_id
, value:userIdentity.userName::STRING user_identity_username
, value:userIdentity.sessionContext.attributes.mfaAuthenticated::STRING user_identity_session_context_attributes_mfa_authenticated
, TRY_CAST(value:userIdentity.sessionContext.attributes.mfaAuthenticated::STRING AS BOOLEAN) user_identity_session_context_attributes_mfa_authenticated
, value:userIdentity.sessionContext.attributes.creationDate::STRING user_identity_session_context_attributes_creation_date
, value:userIdentity.sessionContext.sessionIssuer.type::STRING user_identity_session_context_session_issuer_type
, value:userIdentity.sessionContext.sessionIssuer.principalId::STRING user_identity_session_context_session_issuer_principal_id
Expand Down

0 comments on commit 977061f

Please sign in to comment.