Skip to main content

🧠 Snowflake User Default Role is not set - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• Snowflake UserCA10SN__CaSnowflakeUser__c414

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-05-10T12:06:06.038055145Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10SN__disappearanceTime__c)βœ”οΈ null
🟒test3βœ”οΈ 199βœ”οΈ extract('CA10SN__defaultRoleName__c').isEmpty()βœ”οΈ null
🟒test4βœ”οΈ 200βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/snowflake/user/default-role-is-not-set/policy.yaml4040F4288036D809E93B468DE3796B78
Open/ce/ca/snowflake/user/default-role-is-not-set/prod.logic.yamlF500D01087F3A7639E13D79A74C56A63
Open/types/CA10SN__CaSnowflakeUser__c/object.extracts.yamlC6EB37BF1FD385E8938A301910EC1C1E
Open/ce/ca/snowflake/user/default-role-is-not-set/test-data.json71A6DAD517B7E965DFF53515D6A9F47A

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/snowflake/user/default-role-is-not-set/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/snowflake/user/default-role-is-not-set/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/snowflake/user/default-role-is-not-set/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/snowflake/user/default-role-is-not-set/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/snowflake/user/default-role-is-not-set/prod.logic.yaml

Content​

Open File

---
inputType: "CA10SN__CaSnowflakeUser__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10SN__CaSnowflakeUser__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The Default Role is not set for the Snowflake User."
remediationMessage: "Set the Default Role for the Snowflake User."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10SN__defaultRoleName__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Default Role is set for the Snowflake User."