Skip to main content

🧠 Azure SQL Server Transparent Data Encryption Protector is not encrypted with Customer-managed key - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure SQL ServerCA10__CaAzureSqlServer__c916

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:45:50.264366687Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/policy.yamlF433AAD7ABE4C01F67817206295CBD43
Open/ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/prod.logic.yamlBC79E4BF9316F4142F17D97D2ECFFADA
Open/types/CA10__CaAzureSqlServer__c/object.extracts.yamlE77808BBEDF31D54E009EEA59AC5EF4B
Open/ce/ca/azure/sql-database/server-transparent-data-encryption-protector-with-cmk/test-data.json100C25F318B197C267BDFD3583A72291

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​

Open File

---
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."