Skip to content

Consider relicensing to BSD/Apache/etc #540

Open

Description

@bitprophet

tl;dr I've gotten a handful of requests to relicense Paramiko to a more permissive license. It seems doable but may require we contact all reachable contributors to either receive their permission, or rewrite/remove their contribution if they explicitly deny permission.

These requests come in a few times each year (since I took over in 2012), often from individuals representing nontrivial groups of commercial users from well known companies). Robey has given permission on his own & stated he'd found LGPL to be less appropriate as time went on, during his own tenure.

I've been tracking a bunch of notes about this in an Evernote but it really should be in a ticket for better visibility, discussion (ideally, not bikeshedding...) etc. Below is a dump of that Evernote (which will continue to be expanded and reorganized as we go).


Activity

  1. added this to the 2.0 milestone on Jun 17, 2015
  2. bitprophet commented on Jun 17, 2015

    @bitprophet
    MemberAuthor

    One pertinent excerpt from some of the email discussions I've had (this is from myself, to the other party):

    My and many others' interpretations of the GPL and LGPL is that
    Python's import statement does not count as "linking" in the sense the
    *GPL licenses use the term. Thus it's most likely safe to 'import
    some_gpl_library' within a more-permissively-licensed codebase,
    without 'tainting' that codebase & making it subject to the GPL.

    That discussion was about a more permissive license (e.g. importing Paramiko into a BSD codebase), but AFAIK, the argument cuts both ways.

  3. lndbrg commented on Jun 17, 2015

    @lndbrg
    Contributor

    I actually disagree (and so do others: https://wiki.creativecommons.org/wiki/GPL_compatibility_use_cases#2._Using_Python_scripts_in_blender). Using a library that is GPL taints your whole project (unless it's LGPL which explicitly allows this).

    I also got my contribution backed out from chef/ohai for adding a requirement to a GPLed rubygem. That might be an issue with them actually distributing all the gems as one big install though.

  4. bitprophet commented on Jun 18, 2015

    @bitprophet
    MemberAuthor

    @lndbrg Well, so you're arguing that the above excerpt is incorrect about how it lumps GPL and LGPL together? Sure, I can see that. However, for our purposes, Paramiko is LGPL (not regular GPL) so the advice still stands, yes?

  5. lndbrg commented on Jun 19, 2015

    @lndbrg
    Contributor

    Yes, I argue that the lumping is incorrect. Given that we are using the LGPL we are not currently tainting any other product that uses paramiko (since linking/library usage is okay with proprietary software).

  6. bitprophet commented on Jun 19, 2015

    @bitprophet
    MemberAuthor

    Yes, correct. I still feel it'd be worthwhile relicensing to BSD sometime; even though our reading of LGPL implies commercial use isn't a problem, it's clearly contentious/confusing enough that the issue comes up periodically :)

  7. theonewolf commented on Feb 23, 2016

    @theonewolf

    I'd like to chime in that from a commercial standpoint, this specific clause is a bit worrying:

    6. As an exception to the Sections above, you may also combine or
    link a "work that uses the Library" with the Library to produce a
    work containing portions of the Library, and distribute that work
    under terms of your choice, provided that the terms permit
    modification of the work for the customer's own use and reverse
    engineering for debugging such modifications.

    Combinations are defined in the Pythonic import sense I believe:

    When a program is linked with a library, whether statically or using
    a shared library, the combination of the two is legally speaking a
    combined work, a derivative of the original library. The ordinary
    General Public License therefore permits such linking only if the
    entire combination fits its criteria of freedom. The Lesser General
    Public License permits more lax criteria for linking other code with
    the library.

    Commercially speaking, you typically don't want to give "reverse engineering" rights to your products.

    But the LGPL, according to my reading, requires this.

    For example, lets say I wanted to package up a virtualenv inside an Python-executable Zip file and distribute that onto my customer's machines.

    This would mean I'm distributing Paramiko which dynamically links into my commercial product.

    This means, again according to my LGPL reading, that I must allow my customers the right to "reverse engineer" the combined work---my commercial product.

    So, I may not need to open source my commercial bits, but I must not forbid reverse engineering of them.

    I give a huge thumbs up towards switching to a more permissive license like the BSD license which you mentioned.

    If you want to see what it could look like, check out oh-my-fish: oh-my-fish/oh-my-fish-legacy#159

  8. modified the milestones: 2.0, on Apr 24, 2016
  9. ran-z commented on Jun 1, 2017

    @ran-z

    Any update on this?

  10. bitprophet commented on Jun 1, 2017

    @bitprophet
    MemberAuthor

    No comments, no update :) still in "may have to get buy-in from hundreds of previous contributors, or make solid enough case that such action is not legally required" limbo, and there's frankly many more pressing things on the priority list :(

  11. aihuasxy commented on Feb 28, 2018

    @aihuasxy

    Paramiko can be used in closed source software and packaged by pyinstaller?
    not modified, just package.

  12. bitprophet commented on Mar 1, 2018

    @bitprophet
    MemberAuthor

    @aihuasxy As the current primary copyright holder I have, previously, given verbal permission for corporations to distribute unmodified copies of Paramiko, since the question of whether simple importing in Python triggers "derivative work" clauses of the LGPL is not clear cut.

  13. isamaru commented on Jun 4, 2018

    @isamaru

    One additional concern is that "demos" examples are part of the project and included in the LGPL license. So if I use paramiko by modifying those, it seems to fall under derivative work and I "taint" my project.

  14. piskvorky commented on Aug 10, 2018

    @piskvorky

    @bitprophet thanks for the great library. What's the status on switching to BSD / Apache / MIT license?

  15. bitprophet commented on Aug 10, 2018

    @bitprophet
    MemberAuthor

    @isamaru see #1245 😆 your comment is just another reason for me to wonder about whether they're truly useful...

    @piskvorky it's all in this ticket! there is no behind the scenes work on this presently. basically, #540 (comment) 🙃

  16. tony commented on Apr 23, 2022

    @tony

    The license here surprised me.

    To prevent the list from growing moving forward:

    and there's frankly many more pressing things on the priority list :(

    It's true. I still think it's worth it to have a permissive license if that's the intent of the project.

    Is this effort still worth it to you @bitprophet ?

  17. urbitceo commented on Sep 2, 2022

    @urbitceo

    Hello, I am looking for some advice on how to use and modify this code: https://github.com/paramiko/paramiko/blob/main/demos/forward.py

    My project is licensed Apache 2.0, and the code above is LGPL.

    This is an example script, not an import so I will be copying then modifying this file and including it in my project.

    The license notice on the file lists the author's name and states it is a part of paramiko. I will be modifying the file enough that this will not be true (my modified file is not included in paramiko).

    I am fine leaving the notice as-is and including a copy of LGPL in my project if that is appropriate, but it doesn't seem right to blame the original author for any changes I make to the file.

    Can anyone advise on what is appropriate to do here?

  18. bskinn commented on Sep 26, 2022

    @bskinn
    Contributor

    @nodreb-borrus While licensing related, your question really is off-topic for this issue. If nothing else, this should be its own separate ticket.

    That said, I don't know if you're likely to get many useful replies here. You're probably better asking on one of the StackExchange sites, such as https://opensource.stackexchange.com.

  19. WillFM commented on Nov 7, 2024

    @WillFM

    Instead of waiting for explicit approval from all previous contributors. Could you instead do an explicit decline/protest?. with a deadline, And explicitly call out, that by not responding within the deadline, they are implicitly agreeing to the license change? That way, at least the burden, is not chasing down every single response.

    Large cooperation's do this all the time with changes to there licensing agreements.

    You'd still be on the hook for sending some type correspondence to all contributors though.

  20. remram44 commented on Nov 7, 2024

    @remram44

    There is no "implicit agreeing" to losing your copyright, wtf?

  21. jaredbarranco commented on Nov 3, 2026

    @jaredbarranco

    Its concerning that upstream projects, like the one linked on your homepage: https://www.fabfile.org/ are licensed BSD when paramiko is GPL.

    Even LGPL is viewed as a risk from enterprise compliance perspective. Per Claudel:

    What you need to do when distributing (LGPL)

    Keep the library’s license text and copyright notices, and mention it in your attribution/credits.
    Offer the library’s source (plus any changes you made to it).
    Make it possible for users to replace the library. Dynamic linking (a .dll/.so they can swap) satisfies this easily.

    Assuming no changes to the paramiko library (negates first two), you're massively increasing engineering cost to allow someone to side load a custom version of paramiko...? Maybe I'm missing something here, but re-licensing may be worth considering, otherwise this just is untenable.

  22. remram44 commented on Nov 3, 2026

    @remram44

    The only thing you're missing is that it can't be done

  23. remram44 commented on Nov 4, 2026

    @remram44

    I have no idea what you are talking about. I don't know what to answer other than "absolutely not".

    corporations routinely use similar approaches when modifying existing agreements

    Only when the original agreement mentions the mechanism in which the agreement may change. Also understand that license are not terms of service, if that's what you are thinking about.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions