ATO 2026: Sharing is caring – Open data for Open Source compliance

In October, the OSI hosted the State of the Source track at All Things Open designed to connect developers with the big policy conversations shaping our ecosystem. Nick Vidal and Brian Duran, members of the ClearlyDefined Outreach Committee, presented “Sharing is caring: Open data for Open Source compliance.”

Sharing is caring: Open data for Open Source compliance

Open Source compliance depends on accurate data about millions of software components, yet organizations often duplicate efforts and build isolated datasets. ClearlyDefined offers a better approach: shared, community-verified open data on software component provenance, license, and vulnerabilities that improves accuracy, reduces duplication, and enables compliance automation at scale.

Video Transcript

Nick Vidal: Hello. Good morning, everyone. We’re going to be continuing the conversation. McCoy gave a great presentation around open source licensing, and now we’re going to be getting into compliance. We want to present a really interesting project called ClearlyDefined. The idea behind ClearlyDefined is sharing license data. Let’s first start with who we are.

My name is Nick Vidal. I work with the OSI. I’m a community manager, and this is my colleague Brian.

Brian Duran: I work at SAP. Nice to be here.

Nick Vidal: We also have Alyssa here at the conference. She’s organizing several sessions, so she might be able to join later. We’re all part of the ClearlyDefined Outreach Committee, and it’s nice that we were finally able to meet each other here at this conference. Really excited.

Nick Vidal: So what’s ClearlyDefined? This is an OSI project. It’s been around for quite a few years already. It was originally developed by Microsoft and donated to the OSI. The basic idea is to have licensing metadata that’s crowdsourced and that we can share with others. One of the big issues is that a lot of projects, a lot of open source components, don’t have a license, or they might have the wrong license. If we could share that data with others, it would make it much better for everyone.

We want to bring clarity to open source software. This is especially important right now with all the requirements and recommendations around SBOMs. SBOMs are software bills of materials. Especially in Europe, we see legislation like the CRA, the Cyber Resilience Act, where there’s a requirement to have SBOMs. In the US, we see recommendations as well. It’s very challenging to generate those SBOMs at scale. Imagine producing SBOMs for every release, at every stage in the supply chain, and scanning all the open source components and checking those licenses.

It’s very challenging because organizations have to scan every time, at scale, and it’s a waste of resources. If we could scan once and share that scan with everyone, that would be perfect. Also, if there’s an open source component that has the wrong license, right now we have 100 organizations each fixing it independently. That’s a waste of resources as well. Having just one organization fix it and share that fix would be much better for everyone.

ClearlyDefined tries to solve exactly that. It’s really simple. ClearlyDefined provides an API. When you have a project with several open source components, instead of having to scan each of those components, you can access this API and say, “Hey, what’s the licensing metadata for this open source component?” You can do this and generate SBOMs in a much easier way.

Organizations can also contribute back using the same API. If they find incorrect licensing information for a given component, they can fix that. It goes upstream, and everyone has the new, more accurate information.

Here’s a simple example of how you can access that. I have a project called Lodash. People here from the JavaScript world probably know about this library from npm. For this version, you just access the ClearlyDefined API, and it will return metadata showing what the license is and all kinds of other metadata useful for creating an SBOM.

It’s very simple. If you want to try it, it works really well. As I mentioned, you can also curate the data. Let’s suppose you have a component that was identified as MIT, but actually it’s Apache 2.0. You can propose a fix and say, “Hey, this is actually Apache 2.0, not MIT.” You use that same API to make the fix.

The benefit is that it provides more accurate data for everyone. You can share that licensing information without having to scan all the open source components over and over again. Brian will share how they’re saving 30 to 50% in turnaround time by adopting ClearlyDefined. Several other organizations are using this. I mentioned Alisa from Bloomberg, Microsoft, who’s hosting the infrastructure, the Linux Foundation, the Eclipse Foundation, and a whole bunch of others. There’s a whole ecosystem working together on top of this.

