π§ Google GCE Instance Confidential Compute is not enabled - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml
- Located in: π Google GCE Instance Confidential Compute is not 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:48.787152576Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | a4Z1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | a4Z2 | βοΈ 199 | βοΈ not(extract('CA10__machineTypeName__c').startsWith('n2d-')) | βοΈ null |
π’ | a4Z3 | βοΈ 299 | βοΈ extract('CA10__confidentialComputeStatus__c').contains('Enabled') | βοΈ null |
π’ | a4Z4 | βοΈ 300 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/compute-engine/compute-instance-confidential-computing/policy.yaml | 912C4FF66EBF148C1188E1AB0C044039 |
Open | /ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml | 0E4684FA5ECF67D8A576BEB5878CC18A |
Open | /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml | 95F28CC49887E4035F2848BC20DC25D1 |
Open | /ce/ca/google/compute-engine/compute-instance-confidential-computing/test-data.json | 39846B7C7C7E8FA984392A84F545F24B |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/compute-engine/compute-instance-confidential-computing/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleGceInstance__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleGceInstance__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "Confidential Computing is currently only supported on N2D and C2D machines."
check:
NOT:
arg:
STARTS_WITH:
arg:
EXTRACT: "CA10__machineTypeName__c"
prefix:
TEXT: "n2d-"
- status: "COMPLIANT"
currentStateMessage: "Instance has Confidential Computing enabled."
check:
CONTAINS:
arg:
EXTRACT: "CA10__confidentialComputeStatus__c"
substring:
TEXT: "Enabled"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Instance has Confidential Computing disabled."
remediationMessage: "Enable Confidential Computing."