π§ Google BigQuery Table is not encrypted with Customer-Managed Encryption Key (CMEK) - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml
- Located in: π Google BigQuery Table is not encrypted with Customer-Managed Encryption Key (CMEK) π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Google BigQuery Table | CA10__CaGoogleBigQueryTable__c | 2 | 1 | 1 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:46:48.099606774Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | a7nV0 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test1 | βοΈ 199 | βοΈ extract('CA10__type__c') != 'TABLE' | βοΈ null |
π’ | a7n01 | βοΈ 300 | βοΈ otherwise | βοΈ null |
π’ | a7n02 | βοΈ 299 | βοΈ extract('CA10__kmsKeyName__c').isNotEmpty() | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/google/big-query/table-cmek-encryption/policy.yaml | E40F9BB726411B9550D70FF309D36A82 |
Open | /ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml | 3C85BD4ED24E11D36A20D7947C830197 |
Open | /types/CA10__CaGoogleBigQueryTable__c/object.extracts.yaml | A4EDBCECFB5D8DD4128910ACAA9193BD |
Open | /ce/ca/google/big-query/table-cmek-encryption/test-data.json | 26E34D94DB018C5428F8A6EB18401023 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/google/big-query/table-cmek-encryption/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaGoogleBigQueryTable__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleBigQueryTable__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The encryption is only supported for Tables."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__type__c"
right:
TEXT: "TABLE"
- status: "COMPLIANT"
currentStateMessage: "The BigQuery Table is encrypted with a KMS Key."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__kmsKeyName__c"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The BigQuery Table is not encrypted with a KMS Key."
remediationMessage: "Set a KMS key for the BigQuery Table."