Skip to main content

🧠 Azure PostgreSQL Single Server Infrastructure Double Encryption is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Azure PostgreSQL ServerCA10Z1__CaAzurePostgreSqlServer__c719

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10Z1__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10Z1__infrastructureEncryption__c') == 'Disabled'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10Z1__infrastructureEncryption__c') == 'Enabled'βœ”οΈ null
🟒test4βœ”οΈ 101βœ”οΈ CA10Z1__infrastructureEncryption__c.isEmpty()βœ”οΈ null

Generation​

FileMD5
Open/ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/policy.yamlDE7083540593B761B5B5CD2AFC743D6C
Open/ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yamlED57EEB07B626DABEAECEFA9702B8128
Open/types/CA10Z1__CaAzurePostgreSqlServer__c/object.extracts.yaml08BBA6DB6D72395AA7E05F67B74F9223
Open/ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/test-data.jsonD44AF29F1ACFE8099392ACA5A24DB60D

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/azure/postgresql-database/single-server-infrastructure-double-encryption/prod.logic.yaml

Content​

Open File

---
inputType: "CA10Z1__CaAzurePostgreSqlServer__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10Z1__CaAzurePostgreSqlServer__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "PostgreSQL Single Server Infrastructure Encryption is disabled."
remediationMessage: "Consider enabling PostgreSQL Single Server Infrastructure Encryption."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__infrastructureEncryption__c"
right:
TEXT: "Disabled"
- status: "COMPLIANT"
currentStateMessage: "PostgreSQL Single Server Infrastructure Encryption is enabled."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__infrastructureEncryption__c"
right:
TEXT: "Enabled"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."