public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-sshtunnel] paramiko-dss: Patch for DSSKey removal in paramiko; Fixes RHBZ#2485965
Date: Sun, 07 Jun 2026 05:25:38 GMT	[thread overview]
Message-ID: <178080993870.1.148628718383171646.rpms-python-sshtunnel-50a7dfc4e481@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-sshtunnel
Branch : paramiko-dss
Commit : 50a7dfc4e481bdc183e31d365653d2e58cf0a9a3
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-07T06:22:15+01:00
Stats  : +40/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-sshtunnel/c/50a7dfc4e481bdc183e31d365653d2e58cf0a9a3?branch=paramiko-dss

Log:
Patch for DSSKey removal in paramiko; Fixes RHBZ#2485965

---
diff --git a/300.patch b/300.patch
new file mode 100644
index 0000000..206486c
--- /dev/null
+++ b/300.patch
@@ -0,0 +1,30 @@
+From 7030d0c76c679c2934bdc27adc48ff5a84d1ae9a Mon Sep 17 00:00:00 2001
+From: lglines <lglines@fleetio.com>
+Date: Mon, 4 Aug 2025 08:58:11 -0600
+Subject: [PATCH] remove DSSKey, which is no longer supported by paramiko
+
+---
+ sshtunnel.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sshtunnel.py b/sshtunnel.py
+index c48e330f..0e1668d4 100644
+--- a/sshtunnel.py
++++ b/sshtunnel.py
+@@ -1090,7 +1090,6 @@ def get_keys(logger=None, host_pkey_directories=None, allow_agent=False):
+             host_pkey_directories = [DEFAULT_SSH_DIRECTORY]
+ 
+         paramiko_key_types = {'rsa': paramiko.RSAKey,
+-                              'dsa': paramiko.DSSKey,
+                               'ecdsa': paramiko.ECDSAKey}
+         if hasattr(paramiko, 'Ed25519Key'):
+             # NOQA: new in paramiko>=2.2: http://docs.paramiko.org/en/stable/api/keys.html#module-paramiko.ed25519key
+@@ -1295,7 +1294,7 @@ def read_private_key_file(pkey_file,
+             paramiko.Pkey
+         """
+         ssh_pkey = None
+-        key_types = (paramiko.RSAKey, paramiko.DSSKey, paramiko.ECDSAKey)
++        key_types = (paramiko.RSAKey, paramiko.ECDSAKey)
+         if hasattr(paramiko, 'Ed25519Key'):
+             # NOQA: new in paramiko>=2.2: http://docs.paramiko.org/en/stable/api/keys.html#module-paramiko.ed25519key
+             key_types += (paramiko.Ed25519Key, )

diff --git a/python-sshtunnel.spec b/python-sshtunnel.spec
index 456dd9e..3ac165a 100644
--- a/python-sshtunnel.spec
+++ b/python-sshtunnel.spec
@@ -13,6 +13,16 @@ URL:            https://github.com/pahaz/sshtunnel
 Source0:        %{pypi_source}
 BuildArch:      noarch
 
+# remove DSSKey, which is no longer supported by paramiko
+# https://github.com/pahaz/sshtunnel/pull/300
+#
+# Fixes:
+#
+# requirements need update module 'paramiko' has no attribute 'DSSKey'
+# https://github.com/pahaz/sshtunnel/issues/302
+# https://bugzilla.redhat.com/show_bug.cgi?id=2485965
+Patch:          %{url}/pull/300.patch
+
 BuildRequires:  python3-devel
 
 %if %{with tests}

                 reply	other threads:[~2026-06-07  5:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178080993870.1.148628718383171646.rpms-python-sshtunnel-50a7dfc4e481@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox