Skip to main content

🧠 Snowflake User MFA is not enabled - prod.logic.yaml 🟒

  • Contextual name: 🧠 prod.logic.yaml 🟒
  • ID: /ce/ca/snowflake/user/mfa-is-not-enabled/prod.logic.yaml
  • Located in: πŸ“ Snowflake User MFA is not enabled 🟒

Flags​

Input Type​

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

Uses​

Test Results πŸŸ’β€‹

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

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

Generation​

FileMD5
Open/ce/ca/snowflake/user/mfa-is-not-enabled/policy.yaml1D89EAFC26F2E5DDBBE1AABD78B555BF
Open/ce/ca/snowflake/user/mfa-is-not-enabled/prod.logic.yaml1E4ADC93B2BBCBDC77A7F575B559F3AC
Open/types/CA10SN__CaSnowflakeUser__c/object.extracts.yamlC6EB37BF1FD385E8938A301910EC1C1E
Open/ce/ca/snowflake/user/mfa-is-not-enabled/test-data.json22E68A5A855EF12F0CF473CA0DFCB828

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/snowflake/user/mfa-is-not-enabled/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/snowflake/user/mfa-is-not-enabled/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/snowflake/user/mfa-is-not-enabled/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/snowflake/user/mfa-is-not-enabled/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/snowflake/user/mfa-is-not-enabled/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: "MFA is not enabled for this user."
remediationMessage: "Enable MFA for this user."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10SN__extAuthnDuo__c"
right:
TEXT: "true"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The user has MFA enabled."