Let me share how the harvesting process works. As I mentioned, you can request the licensing information for a given component through an API. Let’s suppose that when I access it, this data isn’t available as part of the definition. That triggers a harvest. We add that request to a queue, and it’s going to scan the project. We use three scanners. One of them is ScanCode, which is maintained by AboutCode, one of our partners. It reads through those components, identifies the licensing metadata, and provides it as part of the definition.

The next time somebody asks for the same open source component, it’s going to provide the licensing metadata. You actually scan this only once. Every organization can easily access it through an API instead of scanning it over and over again.

The curation process is interesting. You can fix incorrect licensing metadata. Through the API, you can create a patch, and this creates a pull request that’s going to be reviewed by an actual human. A group of curators will look at it and say, “Yes, in fact, this open source component was wrongly identified. It should be Apache 2.0,” or whatever the license is. We use GitHub to fix that, and we keep the record. You can see all the fixes we have on GitHub.

As I mentioned, one of the case studies we have is the Linux Foundation. The Eclipse Foundation is also using ClearlyDefined. Right now, I’ll let Brian explain how they use it at SAP.

Brian Duran: Sure. Thanks, Nick. As I mentioned, my name is Brian. I’ve been with SAP for just over 10 years now. We were one of the early adopters of ClearlyDefined, along with Microsoft and a few others. I’d like to share a bit about our experiences adopting it as what’s now a mature part of our compliance process.

Open source is a big part of SAP’s strategy. We have quite a few open source projects that we contribute to on our GitHub, and we also consume a fair bit of it. ClearlyDefined helps us from both angles. As Nick mentioned, having access to that metadata about an open source component is a critical first step to compliance. It’s been a remarkable tool for us to adopt.

Our engagement goes back to 2018, which is when the project first kicked off. We were working with Microsoft to define the internal policies around some of the key areas of the project, such as the curation policies and processes that are there now, as well as harvesting. We validated those policies with a small internal pilot. It was me and maybe three or four other colleagues, running it with very limited automation internally. We were making calls to the API, validating the results, and applying it in production with the ability to vet the output. We were satisfied with what we saw.

Further improvements came as we tried to scale up. We started to build out more capabilities in our internal pipelines to push things that we and our developers were interested in using out to ClearlyDefined. That’s the first hurdle most adopters will come across, especially in an enterprise context. How do you push the components you’re interested in, whether it’s an inbound component or an outbound project you’re contributing to? How do you get those things into ClearlyDefined? It’s a bit nuanced, so I’ll go into that.

Now we’re running it in production. It’s one of a few tools that we run in our compliance automation pipelines. It fills a niche. There are other tools that also aim to crowdsource data. A lot of people point, for example, to Open Source Insights, which deals more with dependencies. ClearlyDefined still has a strong niche with embedded data. What’s that finding five levels down in your source tree that could trigger a violation? I’m not aware of any other open tool that can do that, make it available transparently, and provide a mechanism to improve that data in the open.

I basically spoke ahead of the slide, but the entry point to ClearlyDefined will always be a harvest. Something may already have been harvested for you. Someone may have already done the legwork. In a lot of cases, though, you’re going to be interested in harvesting the latest version of something, and you might have to take the initiative by calling the API yourself.

It’s a life cycle of sorts. The component is harvested, a base definition is built, and people have the ability, as Nick explained, to use the pull request mechanism if they see something fundamentally wrong with a component. Maybe a license is misdeclared or the source location isn’t maintained properly. There’s a mechanism to correct that information responsibly and with some transparency. It all starts with harvesting and goes from there.

This is a bit of a view into how we do things and how we fulfill that initial step of getting our relevant open source into ClearlyDefined. Like a lot of large enterprises, we have a database of metadata. Say I’m a developer and I want to use an open source component. Of course, it needs to undergo due diligence. All this has to be stored somewhere, whether it be a ticketing system or a pipeline. We have a FOSS metadata system. At a minimum, you’d have the name and version of the component, along with a source location or some information you could parse to build what’s called a coordinate in ClearlyDefined. For those of you familiar with a Package URL, or purl, it’s very similar. It’s a universal identifier that ClearlyDefined uses to point to a specific package in a specific ecosystem.

