Free Pack
Download BuildMaster Free Trial

GPL-3: Hidden Danger in Your Code

by Lauren Camacci, on Aug 5, 2020 8:33:36 AM

We've all done the glassy-eyed speed-scroll to the end of a license agreement and clicked "I accept" without even reading it. It's hard not to! Written in legalese and tedious to read, they're destined for the quick skim. But just because you didn't read the license doesn't get you out of following the terms. Who has the time or resources to deal with the mess of noncompliance? Nobody.

Below, we discuss what the GPL-3 license is and some of its real-life consequences, and the misconception that it won't impact your organization, because you don't "distribute" software ("we just provide SaaS"). With a tool like ProGet, keeping these unwanted licenses out of your code is both easy and automated.

GPL-3: Good Cause, Tough License

As GNU's quick guide to the GPL-3 license explains, the license focuses on free software remaining free. The problem that bites companies on the behind, however, is the requirement that code built with GPL-3-licensed packages must open-source that code.

For any company with proprietary information in their code, this is a nightmare. You might be in an industry where open-sourcing your code is impossible or even illegal. It's a non-starter for most organizations.

Accidentally developing with packages that include licenses and then failing to open-source can get your organization into legal trouble. The noted Artifex v. Hancom decision was an example of a real company paying out real damages for violating the terms of the GPL-3 license. No employee wants their organization to go to court over their code.

Your SaaS Offering Isn't Safe

A common assumption is that offering Software as a Service (SaaS) means that the GPL nightmare won't apply to your organization, because you're not "distributing" the software. But this isn't quite true.

If your SaaS uses web technologies (which is about 99.999% of SaaS), then you're certainly using JavaScript. And if you're using JavaScript, you're most likely using third-party, open-source libraries along side your own code, and some of those open-source libraries may just be GPL-licensed.

That's where the problem comes in: When a user connects to your SaaS application, your server sends the JavaScript code to their browser, along with all of the third-party libraries that you're using.  In other words, you're doing what the GPL considers "distribution" of computer code.

And you know that when you "distribute" software that uses GPL-3-licensed libraries, you need to open-source all of that code. And other licenses, like AGPL-3, are even more strict.

So the thing we hoped would avoid GPL problems? Not quite. You could try to avoid using JavaScript libraries (yeah, right...). Or you could just avoid the problem entirely.

ProGet's License Detection and Blocking Lets You Skip the Headache

ProGet's License Detection and Blocking automatically spots and alerts you to those sneaky licenses, letting you configure a rule to block (or allow) certain license types.

By default, ProGet detects and flags licenses present in package metadata, based on SPDX identifier. It also flags packages missing a clear SPDX identifier as having an "unknown license." This way, the human user is alerted to what needs their attention.

Screengrab of Newtonsoft.Json, flagged with an MIT license

But more than just detecting, ProGet also lets you configure license blocking rules, at both individual feed level and at the global (all-ProGet) level. This means that an administrator can instruct ProGet to automatically reject licenses unacceptable for development.

image 4 - block gpl3 feedlevel-1

Configuring this feature to meet your organizational needs automates a tedious manual process and frees your personnel to focus on developing, rather than combing through metadata searching for licenses.

Try it Yourself

License Detection & Blocking are configurable in all versions of ProGet, but in ProGet Free, the blocker will not actually work. If you'd like to try this feature for yourself, you can start a 30-day free trial of ProGet Basic at MyInedo. Check out our YouTube demo of this feature to see how easy to configure and effective license detection and blocking is and how much time and risk it can save your organization.

Topics:ProGetlicense agreements

Related Posts

About Inedo

Inedo is a software product company bringing you the "tech behind the tech."

Makers of Windows-first, enterprise DevOps tools BuildMaster CI/CD, ProGet private package management, and Otter IaC. Maximize developer time, minimize release risk, and empower stakeholders to bring their vision to life faster, all with the people and technology you have right now.

Follow us on social media

Follow Inedo on YouTube Follow Inedo on Facebook Follow Inedo Twitter New call-to-action

Free e-books

Free PowerShell Book NuGet for the Enterprise Guide Jenkins CICD Guide Free CICD Book Free dotnet book free IaC book