Skip to content

xray_custom_curation_condition: condition_template_id rejects valid platform templates (isMalicious, NoLicense, isAged*) via a hard-coded OneOf #432

Description

@mkielar

Describe the bug
The values allowed by condidtion_template_id doesn't cover all values the API supports.

When I try to apply the snippet below, I'm getting:

Error: Invalid Attribute Value Match
  condition_template_id value must be one of: ["OpenSSF" "BannedLabels"
  "AllowedLabels" "SpecificVersions" "AllowedLicenses" "BannedLicenses"
  "CVECVSSRange" "isImmature" "CVEName"], got: "isMalicious"

Versions

  • jfrog/xray provider: v3.1.10 (same code on main)
  • OpenTofu 1.6+; JFrog Platform Enterprise+ with Curation/Catalog enabled

Requirements for and issue

  • A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue)
     resource "xray_custom_curation_condition" "malicious" {
       name                  = "Block known-malicious packages"
       condition_template_id = "isMalicious"
       param_values          = jsonencode([])
     }
    
  • Your version of Artifactory and Xray: Enterprise Plus trial license 7.146.17
  • Your version of terraform: OpenTofu 1.6+
  • Your version of terraform provider: jfrog/xray provider: v3.1.10
  • License: Enterprise+
  • Is your Xray Cloud or Self-Hosted: Self hosted
  • JFrog support reference (if already raised with support team)

Expected behavior
The template should be applicable (it's accepted by API).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions