-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add removed Go checks as deprecated
Signed-off-by: Nikita Pivkin <[email protected]>
- Loading branch information
Showing
20 changed files
with
440 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
|
||
Specify the exact permissions required, and to which resources they should apply instead of using wildcards. | ||
|
||
```yaml--- | ||
```yaml | ||
Resources: | ||
GoodPolicy: | ||
Type: 'AWS::IAM::Policy' | ||
Type: AWS::IAM::Policy | ||
Properties: | ||
PolicyName: CFNUsers | ||
PolicyDocument: | ||
Version: "2012-10-17" | ||
Statement: | ||
- Effect: Allow | ||
Action: | ||
- 's3:ListBuckets' | ||
Resource: 'specific-bucket' | ||
- s3:ListBuckets | ||
Resource: specific-bucket | ||
``` | ||
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# METADATA | ||
# title: IAM policy should avoid use of wildcards and instead apply the principle of least privilege | ||
# description: | | ||
# You should use the principle of least privilege when defining your IAM policies. This means you should specify each exact permission required without using wildcards, as this could cause the granting of access to certain undesired actions, resources and principals. | ||
# scope: package | ||
# schemas: | ||
# - input: schema["cloud"] | ||
# related_resources: | ||
# - https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html | ||
# custom: | ||
# id: AVD-AWS-0057 | ||
# avd_id: AVD-AWS-0057 | ||
# provider: aws | ||
# service: iam | ||
# severity: HIGH | ||
# short_code: no-policy-wildcards | ||
# deprecated: true | ||
# recommended_action: Specify the exact permissions required, and to which resources they should apply instead of using wildcards. | ||
# frameworks: | ||
# default: | ||
# - null | ||
# cis-aws-1.4: | ||
# - "1.16" | ||
# input: | ||
# selector: | ||
# - type: cloud | ||
# subtypes: | ||
# - service: iam | ||
# provider: aws | ||
# terraform: | ||
# links: | ||
# - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document | ||
# good_examples: checks/cloud/aws/iam/no_policy_wildcards.yaml | ||
# bad_examples: checks/cloud/aws/iam/no_policy_wildcards.yaml | ||
# cloudformation: | ||
# good_examples: checks/cloud/aws/iam/no_policy_wildcards.yaml | ||
# bad_examples: checks/cloud/aws/iam/no_policy_wildcards.yaml | ||
package builtin.aws.iam.aws0057 |
Oops, something went wrong.