Skip to main content

🧠 Azure Storage Account Cross Tenant Replication is enabled - prod.logic.yaml 🟒

Flags​

Input Type​

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

Uses​

Test Results πŸŸ’β€‹

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

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

Generation​

FileMD5
Open/ce/ca/azure/storage/disable-cross-tenant-replication/policy.yamlA3ADE0C066BDCE9ABD95BCD3D9DF3A42
Open/ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yamlEF09D74F7D782C5E805E269F1D34D045
Open/types/CA10__CaAzureStorageAccount__c/object.extracts.yaml92D968DD14AC8426E1942BC29A409B13
Open/ce/ca/azure/storage/disable-cross-tenant-replication/test-data.jsonDA3B15995258930C4CF9CE07620416B0

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/disable-cross-tenant-replication/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/storage/disable-cross-tenant-replication/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: "This Storage account allows Cross Tenant Replication."
remediationMessage: "Consider disabling Cross Tenant Replication if object replication policies will not involve storage accounts in different AAD tenants."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__crossTenantReplication__c"
right:
TEXT: "Allow"
- status: "INCOMPLIANT"
currentStateMessage: "Cross Tenant Replication is not explicitly denied."
remediationMessage: "Consider disabling Cross Tenant Replication since the storage account can still participate in object replication policies across tenants."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__crossTenantReplication__c"
- status: "COMPLIANT"
currentStateMessage: "Cross Tenant Replication is denied."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__crossTenantReplication__c"
right:
TEXT: "Deny"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."