-
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.
feat(general): Update range includes to handle range values (#6867)
* Update to include ranges * Fix mypy * Fix tests * Barak fixes
- Loading branch information
Showing
8 changed files
with
172 additions
and
45 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
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...checks_infra/attribute_solvers/range_includes_solver/JsonPathRangeIncludesListWRange.yaml
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,16 @@ | ||
metadata: | ||
name: "example" | ||
category: "GENERAL_SECURITY" | ||
id: "JsonPathRangeIncludesListWRange" | ||
scope: | ||
provider: "AWS" | ||
definition: | ||
cond_type: "attribute" | ||
resource_types: | ||
- "test" | ||
attribute: "range" | ||
operator: "jsonpath_range_includes" | ||
value: | ||
- 200 | ||
- 3000-4000 | ||
- "400-500" |
16 changes: 16 additions & 0 deletions
16
...m/graph/checks_infra/attribute_solvers/range_includes_solver/RangeIncludesListWRange.yaml
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,16 @@ | ||
metadata: | ||
name: "example" | ||
category: "GENERAL_SECURITY" | ||
id: "RangeIncludesListWRange" | ||
scope: | ||
provider: "AWS" | ||
definition: | ||
cond_type: "attribute" | ||
resource_types: | ||
- "test" | ||
attribute: "range" | ||
operator: "range_includes" | ||
value: | ||
- 200 | ||
- 3000-4000 | ||
- "400-500" |
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
16 changes: 16 additions & 0 deletions
16
...infra/attribute_solvers/range_not_includes_solver/JsonPathRangeNotIncludesListWRange.yaml
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,16 @@ | ||
metadata: | ||
name: "example" | ||
category: "GENERAL_SECURITY" | ||
id: "JsonPathRangeNotIncludesListWRange" | ||
scope: | ||
provider: "AWS" | ||
definition: | ||
cond_type: "attribute" | ||
resource_types: | ||
- "test" | ||
attribute: "range" | ||
operator: "jsonpath_range_not_includes" | ||
value: | ||
- 200 | ||
- 3000-4000 | ||
- "400-500" |
16 changes: 16 additions & 0 deletions
16
.../checks_infra/attribute_solvers/range_not_includes_solver/RangeNotIncludesListWRange.yaml
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,16 @@ | ||
metadata: | ||
name: "example" | ||
category: "GENERAL_SECURITY" | ||
id: "RangeNotIncludesListWRange" | ||
scope: | ||
provider: "AWS" | ||
definition: | ||
cond_type: "attribute" | ||
resource_types: | ||
- "test" | ||
attribute: "range" | ||
operator: "range_not_includes" | ||
value: | ||
- 200 | ||
- 3000-4000 | ||
- "400-500" |
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