← All posts
Software

The Open-Source License Wars: Why MongoDB, Elastic, HashiCorp and Redis All Picked the Same Fight

The Open-Source License Wars: Why MongoDB, Elastic, HashiCorp and Redis All Picked the Same Fight

The Open-Source License Wars: Why MongoDB, Elastic, HashiCorp and Redis All Picked the Same Fight

If you run a website, a mobile app backend, or pretty much any cloud infrastructure built in the last decade, there's a good chance it leans on at least one of four names: MongoDB, Elasticsearch, Terraform, or Redis. All four started life under permissive open-source licenses. All four later tore up that deal, in nearly identical fashion, for nearly identical reasons — and two of them have since partially walked it back. The pattern says less about any one company's ethics and more about a structural problem open source never quite solved: what happens when a giant cloud provider can take your free software, host it, and sell it back to your own customers without sending you a cent.

The problem with giving code away for free

Classic open-source licenses like MIT, Apache 2.0, and BSD let anyone use, modify, and redistribute code — including turning it into a paid, managed cloud service. That's great for adoption. It's less great if you're the company that spent years building the software and watched Amazon, Google, or Microsoft launch a "managed" version of your own product, often undercutting you on price while contributing little or nothing back.

Starting around 2018, a cluster of infrastructure-software companies decided they'd had enough.

MongoDB fires the first shot

The database company MongoDB went first, announcing in October 2018 that it was moving from the AGPL license to a license it wrote itself: the Server Side Public License (SSPL). The SSPL's core twist is that anyone offering MongoDB "as a service" has to open-source the entire stack running it — effectively a poison pill aimed at cloud resellers. MongoDB submitted SSPL for official open-source certification from the Open Source Initiative, then withdrew the application after pushback from open-source advocates who argued it didn't meet the OSI's definition of "open source" at all. MongoDB has stuck with SSPL ever since; it's the one company on this list that hasn't reversed course.

Elastic picks a fight with AWS — then makes up

Elasticsearch, the search engine behind much of the internet's log analytics and site search, followed in January 2021. Elastic co-founder Shay Banon announced the company would dual-license Elasticsearch and Kibana under SSPL and a new Elastic License, moving away from Apache 2.0. The framing at the time was as much about a trademark dispute with Amazon over the word "Elasticsearch" as it was about blocking AWS's hosted offering.

Amazon didn't take it quietly. Within a week, AWS announced it was forking the last Apache-licensed version of Elasticsearch and Kibana into a new project called OpenSearch, which it has continued developing independently — and which AWS handed over to the neutral, vendor-agnostic Linux Foundation in September 2024.

Then, in August 2024, Elastic made a notable move of its own: it added AGPLv3 — a license the OSI does recognize as genuinely open source — as a third option alongside SSPL and the Elastic License. It wasn't a full retreat; SSPL and the Elastic License are both still available too. But it meant Elasticsearch could once again be called "open source" without an asterisk. Banon framed it as an attempt to rebuild trust with developers who'd soured on the company after 2021. Not everyone was convinced the trust gap closes that easily — several open-source commentators pointed out that plenty of users had already migrated to OpenSearch for good.

HashiCorp, Terraform, and a fork that got threatened with a lawsuit

HashiCorp's Terraform — the tool most of the cloud industry uses to script infrastructure — got the same treatment in August 2023, shifting from the Mozilla Public License to the more restrictive Business Source License (BSL). Within weeks, a coalition of companies spun up a fork of the last MPL-licensed codebase called OpenTofu and placed it under the Linux Foundation for neutral governance.

This one got uglier than the others. In April 2024, HashiCorp's lawyers sent OpenTofu a cease-and-desist letter alleging the fork had copied code still covered by HashiCorp's new license, and followed up with takedown notices on GitHub. OpenTofu rejected the claim point by point, arguing the disputed code actually traced back to older, genuinely open MPL-licensed history. No lawsuit ultimately followed. HashiCorp itself was acquired by IBM in February 2025 for $6.4 billion, and the BSL terms have remained in place since.

Redis saves the most dramatic reversal for last

Redis, the in-memory database that underpins caching layers across much of the web, relicensed in March 2024, swapping its permissive BSD license for a dual Redis Source Available License (RSALv2) / SSPL setup — explicitly to stop cloud providers from reselling managed Redis without a commercial deal. As with the others, a fork followed almost immediately: Valkey, built from the last BSD-licensed release, landed under the Linux Foundation with AWS, Google, and Oracle all backing it — giving it instant scale that smaller community forks rarely get.

Just over a year later, in May 2025, Redis went further than Elastic had. CEO Rowan Trollope announced the company would add AGPLv3 as a license option starting with Redis 8, explicitly describing the move as an attempt to repair the relationship with the open-source community the 2024 change had strained. It's the fastest and most public "we may have overcorrected" moment in this whole saga — though, as with Elastic, it's an addition to the restrictive licenses rather than a full repeal of them, and Valkey's momentum (AWS, for instance, now ships it by default inside ElastiCache) hasn't exactly evaporated.

Why this matters beyond Silicon Valley

For businesses in the Gulf building on cloud infrastructure — and plenty do, given how much of the region's digital-government and fintech stack runs on managed databases and cloud-native tooling — these license fights aren't abstract. A relicensing event can mean a vendor's hosted offering suddenly falls out of compliance, a self-hosted deployment needs re-evaluating, or a "drop-in replacement" fork needs vetting before anyone trusts it in production. The practical lesson from four separate companies making the same bet, with two of them partially reversing it, is that there's still no settled answer to open source's oldest unresolved question: who gets to make money off work that's given away for free, and what happens when the answer the license-writer chooses turns out to cost more goodwill than it buys in leverage.

Read next