Skip to main content

🧠 Google GCE Network DNS Policy Logging is not enabled - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Google GCE NetworkCA10__CaGoogleGceNetwork__c213

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-04-24T23:47:39.373936578Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒a4bDo0βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒a4b4P01βœ”οΈ 199βœ”οΈ isEmptyLookup('CA10__dnsPolicy__r')βœ”οΈ null
🟒a4bDo33βœ”οΈ 299βœ”οΈ extract('CA10__dnsPolicy__r.CA10__loggingStatus__c') != 'Enable'βœ”οΈ null
🟒a4b4P044βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/google/vpc/network-dns-policy-logging/policy.yaml36C1D986E32AFAB98A526D324C093264
Open/ce/ca/google/vpc/network-dns-policy-logging/prod.logic.yaml39EB161AF1830FE9F5424510CA5E09FE
Open/ce/ca/google/vpc/network-dns-policy-logging/test-data.jsonA1BEAC97E9CC8EDFD3A6A0D7265341FF
Open/types/CA10__CaGoogleGceNetwork__c/object.extracts.yaml8F9138803D14A08C803D065164BFC0CC
Open/types/CA10__CaGoogleCloudDnsPolicy__c/object.extracts.yamlCE8BEE5BA0362FB893E9DE846C2B2392

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/google/vpc/network-dns-policy-logging/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/google/vpc/network-dns-policy-logging/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/google/vpc/network-dns-policy-logging/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/google/vpc/network-dns-policy-logging/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/google/vpc/network-dns-policy-logging/prod.logic.yaml

Content​

Open File

---

inputType: "CA10__CaGoogleGceNetwork__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleGceNetwork__c/object.extracts.yaml
- file: /types/CA10__CaGoogleCloudDnsPolicy__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "There is no DNS policy associated with the network."
remediationMessage: "Associate the policy to the network."
check:
IS_EMPTY_LOOKUP: "CA10__dnsPolicy__r"
- status: "INCOMPLIANT"
currentStateMessage: "Logging for existing DNS Policy not enabled."
remediationMessage: "Enable Logging for existing DNS Policy."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__dnsPolicy__r.CA10__loggingStatus__c"
right:
TEXT: "Enable"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Cloud DNS Logging is enabled for all VPC Networks."