π§ Google Dataproc Cluster is not encrypted using Customer-Managed Encryption Key - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml
- Located in: π Google Dataproc Cluster is not encrypted using Customer-Managed Encryption Key π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Google Dataproc Cluster | CA10__CaGoogleDataprocCluster__c | 1 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:46:56.703075878Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 111 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | 112 | βοΈ 199 | βοΈ extract('CA10__encryptionConfigKmsKeyName__c').isEmpty() | βοΈ null |
π’ | 113 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/dataproc/cluster-encryption/policy.yaml | CB125BBCFE6876051855EC266BC3794D |
Open | /ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml | FCA624397F8D49C150E0A4ECB7B3EDE9 |
Open | /ce/ca/google/dataproc/cluster-encryption/test-data.json | F1C378B80465FAAB255AB40A5E31E3C6 |
Open | /types/CA10__CaGoogleDataprocCluster__c/object.extracts.yaml | 262A8BDF8A1F9D109A47EF253BDFC767 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/dataproc/cluster-encryption/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleDataprocCluster__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleDataprocCluster__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Dataproc Cluster is not encrypted with Customer-Managed Encryption Key."
remediationMessage: "Use Customer-Managed Encryption Key for Dataproc Cluster"
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__encryptionConfigKmsKeyName__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Dataproc Cluster is encrypted with Customer-Managed Encryption Key."