Error when executing custom query for KICS #6462
-
Hi, I'm trying to write some custom ARM queries in KICS just to understand the creation steps. I followed the official documentation about creating queries and I tried to do a really minimalistic function. query.rego :
metadata.json :
I also have test folder which has one positive and one negative. Here is the result after running
I am not sure what is happening here and I am unable to find documentation elsewhere about this issue. What could be the problem here? Also, really not sure about this command Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @gabrielvachon, Hope I was able to help 😃 |
Beta Was this translation helpful? Give feedback.
-
It's been a week now and i came back on making my query work. KICS recognize the query but I realized that the report doesn't show any results, however my rego query works. What could be wrong here? |
Beta Was this translation helpful? Give feedback.
Hi @gabrielvachon,
I was able to reproduce the panic error and was able to solve it by changing the policy name to
CxPolicy
instead ofrunning_exposed_vms
The
make test
executes the go tests. The scripts that are executed with the make command are defined in themakefile
.Hope I was able to help 😃
Let us know in case you need anything else.