terraform-provider-xray icon indicating copy to clipboard operation
terraform-provider-xray copied to clipboard

New `xray_ignore_rule` resources or changes to existing ones should take effect immediately

Open rorynickolls-skyral opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe.

When creating or updating xray_ignore_rule Terraform resources, it does not appear to take effect immediately. Policy violations do not start showing as 'Ignored' in the Xray scans list until a scan is triggered manually through the UI.

Describe the solution you'd like

Having a manual step after creating rules defeats the purpose of managing them through Terraform - it would be ideal if changes to the Terraform-managed ignore rule took effect immediately without any intervention.

Describe alternatives you've considered

Alternatives are:

  • Continue manually triggering rescans.
  • Automatically trigger a rescan outside of the Terraform provider e.g. in our own CI pipeline.

Neither of which are great solutions!

Additional context

When creating a rule through the Artifactory UI, it appears to take effect immediately without triggering a scan. It is unclear how it does this, and whether there's an API request that can be made from the provider to make it happen.

rorynickolls-skyral avatar Mar 07 '24 16:03 rorynickolls-skyral

@rorynickolls-skyral Thanks for the suggestion. I've added this to our road map.

alexhung avatar Mar 07 '24 16:03 alexhung