JFrog · Schema

CurationPolicy

ArtifactoryCI/CDContainer RegistryDevOpsMLOpsPackage ManagementSecuritySoftware Supply Chain

Properties

Name Type Description
policy_name string
description string
enabled boolean
policy_type string
repositories array
package_types array
conditions object
actions object
created string
modified string
View JSON Schema on GitHub

JSON Schema

jfrog-curationpolicy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CurationPolicy",
  "title": "CurationPolicy",
  "type": "object",
  "properties": {
    "policy_name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "policy_type": {
      "type": "string",
      "enum": [
        "block_malicious_packages",
        "block_packages_with_vulnerabilities",
        "block_packages_without_license",
        "block_packages_by_name",
        "block_packages_by_age",
        "allow_only_approved_packages",
        "custom"
      ]
    },
    "repositories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "package_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "conditions": {
      "type": "object",
      "properties": {
        "min_severity": {
          "type": "string",
          "enum": [
            "Low",
            "Medium",
            "High",
            "Critical"
          ]
        },
        "max_age_days": {
          "type": "integer"
        },
        "banned_package_names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "banned_licenses": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "approved_packages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "actions": {
      "type": "object",
      "properties": {
        "block": {
          "type": "boolean"
        },
        "notify": {
          "type": "boolean"
        },
        "notify_emails": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "email"
          }
        },
        "custom_message": {
          "type": "string"
        }
      }
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "format": "date-time"
    }
  }
}