- 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.
		
			
				
	
	
		
			24 lines
		
	
	
		
			589 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			589 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "summary": {
 | 
						|
    "policy": "serverless",
 | 
						|
    "policyDigest": "sha256:simulation-serverless",
 | 
						|
    "changed": 2
 | 
						|
  },
 | 
						|
  "diffs": [
 | 
						|
    {
 | 
						|
      "findingId": "library:pkg/aws-lambda@1.0.0",
 | 
						|
      "baselineStatus": "Pass",
 | 
						|
      "projectedStatus": "Blocked",
 | 
						|
      "rule": "block_any_high",
 | 
						|
      "notes": "Serverless workloads block High+ severities."
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "findingId": "image:sha256:untrusted-base",
 | 
						|
      "baselineStatus": "Pass",
 | 
						|
      "projectedStatus": "Blocked",
 | 
						|
      "rule": "forbid_unpinned_base",
 | 
						|
      "notes": "Base image must be pinned (no :latest)."
 | 
						|
    }
 | 
						|
  ]
 | 
						|
}
 |