Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding warning rule for cognito IdentityPool AllowUnauthenticatedIdentities - #68 #372

Merged

Conversation

tmcelhattan
Copy link
Contributor

@tmcelhattan tmcelhattan commented Feb 12, 2020

#68
Add rule to warn if AWS::Cognito::IdentityPool has AllowUnauthenticatedIdentities property set to 'true'. This property should be false but CAN be true only if the proper IAM role and permissions are established for unauthenticated users.

@tmcelhattan tmcelhattan changed the title Adding warning rule for cognito AllowUnauthenticatedIdentities Adding warning rule for cognito IdentityPool AllowUnauthenticatedIdentities Feb 13, 2020
@tmcelhattan tmcelhattan requested a review from a user February 13, 2020 16:49
@tmcelhattan tmcelhattan self-assigned this Feb 13, 2020
@tmcelhattan tmcelhattan changed the title Adding warning rule for cognito IdentityPool AllowUnauthenticatedIdentities Adding warning rule for cognito IdentityPool AllowUnauthenticatedIdentities - #68 Feb 13, 2020
…f a property is referencing a parameter and another method for getting that parameter's Default value.
end

def violating_identity_pool?(identity_pool)
ip_prop = identity_pool.allowUnauthenticatedIdentities
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same issue with parameter subsitution values as for the user pool PR

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can simplify the parameter bit same way as we did for UserPool but other than that looks good

Trey McElhattan added 2 commits February 17, 2020 16:04
@ghost ghost merged commit a0ed19c into master Feb 17, 2020
@ghost ghost deleted the feature/68_cognito_identity_pool_allow_unauntheticatedidentities branch February 26, 2020 15:05
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant