Skip to content

Find a solution to distribute mongodb despite its license restrictions #83433

Closed

Description

@Ma27

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).

cc @worldofpeace @Drakonis @aanderse

Activity

  1. added
    0.kind: bug
    9.needs: port to stable
    on Mar 26, 2020
  2. added this to the 20.03 milestone on Mar 26, 2020
  3. nixos-discourse commented on Mar 31, 2020

    @nixos-discourse
  4. added
    1.severity: blocker
    on Apr 3, 2020
  5. grahamc commented on Apr 3, 2020

    @grahamc
    Member

    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.

  6. nixos-discourse commented on Apr 3, 2020

    @nixos-discourse

    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

  7. gytis-ivaskevicius commented on Apr 6, 2020

    @gytis-ivaskevicius
    Contributor

    Temp workaround:
    have docker autostart MongoDB container

  8. Ma27 commented on Apr 7, 2020

    @Ma27
    MemberAuthor

    @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).

  9. worldofpeace commented on Apr 8, 2020

    @worldofpeace
    Contributor

    @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).

    Yep. I believe that was it.

  10. modified the milestones: 20.03, 20.09 on Apr 8, 2020
  11. removed
    1.severity: blocker
    9.needs: port to stable
    on Apr 8, 2020
  12. JamieMagee commented on Apr 18, 2020

    @JamieMagee
    Member

    I am a little unclear on the licensing of mongodb 3.4.24. I downloaded the sources from https://fastdl.mongodb.org/src/mongodb-src-r3.4.24.tar.gz, and looking at the README it states:

    LICENSE

    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?

  13. 10 remaining items

  14. Ekleog commented on Jan 23, 2021

    @Ekleog
    Member

    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!

  15. nixos-discourse commented on Feb 4, 2021

    @nixos-discourse

    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

  16. domenkozar commented on Feb 4, 2021

    @domenkozar
    Member

    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.

  17. Ma27 commented on Feb 4, 2021

    @Ma27
    MemberAuthor

    Can I ask, who is "we" and when/where was that decision made?

    @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 :)

  18. domenkozar commented on Feb 4, 2021

    @domenkozar
    Member

    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.

  19. Atemu commented on Feb 10, 2021

    @Atemu
    Member

    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.

  20. Ekleog commented on Feb 10, 2021

    @Ekleog
    Member

    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.

  21. Atemu commented on Feb 11, 2021

    @Atemu
    Member

    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.

  22. Ekleog commented on Feb 11, 2021

    @Ekleog
    Member

    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 ^^')

  23. kira-bruneau commented on Aug 14, 2026

    @kira-bruneau
    Contributor

    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.

    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 🤷‍♀️).

  24. Atemu commented on Sep 29, 2026

    @Atemu
    Member

    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.

  25. kira-bruneau commented on Oct 1, 2026

    @kira-bruneau
    Contributor

    @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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions