Skip to main content

🧠 Snowflake User password is not rotated every 90 days - prod.logic.yaml 🟒

Flags​

Input Type​

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

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10SN__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10SN__hasPassword__c') != 'true'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10SN__passwordLastSetTime__c').beyondLastDays(90)βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/snowflake/user/password-is-not-rotated-every-90-days/policy.yaml5B2E4726583903497EC1F004FAF44285
Open/ce/ca/snowflake/user/password-is-not-rotated-every-90-days/prod.logic.yaml4D18CEF81843942A0200529C73B192BA
Open/types/CA10SN__CaSnowflakeUser__c/object.extracts.yamlC6EB37BF1FD385E8938A301910EC1C1E
Open/ce/ca/snowflake/user/password-is-not-rotated-every-90-days/test-data.json3CC5E685D8B1F744EA4212A9F9A822DC

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/snowflake/user/password-is-not-rotated-every-90-days/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/snowflake/user/password-is-not-rotated-every-90-days/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/snowflake/user/password-is-not-rotated-every-90-days/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/snowflake/user/password-is-not-rotated-every-90-days/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/snowflake/user/password-is-not-rotated-every-90-days/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: "INAPPLICABLE"
currentStateMessage: "The User does not use password authentication."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10SN__hasPassword__c"
right:
TEXT: "true"
- status: "INCOMPLIANT"
currentStateMessage: "The password was last set more than 90 days ago."
remediationMessage: "Rotate the password."
check:
IS_BEYOND_LAST_DAYS:
arg:
EXTRACT: "CA10SN__passwordLastSetTime__c"
offsetDays: 90
otherwise:
status: "COMPLIANT"
currentStateMessage: "The password was last set within the last 90 days."