Repository navigation
Description
This is a follow-up to #507728, around how we should handle Discord's new OpenSSL 1.1 dependency
That PR updated the Linux Discord packages for Discord's new distro layout. The awkward leftover is that Discord now ships native modules linked against OpenSSL 1.1.
For a reproducible example, using nixpkgs commit 9fbfe38ef3db396b357c3438c016d0dbc8cb7129:
# See insecure warning for ptb package
nix --extra-experimental-features 'nix-command flakes' run github:NixOS/nixpkgs/9fbfe38ef3db396b357c3438c016d0dbc8cb7129#legacyPackages.x86_64-linux.discord-ptb --impure
# See OpenSSL 1.1
nix --extra-experimental-features 'nix-command flakes' shell \
github:NixOS/nixpkgs/9fbfe38ef3db396b357c3438c016d0dbc8cb7129#brotli \
github:NixOS/nixpkgs/9fbfe38ef3db396b357c3438c016d0dbc8cb7129#binutils \
--command bash -euo pipefail -c '
src=$(nix --extra-experimental-features "nix-command flakes" build \
--no-link --print-out-paths --expr '\''
let
pkgs = (builtins.getFlake "github:NixOS/nixpkgs/9fbfe38ef3db396b357c3438c016d0dbc8cb7129").legacyPackages.x86_64-linux;
source = pkgs.discord-ptb.source.modules.discord_dispatch;
in
pkgs.fetchurl { inherit (source) url hash; }
'\'')
tmp=$(mktemp -d)
trap "rm -rf $tmp" EXIT
brotli -d < "$src" | tar -xf - -C "$tmp"
readelf -d "$tmp/files/discord_dispatch.node" | grep NEEDED
readelf -W --dyn-syms "$tmp/files/discord_dispatch.node" \
| awk '\''$7 == "UND" && /OPENSSL/ { print $8 }'\'' \
| head
'Relevant output:
Shared library: [libssl.so.1.1]
Shared library: [libcrypto.so.1.1]
ENGINE_init@OPENSSL_1_1_0
X509_STORE_set_flags@OPENSSL_1_1_0
SSL_CTX_free@OPENSSL_1_1_0So the current behavior is technically correct: affected Discord variants depend on openssl_1_1, and users must allow openssl-1.1.1w through permittedInsecurePackages.
The question is whether the current behavior gives Discord users the "right message"
Discord is popular, and most users will compare this with other ways of installing Discord. Flatpak and other distros generally do not block Discord over this, so the nixpkgs error can easily read as "nixpkgs is being too strict" or "Discord is only insecure here", even though the underlying issue is upstream Discord shipping native code linked against EOL OpenSSL
I do think our reason here is better than generic warnings like "this app is proprietary" or "this app uses X11". This is an actual runtime dependency on an EOL crypto library. But humans are humans, and if users mostly experience this as another nixpkgs annoyance they need to bypass to run Discord, the warning becomes less useful as a warning
Possible options:
- Keep current behavior as-is
- Keep the warning, but document the Discord-specific reason somewhere visible (from a user POV), if possible
- Something else entirely?
I mainly want to avoid silently weakening the warning while also making the situation clearer for Discord users.
Maintainers:
@Artturin @Infinidoge @jopejoe1 @Scrumplex
Activity
elfenermarcell commentedon Apr 27, 2026
Not sure if this has been mentioned, but it might be worth telling users that using the browser version of discord is also an option, it only lacks a few features (e.g. global hotkeys).
fix(lavender-pilled): permit insecure discord dep
coral-discord commentedon Apr 30, 2026
Hey @FlameFlag , coral from discord here.
The OpenSSL 1.1 dep comes from an old module that we never ended up using on Linux, we're planning on removing this soon.
@elfenermarcell ,
While we actively support both versions, we've spent a lot of time lately on improving the Linux version. We're posting about it soon but suffice to say we believe the native client to be the one you want if you aim to use Go Live with your friends.
4evy commentedon Apr 30, 2026
Hey @coral-discord, glad to see you here! I’m also glad to hear the OpenSSL 1.1 dependency is just leftover code. In that case, this issue is already half-solved. I'll wait for that version to be officially released and land in nixpkgs, then close this issue.
From the NixOS side, the only thing we really need to adapt to the new update flow is a way to pin versions. Thanks a lot for stopping by, and best wishes to you and the team!
dtomvan commentedon May 4, 2026
In the meantime we could patch out the OpenSSL 1.1 dependency by making
autoPatchelfHookignore the missing dependency, which to me seems fine as thelibssl.so.1.1andlibcrypto.so.1.1libraries that thediscord_dispatch.nodebinary is linked to isn't actually used in practice. Something like this? dtomvan@8bf1af14evy commentedon May 6, 2026
@dtomvan thanks a lot for the idea, I made a PR: #517309