-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security policy prioritiy ordering fails when "Malicious Packages" type rule has higher priority than "Vulnerability" type rule. #265
Labels
bug
Something isn't working
Comments
@EitanJoseph Thanks for the report! I agree that the ordering shouldn't matter. Let me investigate if this is a API issue. |
@EitanJoseph What's the error message (or logs) when the provider fails? Can you share? |
Using that code snippet the error message I'm getting is:
|
alexhung
added a commit
that referenced
this issue
Nov 11, 2024
Fix unknown value error when creating new security policy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Terraform: 1.9.8
Artifactory: 7.59.9
Xray: 3.74.8
Providers:
jfrog/xray version: 2.13.0
jfrog/artifactory version: 12.3.2
When creating a security policy, the provider fails when there is a "Malicious Packages" type rule with higher priority than a "Vulnerability" type rule for the same policy. See the example below:
The reason I believe this to be a bug: If you were to swap the priorities, setting the "Vulnerabilities" rule priority 1 and the "Malicious Packages" rule priority 2 then the provider will work. The JFrog UI allows for for either priority ordering and as such the provider should also handle both.
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
You should be able to update or create a new policy with any ordering of priorities for rules.
Additional context
N/A
The text was updated successfully, but these errors were encountered: