You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
License Management in Dependency-Track should implement an audit trail (similiar to that implemented for vulnerability management) as an enhancement.
A use-case for this will be for when support for multiple licenses is introduced (#170). The audit trail should record what license was chosen (with optional comment), and who performed the update (and when).
Here is a description of our open source license compliance needs - I wonder if these would be useful for others:
There should be a way to define a list of compliant licenses, either as a global setting or separately per project. This is the organization's or project's OSS license policy. For example, some projects allow LGPL components while other projects cannot include LGPL code.
A report would show the compliance of a project with regard to the OSS license policy. This would be similar to the vulnerability dashboards, and it could highlight the projects that have license compliance issues
It would be nice to have another report that would list the components of a project grouped by license
Not all components will have their license available in the CycloneDX BOM, so there should be a way to mark these components as compliant or non-compliant manually in Dependency-Track. However, as the component authors may later change the license in newer versions of the component (as the BOM is updated), then the manually entered compliance ratings may become invalid. Maybe the tool could highlight these components to indicate that the version has changed since the latest manual license compliance approval
@hehaveri thank you for the use-cases. Being an OWASP project with a security focus, my first priority will be #83 which adds security-related policies. But at that point, a policy engine would have been built and integrated into Dependency-Track. I'll ensure its designed in a way to also accommodate license policies as well.
Reporting is not something this project will ever do however. Everything is API-first, API-all-the-time. Reports themselves are not actionable and outdated the moment they're generated. The thing we're trying to build here is more about real-time consumption and being a single source of truth. We will have dashboard, a visual way to see various metrics (including policy violations), just like what you have now with other metrics, but the exporting of reports is not on the roadmap. Using the API, you could however, generate a report.
With that said, it would be nice to see some screenshots of what some of the other products do in this space. I'm a security person, not a compliance or license expert. So if there's aspects of one product that folks like but dislike other aspects, that would be good to know.
With that in mind, start uploading screenshots, mockups, etc, and have others upvote/downvote the things they like/dislike and have the community guide what they want to see in terms of license auditing, workflows, and governance.
@stevespringett Here is a PDF that presents some mockup ideas about how open source license compliance could be added to Dependency-Track. The features are based on our experience with an internal tool. I hope this is useful for the community discussion!
@hehaveri This is fantastic! You and team have obviously been thinking about how best to integrate license functionality within Dependency-Track for awhile. This gives me a much better understanding of what a typical workflow would be, and I like the consistency between vulnerability and license auditing. Overall, I think this makes a lot of sense.
I think the first step would be to develop the auditing functionality itself along with the corresponding APIs and metrics. Once that's done, it'll be on-par with the existing vulnerability auditing.
At that point, it makes sense to start work on a policy engine that can accommodate:
Vulnerability policy
Outdated component policy
License policy
For the sake of scope however, this ticket will be specific to the auditing functionality itself.
Also as a side-note, if you're not already participating in the Dependency-Track Slack channel, I encourage you to do so. I always post thoughts, unpublished roadmaps and initiatives, etc there. Links in the 'About' dialog in Dependency-Track. The next major release after v3.4 will be feature-less - similar to macOS Snow Leopard in concept. It's a hardening-only release. See: https://owasp.slack.com/archives/C6R3R32H4/p1544132671011800
I agree with both the last two comments... that @stevespringett deserves a lot of thanks for his hard work, and also that the PDF is a very useful document.
I'll try and give some specific feedback before I leave the office on Friday, but for now, don't forget that the APIs will need to support negative queries (is that the right wording?) ie,
License is not fsLibre
Tag is not xxx
Concerning Slack, I signed up the other day and it seems that the Dependency-Track Slack channel can only be joined via an admin invite. But I could see no way to request such an invite. What to do? =)
Displaying policy violations for a project now works and is auditable. Violations currently support license and operational risk. Security violations will be added in a future release.
A few minor things are left to do but for the most part the functionality is implemented and works as designed.
Hi,
Firstly thank you for all the effort put into DependecyTrack development! I'm new but it's already a great work, with potential for even more.
I'm trying v4.0.0 with an attempt to check the new feature of license policy violation but I was unable to define any sensible policy such that it would fail just for the sake of testing. Am I missing something or is it yet in early development (e.g. UI is ready, but the backend not so just yet).
For example, let's say I have components loaded with a single item having MIT license (member of Permissive group). Suppose I want my policy to detect this item.
So my Test Policy could look like this
Name: Test License Policy
Operator: All
Violation State: Fail
with conditions of License group is not Permissive
Is my thinking correct? If I suppose so, upon a refresh scan, no Policy Violations are reported (note: all actions via UI). Looking forward for any guidance.
@adibo not sure what you mean by 'refresh scan' That concept doesn't exist. A scan (and subsequent policy evaluation) can be triggered on a individual component simply by editing the component and clicking 'update' without making any changes, or can be triggered by uploading a BOM (even if it's the same one). Otherwise, a rescan will take place every 24 hours.
Thanks, that was a good hint. I am now uploading the same BOM each time.
Another issue though is that for a given component, the license field is empty on the component details view (under Legal tab) event though the license (but not the license group!) is correctly assigned in the components list view.
And the license policy seem to work for components with component legal details updated by hand.
Activity
stevespringett commentedon Nov 30, 2018
Do you have examples (screenshots perhaps) of what other products do in this area? License auditing is a bit out of my area of expertise.
msymons commentedon Dec 3, 2018
I have used WhiteSource and Black Duck Hub, and Nexus IQ - but none recently.
For Nexus IQ, there is public documentation:
I'll try and put together some more thoughts...
hehaveri commentedon Dec 4, 2018
Here is a description of our open source license compliance needs - I wonder if these would be useful for others:
There should be a way to define a list of compliant licenses, either as a global setting or separately per project. This is the organization's or project's OSS license policy. For example, some projects allow LGPL components while other projects cannot include LGPL code.
A report would show the compliance of a project with regard to the OSS license policy. This would be similar to the vulnerability dashboards, and it could highlight the projects that have license compliance issues
It would be nice to have another report that would list the components of a project grouped by license
Not all components will have their license available in the CycloneDX BOM, so there should be a way to mark these components as compliant or non-compliant manually in Dependency-Track. However, as the component authors may later change the license in newer versions of the component (as the BOM is updated), then the manually entered compliance ratings may become invalid. Maybe the tool could highlight these components to indicate that the version has changed since the latest manual license compliance approval
stevespringett commentedon Dec 4, 2018
@hehaveri thank you for the use-cases. Being an OWASP project with a security focus, my first priority will be #83 which adds security-related policies. But at that point, a policy engine would have been built and integrated into Dependency-Track. I'll ensure its designed in a way to also accommodate license policies as well.
Reporting is not something this project will ever do however. Everything is API-first, API-all-the-time. Reports themselves are not actionable and outdated the moment they're generated. The thing we're trying to build here is more about real-time consumption and being a single source of truth. We will have dashboard, a visual way to see various metrics (including policy violations), just like what you have now with other metrics, but the exporting of reports is not on the roadmap. Using the API, you could however, generate a report.
With that said, it would be nice to see some screenshots of what some of the other products do in this space. I'm a security person, not a compliance or license expert. So if there's aspects of one product that folks like but dislike other aspects, that would be good to know.
With that in mind, start uploading screenshots, mockups, etc, and have others upvote/downvote the things they like/dislike and have the community guide what they want to see in terms of license auditing, workflows, and governance.
hehaveri commentedon Dec 11, 2018
@stevespringett Here is a PDF that presents some mockup ideas about how open source license compliance could be added to Dependency-Track. The features are based on our experience with an internal tool. I hope this is useful for the community discussion!
Dependency-Track-oss-license-compliance.pdf
Thank you for explaining the API first and reporting strategy - it makes perfect sense to me.
Lastly, many thanks for your work on Dependency-Track in general. The project is truly a major contribution to the software security community.
stevespringett commentedon Dec 11, 2018
@hehaveri This is fantastic! You and team have obviously been thinking about how best to integrate license functionality within Dependency-Track for awhile. This gives me a much better understanding of what a typical workflow would be, and I like the consistency between vulnerability and license auditing. Overall, I think this makes a lot of sense.
I think the first step would be to develop the auditing functionality itself along with the corresponding APIs and metrics. Once that's done, it'll be on-par with the existing vulnerability auditing.
At that point, it makes sense to start work on a policy engine that can accommodate:
For the sake of scope however, this ticket will be specific to the auditing functionality itself.
Also as a side-note, if you're not already participating in the Dependency-Track Slack channel, I encourage you to do so. I always post thoughts, unpublished roadmaps and initiatives, etc there. Links in the 'About' dialog in Dependency-Track. The next major release after v3.4 will be feature-less - similar to macOS Snow Leopard in concept. It's a hardening-only release. See: https://owasp.slack.com/archives/C6R3R32H4/p1544132671011800
msymons commentedon Dec 11, 2018
I agree with both the last two comments... that @stevespringett deserves a lot of thanks for his hard work, and also that the PDF is a very useful document.
I'll try and give some specific feedback before I leave the office on Friday, but for now, don't forget that the APIs will need to support negative queries (is that the right wording?) ie,
Concerning Slack, I signed up the other day and it seems that the Dependency-Track Slack channel can only be joined via an admin invite. But I could see no way to request such an invite. What to do? =)
stevespringett commentedon Dec 11, 2018
https://join.slack.com/t/owasp/shared_invite/enQtNDI5MzgxMDQ2MTAwLTEyNzIzYWQ2NDZiMGIwNmJhYzYxZDJiNTM0ZmZiZmJlY2EwZmMwYjAyNmJjNzQxNzMyMWY4OTk3ZTQ0MzFhMDY
stevespringett commentedon Sep 16, 2019
This will require a lot of UI changes to a UI that will soon be deprecated. I'll need to wait until the new front-end is complete.
Dependency-Track/front-end
18 remaining items
Updated frontend to support working analysis of policy violations Dep…
stevespringett commentedon Sep 23, 2020
Displaying policy violations for a project now works and is auditable. Violations currently support license and operational risk. Security violations will be added in a future release.
A few minor things are left to do but for the most part the functionality is implemented and works as designed.
Policy violation - license
Policy violation - operational
#249 - Fixed issue with policy engine deleting violations when it sho…
#249 - Added resources to limit (add/remove) projects from policies
Added UI to support the adding/removal (limiting) or projects to poli…
Moved UI element DependencyTrack/dependency-track#249
stevespringett commentedon Dec 23, 2020
Closing. Auditing license policy violations is included in v4.0 - to be released soon.
adibo commentedon Jan 5, 2021
Hi,
Firstly thank you for all the effort put into DependecyTrack development! I'm new but it's already a great work, with potential for even more.
I'm trying
v4.0.0with an attempt to check the new feature of license policy violation but I was unable to define any sensible policy such that it would fail just for the sake of testing. Am I missing something or is it yet in early development (e.g. UI is ready, but the backend not so just yet).For example, let's say I have components loaded with a single item having MIT license (member of Permissive group). Suppose I want my policy to detect this item.
So my Test Policy could look like this
with conditions of
License group is not PermissiveIs my thinking correct? If I suppose so, upon a refresh scan, no Policy Violations are reported (note: all actions via UI). Looking forward for any guidance.
stevespringett commentedon Jan 5, 2021
@adibo not sure what you mean by 'refresh scan' That concept doesn't exist. A scan (and subsequent policy evaluation) can be triggered on a individual component simply by editing the component and clicking 'update' without making any changes, or can be triggered by uploading a BOM (even if it's the same one). Otherwise, a rescan will take place every 24 hours.
adibo commentedon Jan 5, 2021
Thanks, that was a good hint. I am now uploading the same BOM each time.
Another issue though is that for a given component, the license field is empty on the component details view (under Legal tab) event though the license (but not the license group!) is correctly assigned in the components list view.
And the license policy seem to work for components with component legal details updated by hand.
github-actions commentedon Aug 26, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.