jfrog / terraform-provider-xray

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

Support "multi_license_permissive" attribute for xray license policies #1

Closed long-lo closed 2 years ago

long-lo commented 3 years ago

Describe the bug Current version of provider does not allow passing attribute 'multi_license_permssive' as documented in the xray v2 restful apis.

Requirements for and issue

- [x] Your version of artifactory (you can `curl` it at `$host/artifactory/api/system/version`

7.17.5

- [x] Your version of terraform

Terraform v.0.15.4

Additional context https://www.jfrog.com/confluence/display/JFROG/Xray+REST+API#XrayRESTAPI-CreatePolicy License sample jfrog/terraform-provider-artifactory#3


{
    “name”: “lic_policy”,
    “description”: “License policy”,
    “type”: “license”,
    “rules”: [
         {
            “name”: “lic_rule”,
            “criteria”: {
                “banned_licenses”: [
                    “Apache-1.0",
                    “Apache-2.0”
                ],
                “allow_unknown”: true,
                “multi_license_permissive”: true
            },
            “actions”: {
                 “webhooks”: [],
                 “block_download”: {
                     “active”: true
                     “unscanned”: true
                 },
                 “block_release_bundle_distribution”: true,
                 “fail_build”: true,
                 “custom_severity”: “high”
             },
             “priority”: 1
         }
    ]
}```
chb0github commented 3 years ago

Correct. This is not a bug as the policy code uses the V1 api. I can change this to a feature request

danielmkn commented 2 years ago

Released in v0.0.1