I think you used an npm component as an example. I think it was Lodash. You’re looking at that specific version of Lodash in that specific location, with that specific provider, npm. We had to build out some logic to parse the information that’s available, and sometimes it’s not perfect. You might see a GitHub URL or an npm package. It has to translate that into a coordinate and then submit it via a POST call to ClearlyDefined’s harvest API endpoint.

It doesn’t stop there. In this initial implementation, which I think is what most people will use, the REST API isn’t an event-driven system, so you won’t get a callback or notification that it’s completed the harvest. You have to poll it. I think there is now an event notification system, but we haven’t adopted that yet within our own group. We still call the API.

We follow the harvest call with a standard GET call, which basically checks whether the definition exists in ClearlyDefined, the definition being a FOSS record, and whether it’s in a state that we can consume it. What I mean by that is, in most cases, have the intended tools run so that the data is available? ScanCode is a big one because it’s the heavyweight scanner in terms of providing most of the granular data that’s there.

We’ll explicitly check for certain conditions when we get the response back from the service. We’ll do this in 24-hour increments so we don’t overload the service. In the end, it’s all in a queue, and that queue is shared. It’s not just SAP’s queue or user X’s or user Y’s queue. We poll the system. After about 48 hours, I think, we have a cutoff and then flag it. One of us has to go and look at it. Within that 48-hour time frame, we expect to see some information coming back from ClearlyDefined.

We don’t record everything at once in terms of the response. What we do is store a pointer. We’ll store the actual generated coordinate with the understanding that the state of that coordinate at that moment in time is complete. We can make the subsequent GET call again and retrieve that information.

This approach hasn’t changed in the last 10 years. We’ve still been doing it that way. Caching is something we’re looking into more and more because the queue is very large, it has a lot of entries, and requests can expire too. Hence the need for monitoring and follow-up. In the end, an analyst or a legal colleague may just go directly to the UI and look at the data that’s there. Increasingly, our downstream compliance tools are taking that information and storing it for their specific purposes.

That was the main hurdle when we started and as we scaled up. How do we get our things in? How do we do it in a way that’s responsible? How do we fulfill both the internal and the community aspects of it?

By automating what’s essentially the scanning and being able to pull this data in, we spent less time doing the granular technical work of setting up and staging a scan. We’ve been able to focus more on looking at the data that’s there, which is really what our job is about, to be honest. Being able to trust that the data is available is something we can leverage.

Through the curation mechanism, we’re able to contribute back anything we find. We built it into our policy that if we see something that isn’t correct, we should go there and submit a pull request to fix it. I think others tend to follow the same approach as well.

It’s all there, the same data we see. Compliance data about open source is open source. The data is all available. I believe it’s under a public domain license these days. Organizations can do what they need to with it for their internal policies and risk management systems.

Over the last 10 years, we’ve gradually moved from contributing more from the business perspective, calling the system and building up that initial coverage. It was something like 50 million definitions, I think, now. I remember when that number was like one million. We were all like, “Woo-hoo!” Now that seems like such a small number. That was due to a lot of effort from us, Microsoft, and other folks using ClearlyDefined in their processes. We also ran campaigns to get the top packages from certain repositories and build out that coverage.

We’ve moved to contributing to the codebase now. We have a developer on our team, who’s not me, who has contributed, for example, Gradle compatibility for harvesting within a Gradle pipeline, and various optimizations to the different backend services. I think the big one is the crawling service that runs and invokes those different scanners.

Whenever we see a data quality issue attributable to something technical, say a bug in the codebase, we’ll submit the necessary development pull request. I’ve done it numerous times as well, so the development side of the project can take action to remedy that. There’s collaboration all over the place.

This big 30 to 50% number comes with a little caveat. It’s comparing to how we did things before. Our process was fairly manual. We’d have to do a lot of data wrangling to get the necessary data for a component. There was a high operational aspect to it, putting things into various tools and reconciling the results from all those different tools. Having one place to go is huge. It’s invaluable for us. Things are so much faster. We have access to a great community under the OSI’s stewardship, and with AboutCode now as well, the project has a great future.

