Skip to main content

🧠 Google GCE External Forwarding Rule is configured to use a Target HTTP Proxy - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-25T12:02:47.827762175Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ not(setOfText(['caGoogleGceForwardingRuleGlobal', 'caGoogleGceForwardingRuleExternal']).contains(RecordType.DeveloperName))βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ not(setOfText(['EXTERNAL', 'EXTERNAL_MANAGED']).contains(extract('CA10__loadBalancingScheme__c')))βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10__targetHttpProxyUniqueId__c').isNotEmpty()βœ”οΈ null
🟒test5βœ”οΈ 499βœ”οΈ extract('CA10__targetHttpsProxyUniqueId__c').isNotEmpty()βœ”οΈ null
🟒test6βœ”οΈ 500βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/policy.yamlD5570868AF7916D6921BB8B4F1736035
Open/ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/prod.logic.yaml435D8EEF249490E3C6AE7750DE3F7BD5
Open/ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/test-data.jsonC1024DAB296848AD5D3D90AFC993AFC6
Open/types/CA10__CaGoogleGceForwardingRule__c/object.extracts.yamlBE18BDBE6D507613F938DAE80D0901D0

Available Commands​

repo-manager policies generate FULL /ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/load-balancing/external-forwarding-rule-http-proxy/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaGoogleGceForwardingRule__c"
importExtracts:
- file: /types/CA10__CaGoogleGceForwardingRule__c/object.extracts.yaml
recordTypes:
- "caGoogleGceForwardingRuleGlobal"
- "caGoogleGceForwardingRuleExternal"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The policy applies only to external forwarding rules."
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: "TEXT"
items:
- "EXTERNAL"
- "EXTERNAL_MANAGED"
search:
EXTRACT: "CA10__loadBalancingScheme__c"
- status: "INCOMPLIANT"
currentStateMessage: "The external forwarding rule uses an HTTP instead of an HTTPS proxy."
remediationMessage: "The forwarding rule should use a target HTTPS proxy to ensure traffic is encrypted."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__targetHttpProxyUniqueId__c"
- status: "COMPLIANT"
currentStateMessage: "The external forwarding rule is configured to use an HTTPS proxy."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__targetHttpsProxyUniqueId__c"
otherwise:
status: "INAPPLICABLE"
currentStateMessage: "The forwarding rule targets a different type of resource."