mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
Licensing issue with openssl <3.0 #961
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dionysius on GitHub.
While building my debian packaging I got informed by the tooling that vaultwarden, licensed as GPL-3, links to openssl, licensed as either Apache 2.0 (v3.0+) or the dual OpenSSL and SSLeay license (<v3.0), which can be incompatible. Apache 2.0 seems fine from my mind, but I'm not fit in that licensing jungle. The OpenSSL license for <3.0 seem to be the issue.
Linking a stackoverflow question which summerizes the situation and solution pretty well.
Current Ubuntu LTS jammy uses openssl 3.0.0, but current Debian stable bullseye uses openssl 1.1.1. It's good that we soon don't have to worry anymore once openssl 3.0.0 is rolled out everywhere (implicates that my above assumption is correct regarding Apache 2.0).
Is it possible to include an exception for openssl as they've discussed in the above stackoverflow question? So far I couldn't find such an exception in the current license text yet.
@dionysius commented on GitHub:
I worked a bit more on my packaging and ended up not shipping a build for debian anyway since github actions has no debian images. BTW its the debian tooling that informed me, so I'd have to dig deeper why I still get the warning if debian would have such exception globally.
For me it would be fine closing this. I'm right now not affected by this anymore and the issue will anyway silently go away in time. I just also wanted to let you know.
@BlackDex commented on GitHub:
I think Debian/Ubuntu isn't an issue atm. But the Alpine based images which are using 1.1.1 as a static library might be. Switching to 3.x is maybe something we should think about. Also with the debian images. But i rather wait until bookworm is stable.
@stefan0xC commented on GitHub:
Does the system library exception not apply? As far as I've looked into this, Debian apparently decided to treat OpenSSL as a system library like Fedora but I'm not a lawyer and not sure if an exception is still necessary or not, and to what extend the usage of
opensslcrate (which could theoretically be also linked against LibreSSL) makes a difference in this case or not.Since the Apache 2.0 license is compatible you could ship a vendored
openssl-3.0instead of linking to the system library as a workaround (if Debian packaging policies allow this).