Add Policy DSL Validator, Schema Exporter, and Simulation Smoke tools
- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
This commit is contained in:
12
samples/policy/serverless/diffs.json
Normal file
12
samples/policy/serverless/diffs.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"findingId": "library:pkg/aws-lambda@1.0.0",
|
||||
"status": "Blocked",
|
||||
"rule": "block_any_high"
|
||||
},
|
||||
{
|
||||
"findingId": "image:sha256:untrusted-base",
|
||||
"status": "Blocked",
|
||||
"rule": "forbid_unpinned_base"
|
||||
}
|
||||
]
|
||||
15
samples/policy/serverless/findings.json
Normal file
15
samples/policy/serverless/findings.json
Normal file
@@ -0,0 +1,15 @@
|
||||
[
|
||||
{
|
||||
"findingId": "library:pkg/aws-lambda@1.0.0",
|
||||
"severity": "High",
|
||||
"source": "NVD",
|
||||
"environment": "serverless"
|
||||
},
|
||||
{
|
||||
"findingId": "image:sha256:untrusted-base",
|
||||
"severity": "Medium",
|
||||
"source": "NVD",
|
||||
"tags": ["image:latest-tag"],
|
||||
"environment": "serverless"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user