Skip to main content

🧠 Google Storage Bucket with Log Sink does not have Versioning - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒001βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒002βœ”οΈ 199βœ”οΈ CA10G1__Google_Logging_Log_Sinks__r.hasNo(COMPLIANT)βœ”οΈ null
🟒003βœ”οΈ 299βœ”οΈ extract('CA10__retentionPolicyLock__c') == 'Locked'βœ”οΈ null
🟒004βœ”οΈ 399βœ”οΈ extract('CA10__versioningEnabled__c') == trueβœ”οΈ null
🟒005βœ”οΈ 400βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/google/storage/bucket-versioning/policy.yaml397748D145CC7E5363D8B89345BDA8C5
Open/ce/ca/google/storage/bucket-versioning/prod.logic.yaml35536A3D71A63F8C145742E1A9CD69D1
Open/ce/ca/google/storage/bucket-versioning/test-data.jsonEEA534C06A95C9B41650DD759619CB3C
Open/types/CA10__CaGoogleStorageBucket__c/object.extracts.yamlF35F8474989DF19B98A57A3AFBD1F626

Available Commands​

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

Content​

Open File

---

inputType: "CA10__CaGoogleStorageBucket__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaGoogleStorageBucket__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The bucket is a log sink destination."
check:
RELATED_LIST_HAS_NO:
status: "COMPLIANT"
relationshipName: "CA10G1__Google_Logging_Log_Sinks__r"
- status: "INAPPLICABLE"
currentStateMessage: "The storage bucket has a locked retention policy."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__retentionPolicyLock__c"
right:
TEXT: "Locked"
- status: "COMPLIANT"
currentStateMessage: "Versioning is enabled on this storage bucket."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__versioningEnabled__c"
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "Versioning is not enabled on this storage bucket."
remediationMessage: "Enable Versioning on this bucket."
relatedLists:
- relationshipName: "CA10G1__Google_Logging_Log_Sinks__r"
conditions: []
otherwise:
status: "COMPLIANT"
currentStateMessage: "This is a Log Sink with a storage bucket destination."