Skip to main content

🧠 Azure Key Vault Soft Delete and Purge Protection functions are not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure Key VaultCA10__CaAzureKeyVault__c318

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__softDelete__c') == 'Disabled'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__purgeProtection__c') != 'Enabled'βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10__purgeProtection__c') == 'Enabled' && extract('CA10__softDelete__c') == 'Enabled'βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/key-vault/soft-delete-and-purge-protection/policy.yaml116BE035C201EA3629BEA61BC50A7305
Open/ce/ca/azure/key-vault/soft-delete-and-purge-protection/prod.logic.yaml9A06E6BB38871CF56693C5F40E3AE4D3
Open/ce/ca/azure/key-vault/soft-delete-and-purge-protection/test-data.json9CD8B266A0A3A9974D607D6182786FD7
Open/types/CA10__CaAzureKeyVault__c/object.extracts.yaml6C8158AF4E8A90E532020A68611A20C7

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/key-vault/soft-delete-and-purge-protection/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/key-vault/soft-delete-and-purge-protection/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/key-vault/soft-delete-and-purge-protection/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/key-vault/soft-delete-and-purge-protection/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/key-vault/soft-delete-and-purge-protection/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAzureKeyVault__c"
importExtracts:
- file: "/types/CA10__CaAzureKeyVault__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Soft Delete is disabled. The Purge Protection is effective only if Soft Delete is also enabled."
remediationMessage: "Consider enabling Soft Delete and Purge Protection functions."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__softDelete__c"
right:
TEXT: "Disabled"
- status: "INCOMPLIANT"
currentStateMessage: "The Purge Protection is disabled."
remediationMessage: "Consider enabling Purge Protection function."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__purgeProtection__c"
right:
TEXT: "Enabled"
- status: "COMPLIANT"
currentStateMessage: "The Soft Delete and Purge Protection functions are enabled."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__purgeProtection__c"
right:
TEXT: "Enabled"
- IS_EQUAL:
left:
EXTRACT: "CA10__softDelete__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."