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
{{ message }}
Repository navigation
Find a solution to distribute mongodb despite its license restrictions #83433
In #40082, mongodb has been updated to its latest versions (3.4.24, 3.6.13, 4.0.12). Those are relicensed under MongoDB's sspl-license.
This license is not OSI-approved, but still allows redistribution and modification. However there are some restrictions e.g. for SaaS providers (see section 13 of the license). Because of that, it's currently marked as unfree in our license-attrset.
However, this has the downside that everyone has to compile their own mongodb which takes some time and resources since Hydra doesn't build unfree software. In #nixos-dev it has been suggested to update the licensing system to add a third category (e.g. redistributable) for packages that are actually unfree, but can be redistributed by Hydra (see also #47237 for that).
We decided Hydra should not build unfree, redistributable software in Hydra at this point, with very few exceptions. The only exception at this point is unfree redistributable firmware.
Reacted by Rick van Schijndel, davidak, Maximilian Bosch, Shane Sveller, Tristan Helmich, samhza, bhipple and cirno-999
Reacted by Domen Kožar, Lukas, Janne Heß and Oliver Motz
@grahamc@worldofpeace just to avoid some misunderstandings: the actual blocker was the backport PR (due it's security implications) and the license thing is something to be discussed, right? So, this is something that isn't blocking the release anymore and we could remove the blocker label now, right? (as far as I can tell after re-watching our discussion from last Friday).
@grahamc@worldofpeace just to avoid some misunderstandings: the actual blocker was the backport PR (due it's security implications) and the license thing is something to be discussed, right? So, this is something that isn't blocking the release anymore and we could remove the blocker label now, right? (as far as I can tell after re-watching our discussion from last Friday).
Most MongoDB source files (src/mongo folder and below) are made available
under the terms of the GNU Affero General Public License (GNU AGPLv3). See
individual files for details.
compared to 3.6.13:
LICENSE
MongoDB is free and open-source. Versions released prior to October 16,
2018 are published under the AGPL. All versions released after October
16, 2018, including patch fixes for prior versions, are published under
the Server Side Public License (SSPL) v1. See individual files for
details.
These seem to contradict each other?
Also, when looking at individual files, the license header comment states AGPLv3 in version 3.4.24 and SSPLv1 in version 3.6.13. Does the statement "See individual files for details." give more weight to the license in each individual file?
As per @grahamc and @Ma27's comments, this issue is currently, unfortunately, non-actionable.
As such, I am going to close this for now. Changing the policy for hydra to also build some unfree licenses would have to happen as an RFC. If you think hydra should build (some) unfree software, feel free to submit one.
We decided Hydra should not build unfree, redistributable software in Hydra at this point, with very few exceptions. The only exception at this point is unfree redistributable firmware.
Can I ask, who is "we" and when/where was that decision made?
We are leaving behind a lot of users in scientific world, which I would also prefer if everything was OSS, but it's not. Not building such software means we're missing out on an important part of the ecosystem.
Edit: please note that I raised this question back then since I had a specific issue (i.e. mongodb licensing). I haven't followed the most recent discussions in e.g. the discourse thread that's linked above, so I don't really have a strong opinion on that :)
This will incentivize unfree packages to always come in binary form to save compilation time, which makes things worse for software freedom, not better.
Something to think about - as the license is about the source.
Reacted by Thibault Lemaire, Léo Gaspard, Bryan A. S., Atemu, Alejandro Gallo, Andrew and Ethan Carter Edwards
Offering a service is the SaaS equivalent of providing a binary for locally-run software; all this does is bring being offered the software as a service on the same level as being offered the software as a binary.
It's more copyleft than the GPL.
The only worrying bit from my non-legal-expert perspective is that it also demands making the source code of all other software needed to offer the service available which seems a bit too far reaching but, again, if anything, this is only an expansion of the GPL's infectiousness.
Heck, it should even be GPL compatible since all it does is give the user additional permissions which is explicitly allowed by the GPL. IANAL though.
Reacted by Thibault Lemaire, Lukas, Jesse Abadilla, Kamil Monicz and Ethan Carter Edwards
What is marked “unfree” does not necessarily match any specific definition of “unfree” (in particular, unfree redistribuable firmware is currently marked “free” so it's on hydra, so this really makes little sense).
That being said, the reason why the SSPL is currently marked “unfree” in nixpkgs is that the OSI, who are legal experts, said it's not open-source (source) — I'm not sure whether the FSF ever took position on that matter, but I wouldn't be surprised if it were declared unfree by them too.
I'm surprised by this aswell but I'm not seeing any legal expertise in that article. Having read the SSPL's (rather small) modification to the AGPL, the article reads like your typical intentionally misleading/borderline factually wrong political garbage honestly.
No service provider is restricted by the SSPL. They can offer the service as much as they want with any modifications they like as long as they make the source available to their users.
Claiming this violates the OSD6 is the same as claiming that not being able to distribute a GPL'd binary without offering the source violates it in my eyes.
The purpose of the SSPL actually is not to place these "restrictions" but to make the freedoms already given to MongoDB licensees by the AGPL clearer so that MongoDB doesn't have to sue the violators.
The AGPL already places the same kind of "restriction" (a stronger one actually); if the SSPL is considered "proprietary", the AGPL would have to be too ...but it's OSI-approved?
The only actual potential violation of their Open Source definition is the requirement would be OSD9 as the SSPL requires a lot of other software to be source-available which even I think is overstepping it but the article doesn't even even mention that. A legal expert should've picked up on that immediately.
This is saddening because I thought the OSI was trustable and fighting for a good cause but this makes me consider otherwise and, given that, I don't think we should base our definition of FOSS on theirs.
To be clear, I don't think the SSPL is a great license (especially because of the potential OSD9 violation) but it's certainly not unfree or anywhere close to proprietary.
Edit: I found some more differentiated discussion on this but all official rejection of the SSPL as a Free or OS license I have found seems to be political, not factual.
Well, as things are there are AFAIK no legal experts with knowledge of FOSS who have weighed in here, so currently there is nothing better than send your complaints to the OSI I think, and/or submit the SSPL for consideration by another body with more legal knowledge than we have :)
For the record, I don't even find the SSPL on wikipedia's list of FOSS licenses, which sounds to me like it got approval of none of FSF/OSI/Fedora/Debian. I think that, to make NixOS mark the SSPL as free, it'd at least have to gather approval of one of these boards.
(As a side-note, I personally think that we should stop declaring licenses as free/unfree, and rather have a list of attributes like fsfApproved, osiApproved, etc.; and then instead of allowUnfree have allowLicensePredicate that'd default to something like osiApproved||fsfApproved||debianApproved||fedoraApproved||firmware, and that we should have hydra builds for all the redistributable things, so that we can stop having these discussions about which licenses should be “free” or “unfree”; but that is a different matter ^^')
Reacted by Atemu, Thibault Lemaire, Bryan A. S., Jona Abdinghoff, Roman Frołow, Lukas, Skyler Grey, ruro, Dominic Shelton, Jonathan Haylett and 8 more
I was just looking into this license and it sounds like scope of what needs to be made source-available is much larger than what the GPL/AGPL require.
Specifically, it sounds like you would also need to publish the source of your NixOS config (not just modifications to mongodb-ce). Also, you couldn't have any proprietary software be involved in hosting the service (eg. a proprietary load balancer, backup tool...):
“Service Source Code” means the Corresponding Source for the Program or the modified version, and the Corresponding Source for all programs that you use to make the Program or modified version available as a service, including, without limitation, management software, user interfaces, application program interfaces, automation software, monitoring software, backup software, storage software and hosting software, all such that a user could run an instance of the service using the Service Source Code you make available.
I was also thinking it was weird this was marked as "unfree" until I realized that (but I'm not a lawyer so 🤷♀️).
I was just looking into this license and it sounds like scope of what needs to be made source-available is much larger than what the GPL/AGPL require.
Indeed. I commented on this in the latter paragraphs. Expanding the scope of the (A)GPL seems like the intended purpose of this license to me.
Note also for context that this is specifically RE: whether the license should be considered unfree. The point I was making was that the SSPL's requirement to open everything involved in providing your service should conceptually be no more unfree than the GPL's requirement to open every part involved in making your binary run. It's the same concept applied on a different level of abstraction – SaaS rather than "software as a binary artifact".
IMV that makes it more restrictive than the (A)GPL in the same sense that the GPL is more restrictive than the MIT license. Neither of which become "unfree" in doing so because these restrictions exist to ensure that licensees can exercise the same freedoms which the licensor enjoys.
such that a user could run an instance of the service using the Service Source Code you make available.
Revisiting this 5 years later, the (deceptively) simple rule of "if you provide the software as a service, your users must also be able to run the service themselves" strikes me as weirdly desirable.
I think the SSPL goes a bit too far in requiring the source code be available for every part but only because that seems impractical/unnecessary, not because that stands in violation of a fundamental software freedom.
@Atemu Yeah, that's a great point. I think the issue is that "free" is often conflated GPL-compatible and we don't really have a great way to distinguish between licenses that are in the same spirit as the GPL but incompatible, vs proprietary software. I think it might be worth it to be more precise in how we identity licenses.
Specifically it seems like there are two dimensions to care about:
Input/source restrictions:
Closed source
GPL-incompatible open-code not in the "spirit" of free software (might have a "paid-only" tier that offers more features outside of just dedicated support)
Permissive open source
Copyleft GPL-like licenses
Strict GPL-incompatible licenses that extend the definition of a "derived work" to be able to fully reproduce service stacks (SSPL-like licenses)
Output/binary restrictions:
"License key" required
Free for personal use
Free for non-commercial use
Freely redistributiable with no restrictions (potentially closed-source)
Activity
nixos-discourse commentedon Mar 31, 2020
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/go-no-go-meeting-nixos-20-03-markhor/6495/10
grahamc commentedon Apr 3, 2020
We decided Hydra should not build unfree, redistributable software in Hydra at this point, with very few exceptions. The only exception at this point is unfree redistributable firmware.
nixos-discourse commentedon Apr 3, 2020
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/go-no-go-meeting-nixos-20-03-markhor/6495/16
gytis-ivaskevicius commentedon Apr 6, 2020
Temp workaround:
have docker autostart MongoDB container
Ma27 commentedon Apr 7, 2020
@grahamc @worldofpeace just to avoid some misunderstandings: the actual blocker was the backport PR (due it's security implications) and the license thing is something to be discussed, right? So, this is something that isn't blocking the release anymore and we could remove the blocker label now, right? (as far as I can tell after re-watching our discussion from last Friday).
worldofpeace commentedon Apr 8, 2020
Yep. I believe that was it.
JamieMagee commentedon Apr 18, 2020
I am a little unclear on the licensing of
mongodb3.4.24. I downloaded the sources from https://fastdl.mongodb.org/src/mongodb-src-r3.4.24.tar.gz, and looking at theREADMEit states:compared to 3.6.13:
These seem to contradict each other?
Also, when looking at individual files, the license header comment states AGPLv3 in version 3.4.24 and SSPLv1 in version 3.6.13. Does the statement "See individual files for details." give more weight to the license in each individual file?
10 remaining items
Ekleog commentedon Jan 23, 2021
As per @grahamc and @Ma27's comments, this issue is currently, unfortunately, non-actionable.
As such, I am going to close this for now. Changing the policy for hydra to also build some unfree licenses would have to happen as an RFC. If you think hydra should build (some) unfree software, feel free to submit one.
Thank you everyone for your input!
nixos-discourse commentedon Feb 4, 2021
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/comparing-nix-and-conda/11366/14
domenkozar commentedon Feb 4, 2021
Can I ask, who is "we" and when/where was that decision made?
We are leaving behind a lot of users in scientific world, which I would also prefer if everything was OSS, but it's not. Not building such software means we're missing out on an important part of the ecosystem.
Ma27 commentedon Feb 4, 2021
@domenkozar The decision was made at the go/nogo meeting on 20.03. I don't remember the details, but you can view the discussion here: https://youtu.be/7h-1jeLPHQU?t=1064
Edit: please note that I raised this question back then since I had a specific issue (i.e. mongodb licensing). I haven't followed the most recent discussions in e.g. the discourse thread that's linked above, so I don't really have a strong opinion on that :)
domenkozar commentedon Feb 4, 2021
Thanks @Ma27
This will incentivize unfree packages to always come in binary form to save compilation time, which makes things worse for software freedom, not better.
Something to think about - as the license is about the source.
Atemu commentedon Feb 10, 2021
Why is the SSPL considered unfree?
It's the AGPL with one extra/modified term which forces a hoster of the licensed software to make their modifications available.
Offering a service is the SaaS equivalent of providing a binary for locally-run software; all this does is bring being offered the software as a service on the same level as being offered the software as a binary.
It's more copyleft than the GPL.
The only worrying bit from my non-legal-expert perspective is that it also demands making the source code of all other software needed to offer the service available which seems a bit too far reaching but, again, if anything, this is only an expansion of the GPL's infectiousness.
Heck, it should even be GPL compatible since all it does is give the user additional permissions which is explicitly allowed by the GPL. IANAL though.
Ekleog commentedon Feb 10, 2021
What is marked “unfree” does not necessarily match any specific definition of “unfree” (in particular, unfree redistribuable firmware is currently marked “free” so it's on hydra, so this really makes little sense).
That being said, the reason why the SSPL is currently marked “unfree” in nixpkgs is that the OSI, who are legal experts, said it's not open-source (source) — I'm not sure whether the FSF ever took position on that matter, but I wouldn't be surprised if it were declared unfree by them too.
Atemu commentedon Feb 11, 2021
I'm surprised by this aswell but I'm not seeing any legal expertise in that article. Having read the SSPL's (rather small) modification to the AGPL, the article reads like your typical intentionally misleading/borderline factually wrong political garbage honestly.
No service provider is restricted by the SSPL. They can offer the service as much as they want with any modifications they like as long as they make the source available to their users.
Claiming this violates the OSD6 is the same as claiming that not being able to distribute a GPL'd binary without offering the source violates it in my eyes.
The purpose of the SSPL actually is not to place these "restrictions" but to make the freedoms already given to MongoDB licensees by the AGPL clearer so that MongoDB doesn't have to sue the violators.
The AGPL already places the same kind of "restriction" (a stronger one actually); if the SSPL is considered "proprietary", the AGPL would have to be too ...but it's OSI-approved?
The only actual potential violation of their Open Source definition is the requirement would be OSD9 as the SSPL requires a lot of other software to be source-available which even I think is overstepping it but the article doesn't even even mention that. A legal expert should've picked up on that immediately.
This is saddening because I thought the OSI was trustable and fighting for a good cause but this makes me consider otherwise and, given that, I don't think we should base our definition of FOSS on theirs.
To be clear, I don't think the SSPL is a great license (especially because of the potential OSD9 violation) but it's certainly not unfree or anywhere close to proprietary.
Edit: I found some more differentiated discussion on this but all official rejection of the SSPL as a Free or OS license I have found seems to be political, not factual.
Ekleog commentedon Feb 11, 2021
Well, as things are there are AFAIK no legal experts with knowledge of FOSS who have weighed in here, so currently there is nothing better than send your complaints to the OSI I think, and/or submit the SSPL for consideration by another body with more legal knowledge than we have :)
For the record, I don't even find the SSPL on wikipedia's list of FOSS licenses, which sounds to me like it got approval of none of FSF/OSI/Fedora/Debian. I think that, to make NixOS mark the SSPL as free, it'd at least have to gather approval of one of these boards.
(As a side-note, I personally think that we should stop declaring licenses as free/unfree, and rather have a list of attributes like fsfApproved, osiApproved, etc.; and then instead of allowUnfree have allowLicensePredicate that'd default to something like osiApproved||fsfApproved||debianApproved||fedoraApproved||firmware, and that we should have hydra builds for all the redistributable things, so that we can stop having these discussions about which licenses should be “free” or “unfree”; but that is a different matter ^^')
zimbatm commentedon Dec 30, 2024
FYI: unfree packages are available today in the https://nix-community.cachix.org cache. For more context see https://nix-community.org/package-sets/
leo60228 commentedon Apr 6, 2025
@zimbatm This seems to have broken? https://hydra.nix-community.org/zkv8wrbiz6r8q4pvs0z95wrw3kaw2y49.narinfo is present, but https://nix-community.cachix.org/zkv8wrbiz6r8q4pvs0z95wrw3kaw2y49.narinfo isn't.
kira-bruneau commentedon Aug 14, 2026
I was just looking into this license and it sounds like scope of what needs to be made source-available is much larger than what the GPL/AGPL require.
Specifically, it sounds like you would also need to publish the source of your NixOS config (not just modifications to
mongodb-ce). Also, you couldn't have any proprietary software be involved in hosting the service (eg. a proprietary load balancer, backup tool...):I was also thinking it was weird this was marked as "unfree" until I realized that (but I'm not a lawyer so 🤷♀️).
Atemu commentedon Sep 29, 2026
Indeed. I commented on this in the latter paragraphs. Expanding the scope of the (A)GPL seems like the intended purpose of this license to me.
Note also for context that this is specifically RE: whether the license should be considered unfree. The point I was making was that the SSPL's requirement to open everything involved in providing your service should conceptually be no more unfree than the GPL's requirement to open every part involved in making your binary run. It's the same concept applied on a different level of abstraction – SaaS rather than "software as a binary artifact".
IMV that makes it more restrictive than the (A)GPL in the same sense that the GPL is more restrictive than the MIT license. Neither of which become "unfree" in doing so because these restrictions exist to ensure that licensees can exercise the same freedoms which the licensor enjoys.
Revisiting this 5 years later, the (deceptively) simple rule of "if you provide the software as a service, your users must also be able to run the service themselves" strikes me as weirdly desirable.
I think the SSPL goes a bit too far in requiring the source code be available for every part but only because that seems impractical/unnecessary, not because that stands in violation of a fundamental software freedom.
kira-bruneau commentedon Oct 1, 2026
@Atemu Yeah, that's a great point. I think the issue is that "free" is often conflated GPL-compatible and we don't really have a great way to distinguish between licenses that are in the same spirit as the GPL but incompatible, vs proprietary software. I think it might be worth it to be more precise in how we identity licenses.
Specifically it seems like there are two dimensions to care about:
Input/source restrictions:
Output/binary restrictions: