Describe the bug
Cannot create an Xray security policy rule with "Contains malicious packages" option enabled using Terraform. The request returns following error.
400 POST https://artifactory-dev.skoda.vwgroup.com/xray/api/v2/policies
│ {"error":"Found Invalid Policy"}
When we create that rule using JFROG web UI everything works fine. After that we can import that rule to Terraform state and running Terraform apply returns no error. We tried copying the code directly from Terraform state to our script, deleting our policy from JFROG and Terraform state and running Terraform apply but we again ended with the error above.
Describe the bug Cannot create an Xray security policy rule with "Contains malicious packages" option enabled using Terraform. The request returns following error.
When we create that rule using JFROG web UI everything works fine. After that we can import that rule to Terraform state and running Terraform apply returns no error. We tried copying the code directly from Terraform state to our script, deleting our policy from JFROG and Terraform state and running Terraform apply but we again ended with the error above.
Requirements for and issue
Expected behavior Creating Xray security policy with one rule which has the "Contains malicious packages" option enabled.