π§ Google GCE Instance is launched without Shielded VM enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml
- Located in: π Google GCE Instance is launched without Shielded VM enabled π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Google GCE Instance | CA10__CaGoogleGceInstance__c | 13 | 2 | 10 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:46:54.363316324Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | a4Z1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | a4Z2 | βοΈ 199 | βοΈ extract('CA10__shieldedIntegrityMonitoringState__c').contains('Enabled') && extract('CA10__shieldedVtpmState__c').contains('Enabled') | βοΈ null |
π’ | a4Z3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/compute-engine/instance-shielded-vm/policy.yaml | 4FBCBABC4060C5AC00CF6825B8B68B32 |
Open | /ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml | CA12818601743FF98A7A842ABF50B7EB |
Open | /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml | 95F28CC49887E4035F2848BC20DC25D1 |
Open | /ce/ca/google/compute-engine/instance-shielded-vm/test-data.json | B9068FAC725BA89F12584621475A3BC1 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/compute-engine/instance-shielded-vm/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleGceInstance__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml
conditions:
- status: "COMPLIANT"
currentStateMessage: "Compute instance is launched with Shielded VM enabled."
check:
AND:
args:
- CONTAINS:
arg:
EXTRACT: "CA10__shieldedIntegrityMonitoringState__c"
substring:
TEXT: "Enabled"
- CONTAINS:
arg:
EXTRACT: "CA10__shieldedVtpmState__c"
substring:
TEXT: "Enabled"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Compute instance is launched without Shielded VM enabled."
remediationMessage: "Update the instance to enable Shielded VM."