-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mariaDBConvertToARM
- Loading branch information
Showing
39 changed files
with
5,622 additions
and
4,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
checkov/cloudformation/checks/resource/aws/CognitoUnauthenticatedIdentities.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from typing import Any | ||
|
||
from checkov.common.models.enums import CheckResult, CheckCategories | ||
from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck | ||
|
||
|
||
class CognitoUnauthenticatedIdentities(BaseResourceValueCheck): | ||
def __init__(self) -> None: | ||
name = "Ensure AWS Cognito identity pool does not allow unauthenticated guest access" | ||
id = "CKV_AWS_366" | ||
supported_resources = ('AWS::Cognito::IdentityPool',) | ||
categories = (CheckCategories.IAM,) | ||
super().__init__( | ||
name=name, | ||
id=id, | ||
categories=categories, | ||
supported_resources=supported_resources, | ||
missing_block_result=CheckResult.FAILED, | ||
) | ||
|
||
def get_expected_value(self) -> Any: | ||
return False | ||
|
||
def get_inspected_key(self) -> str: | ||
return 'Properties/AllowUnauthenticatedIdentities' | ||
|
||
|
||
check = CognitoUnauthenticatedIdentities() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.