All right, that’s my segment. I’ll pass the podium back to Nick.

Nick Vidal: Thank you, Brian. I’m going to go through very quickly what we have accomplished in the past few years. We released version 2.0 with several improvements. We have an open governance model and support for LicenseRef, so it’s not just OSI Approved licenses. We also look at proprietary licenses. This was a request from the community. We have support for Conda, which is really important for the AI and machine learning community, and integration with GUAC from OpenSSF, which covers security as well as compliance.

We’ve collaborated with SPDX, OWASP, and other communities. We’ve developed new tools like CD-SBOM, where you can provide an SBOM and it’ll give you back an enriched SBOM using ClearlyDefined data. GitHub is using ClearlyDefined. If you look at the dependency graph from GitHub, it’s using and enhancing that metadata. I believe they have over 40,000 definitions there. If you’re using GitHub, you’re using ClearlyDefined on the back end.

Of course, we’re looking toward security as well as compliance. There are many challenges. Scanning all those projects is very expensive. Luckily, we have Microsoft funding all this infrastructure, but we have to find a way to make it more sustainable. It’s a big investment. The user interface has some challenges as well. When people want to curate data and contribute, it can be quite challenging.

We have a partnership with AboutCode. Those folks are experts on this. They’ve been working with compliance and security for several years, and they’re helping the OSI and the community advance ClearlyDefined. We welcome you to join us. We have a three-year roadmap that we’ve developed together with the community. If you want to join us, our website is clearlydefined.io. We have documentation, and we’ll be happy to see you there. Thank you.

Q&A

Nick Vidal: I believe we have a few minutes for questions.

Audience member: What was the original project? Can you talk more about how it evolved?

Nick Vidal: The idea, as the name states, was that we’d have a clear definition, clear licensing metadata for every open source component. This is what Microsoft used internally for their own open source program. Like any other organization, they use a lot of open source components, even though they’re Microsoft. It’s a joke, but every organization uses open source, and they wanted to make sure they were compliant.

They wanted to generate SBOMs. At the time, they weren’t called SBOMs, but they were evaluating what components they used and making sure that everything was well defined, was clearly defined. That was the origin. They decided to donate ClearlyDefined to the OSI to make it more of a community project, with Microsoft no longer the only organization leading it.

Audience member: I really like the idea of having something that gives an explanation and lets you review the open source code. I was curious, as a general thought about the earlier session on licensing, whether something like ClearlyDefined could be applied to licensing?

Nick Vidal: Yes. What’s interesting is that we’re looking beyond licensing information now. We’re trying to expand that scope to look at security. This is part of the partnership we have with AboutCode, where they’re expanding that as well. The idea is to make licensing metadata and security metadata easily accessible to everyone, so everyone doesn’t have to rescan those components every time, with every build, every release, and at every part of the supply chain. We want to make that easily available for everyone and help everyone create that data as well. We’re trying to make everything more clearly defined and clearly secured as well.

Thanks. Do we have any other questions?

Audience member: I was wondering how much adoption you’ve seen from outside. Has it been picked up a lot, or is it still kind of a struggle?

Nick Vidal: It’s still a struggle. It’s quite challenging because the issues we’re facing are quite complex. The infrastructure costs are very high. We’re thankful that we have Microsoft providing that. At the same time, it’s very easy to consume. You use an API. The traffic we’ve been receiving has been increasing year over year, especially now with AI as well, and Microsoft has been funding that.

It’s easy to consume, like most open source projects, but contributing back is the challenge. SAP contributes engineering. We have a fantastic person, Qing, who’s always contributing code and making everything more optimized and better. We have other organizations like Bloomberg providing engineering and donations. But it’s a constant struggle to find a more sustainable way.

Audience member: Yeah. I suppose I meant companies, individuals who are super enthusiastic.

Nick Vidal: Yeah, from companies. A pathway we’re exploring right now is grants, especially with the CRA requirement in Europe. The European Commission, in fact, is providing support and funding for the ClearlyDefined project. We’re trying to explore more grants in the US, Europe, and other parts of the world. That’s a pathway.

Nick Vidal: All right. Thank you!