Skip to content

Commit 81ba00f

Browse files
committed
security: update pgedge 4.0.10-4 image
- Updates the Postgres release versions for Postgres 16 and 17 - Changes the Patroni installation method from `dnf` to `pip` to resolve several High and Medium CVEs
1 parent 4780d92 commit 81ba00f

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Security
2+
body: Updated `pgedge` images to 4.0.10-4
3+
time: 2025-06-02T14:20:04.481947-04:00

docker/pgedge/CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@
1212

1313
#### pg16 variant
1414

15-
- Upgraded to PostgreSQL 16.9-1
15+
- Upgraded to PostgreSQL 16.9-2
1616

1717
#### pg17 variant
1818

19-
- Upgraded to PostgreSQL 17.5-1
19+
- Upgraded to PostgreSQL 17.5-2
20+
21+
#### All variants
22+
23+
- Install Patroni from `pip` instead of with system package manager
24+
- The system package manager provides outdated Python dependencies that
25+
contain several Medium and High CVEs. Installing from `pip` gives us the
26+
latest compatible package versions and resolves the CVEs.
2027

2128
## [4.0.10-3] - 2025-03-20
2229

docker/pgedge/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dnf install -y epel-release dnf
2727
dnf config-manager --set-enabled crb
2828
dnf update -y --allowerasing
2929
xargs dnf install -y < /usr/share/pgedge/packages.txt
30-
pip install 'python-json-logger==3.2.1'
30+
pip install 'patroni[etcd,jsonlogger]==4.0.5'
3131
dnf remove -y python3-pip
3232
dnf clean all
3333

@@ -38,4 +38,4 @@ USER postgres
3838
ENV PG_MAJOR=${POSTGRES_VERSION}
3939
ENV PATH=$PATH:/usr/pgsql-${POSTGRES_VERSION}/bin
4040

41-
ENTRYPOINT ["/usr/bin/patroni"]
41+
ENTRYPOINT ["/usr/local/bin/patroni"]

docker/pgedge/packagelists/pg15_4.0.10-4.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ snowflake_15-2.2-1PGDG.rhel9
44
lolor_15-1.2-1PGDG.rhel9
55
postgis35_15-3.5.2-1PGDG.rhel9
66
pgvector_15-0.8.0-1PGDG.rhel9
7+
pgbackrest-2.55.1-1PGDG.rhel9
78
python3-pip-21.3.1-1.el9
8-
patroni-4.0.5-1PGDG.rhel9
9-
patroni-etcd-4.0.5-1PGDG.rhel9
10-
pgbackrest-2.54.2-1PGDG.rhel9
9+
python3-psycopg2-2.9.10-1PGDG.rhel9
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
postgresql16-server-16.9-1PGDG.rhel9
1+
postgresql16-server-16.9-2PGDG.rhel9
22
spock_16-4.0.10-1PGDG.rhel9
33
snowflake_16-2.2-1PGDG.rhel9
44
lolor_16-1.2-1PGDG.rhel9
55
postgis35_16-3.5.2-1PGDG.rhel9
66
pgvector_16-0.8.0-1PGDG.rhel9
7+
pgbackrest-2.55.1-1PGDG.rhel9
78
python3-pip-21.3.1-1.el9
8-
patroni-4.0.5-1PGDG.rhel9
9-
patroni-etcd-4.0.5-1PGDG.rhel9
10-
pgbackrest-2.54.2-1PGDG.rhel9
9+
python3-psycopg2-2.9.10-1PGDG.rhel9
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
postgresql17-server-17.5-1PGDG.rhel9
1+
postgresql17-server-17.5-2PGDG.rhel9
22
spock_17-4.0.10-1PGDG.rhel9
33
snowflake_17-2.2-1PGDG.rhel9
44
lolor_17-1.2-1PGDG.rhel9
5-
postgis35_17-3.5.2-1PGDG.rhel9
5+
postgis35_17-3.5.3-1PGDG.rhel9
66
pgvector_17-0.8.0-1PGDG.rhel9
7+
pgbackrest-2.55.1-1PGDG.rhel9
78
python3-pip-21.3.1-1.el9
8-
patroni-4.0.5-1PGDG.rhel9
9-
patroni-etcd-4.0.5-1PGDG.rhel9
10-
pgbackrest-2.54.2-1PGDG.rhel9
9+
python3-psycopg2-2.9.10-1PGDG.rhel9

0 commit comments

Comments
 (0)