π§ Azure SQL Server Transparent Data Encryption Protector is not encrypted with Customer-managed key - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml
- Located in: π Azure SQL Server Transparent Data Encryption Protector is not encrypted with Customer-managed key π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure SQL Server | CA10__CaAzureSqlServer__c | 9 | 1 | 6 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:45:50.264366687Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
π’ | test2 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | test3 | βοΈ 199 | βοΈ extract('CA10__encryptionProtectorKind__c') == 'azurekeyvault' && extract('CA10__encryptionProtectorServerKeyType__c') == 'AzureKeyVault' && extract('CA10__encryptionProtectorUri__c').isNotEmpty() | βοΈ null |
π’ | test4 | βοΈ 101 | βοΈ CA10__encryptionProtectorKind__c.delegatedTo(CA10__encryptionProtectorKind__c).isEmpty() | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/policy.yaml | F433AAD7ABE4C01F67817206295CBD43 |
Open | /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml | BC79E4BF9316F4142F17D97D2ECFFADA |
Open | /types/CA10__CaAzureSqlServer__c/object.extracts.yaml | E77808BBEDF31D54E009EEA59AC5EF4B |
Open | /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/test-data.json | 100C25F318B197C267BDFD3583A72291 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAzureSqlServer__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureSqlServer__c/object.extracts.yaml"
conditions:
- status: "COMPLIANT"
currentStateMessage: "SQL Server's Transparent Data Encryption (TDE) protector is encrypted with Customer-managed key."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__encryptionProtectorKind__c"
right:
TEXT: "azurekeyvault"
- IS_EQUAL:
left:
EXTRACT: "CA10__encryptionProtectorServerKeyType__c"
right:
TEXT: "AzureKeyVault"
- NOT_EMPTY:
arg:
EXTRACT: "CA10__encryptionProtectorUri__c"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "SQL Server's Transparent Data Encryption (TDE) protector is not encrypted with Customer-managed key."
remediationMessage: "Consider encrypting SQL Server's Transparent Data Encryption (TDE) protector with Customer-managed key."