π§ Azure Databricks Workspace is not encrypted using customer-managed key (CMK) - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
- Located in: π Azure Databricks Workspace is not encrypted using customer-managed key (CMK) π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Databricks Workspace | CA10Z1__CaAzureDatabricksWorkspace__c | 4 | 1 | 2 |
Usesβ
Test Results π’β
Generated at: 2025-07-21T17:37:22.098123059Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 001 | βοΈ 199 | βοΈ extract('CA10Z1__encryptionManagedDisksKeySource__c').isEmpty() | βοΈ null |
π’ | 002 | βοΈ 299 | βοΈ extract('CA10Z1__encryptionManagedDisksKeySource__c') != 'Microsoft.Keyvault' | βοΈ null |
π’ | 003 | βοΈ 399 | βοΈ extract('CA10Z1__encryptionManagedDisksKeySource__c') == 'Microsoft.Keyvault' | βοΈ null |
π’ | 004 | βοΈ 399 | βοΈ extract('CA10Z1__encryptionManagedDisksKeySource__c') == 'Microsoft.Keyvault' | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/databricks/customer-managed-keys/policy.yaml | 2E9F0E8390FADD7A6A6F25FCE7C7AE7C |
Open | /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml | 1297FF67DC45519644A1B60FDD084573 |
Open | /ce/ca/azure/databricks/customer-managed-keys/test-data.json | C380A82BEBF0876E6772B1A06E613241 |
Open | /types/CA10Z1__CaAzureDatabricksWorkspace__c/object.extracts.yaml | 386013C014351948A2036C32C9D43AB2 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/databricks/customer-managed-keys/prod.logic.yaml
Contentβ
---
inputType: "CA10Z1__CaAzureDatabricksWorkspace__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzureDatabricksWorkspace__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Databricks Workspace is not encrypted with a customer-managed key."
remediationMessage: "Encrypt the Databricks Workspace with a customer-managed key."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10Z1__encryptionManagedDisksKeySource__c"
- status: "INCOMPLIANT"
currentStateMessage: "The Databricks Workspace is encrypted with a Microsoft-managed key."
remediationMessage: "Encrypt the Databricks Workspace with a customer-managed key."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10Z1__encryptionManagedDisksKeySource__c"
right:
TEXT: "Microsoft.Keyvault"
- status: "COMPLIANT"
currentStateMessage: "The Databricks Workspace is encrypted with a customer-managed key."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__encryptionManagedDisksKeySource__c"
right:
TEXT: "Microsoft.Keyvault"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."