DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Software Design and Architecture
  3. Security
  4. How to Avoid Unpleasant OSS License Changes

How to Avoid Unpleasant OSS License Changes

Open Source Software is constantly changing, and so are the licenses. Learn about how you can stay abreast of any changes.

Baruch Sadogursky user avatar by
Baruch Sadogursky
·
Sep. 28, 18 · Presentation
Like (1)
Save
Tweet
Share
2.72K Views

Join the DZone community and get the full member experience.

Join For Free

Three weeks ago a popular JavaScript tool underwent dramatic turmoil. One of the original founders and maintainers of the Lerna project suggested changing the license from the ordinary MIT to "MIT with personal exceptions" in an effort to prevent certain software companies, including Microsoft, Amazon, Apple, LinkedIn, Walmart, Target, Tesla, Xerox, Dell, and others, from using Lerna. Other maintainers initially approved this suggestion, and the change was implemented. The good news is that the change was eventually reverted.

Reasons aside, that change created a severe FUD among Lerna users. Some raised their concerns, while others demanded to remove their employer from the blacklist; it was even suggested to stop using Lerna. A number of contributors even demanded removing their contributions from the code, and, of course, someone forked the project altogether. This real-life incident is a good example of this kind of "surprise" you don't want to experience, and how you could have easily been alerted about it in real-time.

So, Why the Panic?

One could argue that the license change would only apply from that point forward. Couldn't Dell or Xerox just stick to the current version and avoid using the software with the jeopardizing license? Can't they lock the dependency version? Well, it all comes down to whether they know they needed to do it. That's not always the case. The Lerna debacle got lots of publicity, and developers at those companies probably heard about it and locked the dependencies, but what if they hadn't?

While all of the industry has realized by now that blindly using the latest version is dangerous and should be avoided, most of the developers in the JavaScript world still use the flexible minor and patch version. Let's take a look the package-lock.json descriptor of the Lerna project itself (or almost any other software project using npm). Most of the dependencies are declared using the caret range, to automatically select of the latest minor and patch version.

Why Should You Care?

Now you can see the problem, can't you? If any of the blacklisted companies missed the news, they were going to violate the terms of the license. Checking the license while selecting your required library and then using ranges to stay up-to-date with bug fixes and minor releases is merely not enough.

How Can You Protect Yourself?

The only way to be on top of the bug fixes and minor versions and to catch license changes or new security vulnerabilities introduced in those new releases is by continuously scanning your entire dependency graph during your builds. Tools like JFrog Xray provide continuous security and artifact analysis and lets you define policies (like "only known and accept listed licenses. No security vulnerabilities above "trivial" are allowed in artifacts and all the transitive dependencies tree) and then enforce those policies for every artifact uploaded to your Artifact repository during every build.

Once you have that system in place, you can sleep soundly. When the next sneaky license change occurs, the CI pipeline promotion will fail, and you'll be able to examine your options — switch to the fork, find an alternative, push the maintainers to revert the change (as what happened with Lerna). You are in control.

Xray takes you a step further and lets you generate license compliance reports for all your software at a click of a button.

So, check out JFrog Xray today and don't let sneaky license changes expose you to dire legal consequences.

Dependency graph Continuous Integration/Deployment Artifact (UML) Software security Release (agency) Patch (computing) dev JavaScript News

Published at DZone with permission of Baruch Sadogursky, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 5 Steps for Getting Started in Deep Learning
  • Building a Real-Time App With Spring Boot, Cassandra, Pulsar, React, and Hilla
  • Journey to Event Driven, Part 1: Why Event-First Programming Changes Everything
  • Microservices 101: Transactional Outbox and Inbox

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: