Closed nbaju1 closed 1 year ago
Hi @nbaju1! It's a known issue, since we don't have a public API to get a list of licenses from the Artifactory instance, we had to verify the license against the default list of licenses, saved directly in the code beforehand. The workaround would be to allow users to put free text in that attribute, but the implications are not clear to me. I've reached out to the Xray team and will update you here.
Released in v1.14.0, restrictions are removed from the banned and allowed licenses attributes.
Describe the bug A custom license has been added through the portal: Xray Settings -> Compliance Licenses.
Attempting to validate the terraform configuration where this license is added to
allowed_licenses
of thexray_license_policy
resource does not work.Artifactory version: suggested url does not work, getting "Authentication is required" Xray version: {"xray_version":"3.73.8","xray_revision":"b9b2c47"} Terraform version: 1.4.2
Requirements for and issue
curl
Artifactory version at$host/artifactory/api/system/version
and Xray version at$host/xray/api/v1/system/version
Expected behavior Able to allow usage of a custom license.