jfrog / terraform-provider-xray

Terraform provider to manage JFrog Xray
https://jfrog.com/xray/
Apache License 2.0
151 stars 12 forks source link

GH-84 handle unknown min severity #90

Closed alexhung closed 1 year ago

alexhung commented 1 year ago

Fixes #84

Add patch code for min_severity due to Xray API bug in <3.60.2. Include new test that only executes when Xray version is prior to 3.60.2.

This breaks from our convention that the provider only support latest version of Xray. Since the API bug has already been fixed in theory this patch is unnecessary. However, I think this patch will be useful for customers who aren't yet ready/won't upgrade Xray in immediate future.

cawilson commented 1 year ago

Yeah, we came across this bug as well, as we're implementing the Xray provider and noticed the issue when importing existing policies. We ended up upgrading Xray to resolve.