-
Notifications
You must be signed in to change notification settings - Fork 319
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
Provide a way to use version ranges for package-configurations #9918
Comments
For what reason are you trying to eliminate the license? (e.g use cases) |
Our ruleset disallows any usage of packages that are licensed as But does this really matter? |
This has been an annoying issue since package configurations were introduces - remember at HERE we have tens of configurations for python's setup tools. Don't get me wrong this limitations was knowingly introduced. Would be in favor to introducing configurations that work across version but would only support it if can ensure we can keep the same level of trust in ORT. As configurations overwrite scan findings and I would like be opinionated and protect users against themselves in this case by:
|
I'm not sure if this should be required. For curations, this is not required, and at the moment I can just add the following to my curations:
packages:
- id: "Maven:org.ossreviewtoolkit:model:"
curations:
concluded_license: Apache-2.0
comment: "..." But as mentioned above this is bad, and quite dangerous to do. |
I wanted to have this for a long time as well, also for consistency with package curations, and I believe we've talked about the wish multiple times already. I do not see a reason to not implement it finally. |
I still believe, we should not implement this and instead require the user to create a separate dedicated package configuration for each package version. And instead spent the effort in creating a helper which auto-generates a package configuration based on an already existing one. This keeps file organization simpler, package configuration simpler, slef contained, easier to review and veryify. You can automatically remove non-matching entries and so forth. Export a list of bugs for false detection fixes. |
My main issue with this approach is, that this is quite a bad user experience when using ORT via CI/CI (either via ORT server, or via a GH action directly). Remember: There is no issue here, we are trying to fix a false-positive finding.
The issue is not that it is hard to create a package-configuration, the issue is, that a new package-configuration it is required at all in this case.
I don't agree with every of these points, but I think that these don't justify a worse user experience. Edit: Additionally, we already have this functionality for curations, which is already used by users as a bad fallback for this missing feature for package-configurations. |
@MarcelBochtler Don't get me wrong I want to support version ranges in package configurations but it has to be implemented in the right way else it may erode user trust in ORT. The use of a concluded license curation in a ORT scan is currently easy to spot but the use of package configuration with license finding curations is not. It's not about whether something is already possible but whether ORT is transparent about the fact license findings have been altered. When license finding curations in package configurations were implemented we deliberately made the choice to cap it what was possible as we didn't have a good way to communicate their existence throughtout an entire ORT toolchain like we have for curations. My point is about trust in ORT results - we should make clear to anyone reading an ORT report that scanner findings / facts have been altered so in case things go wrong its easy for stakeholders to trace back when and where it happened so they can hopefully ensure it doesn't happen again. Being able to trace down things is not only useful for us ORT devs but it's a essential if you are being sued. |
When scanning ORT as a package with ORT, one finding always shows up:
ort/model/src/main/kotlin/config/ScannerConfiguration.kt
Line 64 in 4391f15
This line is being detected as
AGPL-3.0-or-later
by scancode.As this is not a license declaration, I am removing the finding with a package-configuration.
This works well, and I like that I can remove this single finding in exactly this version.
However, I have to do that weekly, because I want to update ORT as a dependency as soon as possible, and every update requires me to write a new package configuration.
The only workaround to remove this finding for good is to overwrite every detected license for
Maven:org.ossreviewtoolkit:model:
, by just setting a concluded license with a version range.Using a concluded license has multiple unwanted side effects, which is why I don't want to use them.
What do you think about implementing a way to achieve the effect of a version range also for package-configurations?
The text was updated successfully, but these errors were encountered: