Skip to content

Commit 43cf0ba

Browse files
authored
Adjust paramiko version selection to fit docker linux distro (#97)
We only really need to upgrade Paramiko on old legacy platforms like CentOS 7. So remove the default from example `env`s and leave it to the default in the active `Dockerfile`. We have received reports about possible regressions with `UPGRADE_PARAMIKO` enabled on Rocky and shouldn't need upgrades there at the moment.
2 parents 70b005c + 2a0cd88 commit 43cf0ba

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

Dockerfile.centos7

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ ARG UPGRADE_MOD_AUTH_OPENIDC=False
139139
# NOTE: source for optional mod auth openidc upgrade - upstream release if left unset
140140
ARG UPGRADE_OIDC_CJOSE_SRC=""
141141
ARG UPGRADE_OIDC_AUTH_MOD_SRC=""
142-
ARG UPGRADE_PARAMIKO=False
142+
# NOTE: more recent paramiko is required e.g. for modern host key algo and security fixes
143+
ARG UPGRADE_PARAMIKO=True
143144
ARG PUBKEY_FROM_DNS=False
144145
ARG WITH_PY3=False
145146
ARG PREFER_PYTHON3=False

Dockerfile.rocky8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ ARG UPGRADE_MOD_AUTH_OPENIDC=False
143143
# https://github.com/OpenIDC/mod_auth_openidc/releases
144144
ARG UPGRADE_OIDC_CJOSE_SRC=""
145145
ARG UPGRADE_OIDC_AUTH_MOD_SRC=""
146+
# NOTE: paramiko is a bit dated in OS repo - allow optional upgrade
146147
ARG UPGRADE_PARAMIKO=False
147148
ARG PUBKEY_FROM_DNS=False
148149
# NOTE: python2 support is going away in rocky8+

Dockerfile.rocky9

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ ARG UPGRADE_MOD_AUTH_OPENIDC=False
143143
# https://github.com/OpenIDC/mod_auth_openidc/releases
144144
ARG UPGRADE_OIDC_CJOSE_SRC=""
145145
ARG UPGRADE_OIDC_AUTH_MOD_SRC=""
146+
# NOTE: paramiko is a bit dated in OS repo - allow optional upgrade
146147
ARG UPGRADE_PARAMIKO=False
147148
ARG PUBKEY_FROM_DNS=False
148149
# NOTE: python2 support is gone on rocky9+

development.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ WWWSERVE_MAX_BYTES=-1
146146
# but using self-signed certs is already a bad hack.
147147
ENABLE_SELF_SIGNED_CERTS=True
148148
UPGRADE_MOD_AUTH_OPENIDC=False
149-
UPGRADE_PARAMIKO=False
149+
# NOTE: leave the choice of paramiko to the Dockerfile default here as it's only required on old distros
150+
#UPGRADE_PARAMIKO=False
150151
PUBKEY_FROM_DNS=False
151152
# NOTE: stay with wsgidav-1.3 for python2 to avoid CVE-2022-41905, we already get 4.3+ for python3
152153
MODERN_WSGIDAV=False

development_gdp.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ WWWSERVE_MAX_BYTES=-1
146146
# but using self-signed certs is already a bad hack.
147147
ENABLE_SELF_SIGNED_CERTS=True
148148
UPGRADE_MOD_AUTH_OPENIDC=False
149-
UPGRADE_PARAMIKO=False
149+
# NOTE: leave the choice of paramiko to the Dockerfile default here as it's only required on old distros
150+
#UPGRADE_PARAMIKO=False
150151
PUBKEY_FROM_DNS=False
151152
# NOTE: stay with wsgidav-1.3 for python2 to avoid CVE-2022-41905, we already get 4.3+ for python3
152153
MODERN_WSGIDAV=False

doc/source/sections/configuration/variables.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ Variables
477477
-
478478
- Optional custom source for the cjose OpenIDC dependency package if UPGRADE_MOD_AUTH_OPENIDC is requested
479479
* - UPGRADE_PARAMIKO
480-
- False
481-
- Upgrade the default Paramiko version to latest supported one during build
480+
-
481+
- Upgrade the default Paramiko version to latest supported one during build. Leave unset to pick default from active Dockerfile.
482482
* - PUBKEY_FROM_DNS
483483
- False
484484
- Advertize to SFTP users that they can find the host key in DNS(SEC).

production.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ WWWSERVE_MAX_BYTES=-1
146146
ENABLE_SELF_SIGNED_CERTS=False
147147
#BUILD_MOD_AUTH_OPENID=False
148148
UPGRADE_MOD_AUTH_OPENIDC=True
149-
# Use a recent paramiko for modern host key algo support in grid_sftp (ENABLE_SFTP)
150-
UPGRADE_PARAMIKO=True
149+
# NOTE: leave the choice of paramiko to the Dockerfile default here as it's only required on old distros
150+
#UPGRADE_PARAMIKO=True
151151
PUBKEY_FROM_DNS=False
152152
# NOTE: stay with wsgidav-1.3 for python2 to avoid CVE-2022-41905, we already get 4.3+ for python3
153153
MODERN_WSGIDAV=False

0 commit comments

Comments
 (0)