Skip to main content

🧠 Google Storage Bucket logging is not enabled - prod.logic.yaml🟠🟒

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 199βœ”οΈ CA10__Google_Storage_Buckets__r.has(COMPLIANT)βœ”οΈ null
🟒002βœ”οΈ 299βœ”οΈ isEmptyLookup('CA10__loggingBucket__r')βœ”οΈ null
🟒003βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null
🟒004βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/google/storage/bucket-logging/policy.yamlD484949888CB2F4C2B7627292D440320
Open/ce/ca/google/storage/bucket-logging/prod.logic.yaml360D52C61131ABBFCAE85C0E26B37E84
Open/ce/ca/google/storage/bucket-logging/test-data.json96451FA1BCABF2B718CB5C49F9E54B45

Available Commands​

repo-manager policies generate FULL /ce/ca/google/storage/bucket-logging/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/google/storage/bucket-logging/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/google/storage/bucket-logging/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/google/storage/bucket-logging/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/google/storage/bucket-logging/prod.logic.yaml

Content​

Open File

---

inputType: "CA10__CaGoogleStorageBucket__c"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This is a log destination bucket."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10__Google_Storage_Buckets__r"
- status: "INCOMPLIANT"
currentStateMessage: "The storage bucket logging is not enabled."
remediationMessage: "Enable logging for the Storage bucket."
check:
IS_EMPTY_LOOKUP: "CA10__loggingBucket__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Storage bucket logging is enabled"
relatedLists:
- relationshipName: "CA10__Google_Storage_Buckets__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is a log source bucket."