Sentinel Failing but Can't Find Reason

I attached a link to the Sentinel playground, so click “Run” for the error. It says one of my rules is false, but it is true. Any help and tips on the code would be helpful. I’m pretty much stuck here.

Just to add, this code checks if vTPM, Integrity Monitoring, and Secure Boot is enabled on new VMs created through Tform for GCP.

The “false” rules were matching on the string “true” instead of the unquoted Boolean value true. Updated code here seems to be working: Sentinel Playground

1 Like