Skip to main content

🧠 Azure Storage Account Default Network Access Rule is not set to Deny - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure Storage AccountCA10__CaAzureStorageAccount__c23113

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__networkAclsDefaultAction__c') == 'Allow'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__networkAclsDefaultAction__c') == 'Deny'βœ”οΈ null
🟒test4βœ”οΈ 101βœ”οΈ CA10__networkAclsDefaultAction__c.isEmpty()βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/storage/deny-default-network-access/policy.yaml914C16160C5AB81A0BE6D4090A107CC5
Open/ce/ca/azure/storage/deny-default-network-access/prod.logic.yaml464658F028D0C7B70FAFF377D3AB8306
Open/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml92D968DD14AC8426E1942BC29A409B13
Open/ce/ca/azure/storage/deny-default-network-access/test-data.json6BD64B20D0E721899A7C817360899707

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/deny-default-network-access/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/deny-default-network-access/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/deny-default-network-access/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/deny-default-network-access/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/storage/deny-default-network-access/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAzureStorageAccount__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Default network access is not restricted."
remediationMessage: "Consider configuring the default action to deny access to traffic from all networks."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__networkAclsDefaultAction__c"
right:
TEXT: "Allow"
- status: "COMPLIANT"
currentStateMessage: "The default action is configured to deny access to traffic from all networks."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__networkAclsDefaultAction__c"
right:
TEXT: "Deny"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."