Skip to content

Commit 183aadc

Browse files
authored
feat: pgedge 4.0.10-4 images (#29)
- Updates the minor versions for all supported Postgres versions - Changes the Patroni installation method from `dnf` to `pip` to resolve several High and Medium CVEs
1 parent 8305da3 commit 183aadc

File tree

9 files changed

+47
-24
lines changed

9 files changed

+47
-24
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-bake.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ target "pgedge" {
6060
context = "docker/pgedge"
6161
matrix = {
6262
pg_version = ["15", "16", "17"],
63-
image_version = ["4.0.10-3"]
63+
image_version = ["4.0.10-4"]
6464
}
6565
name = replace("pgedge-${pg_version}-${image_version}", ".", "_")
6666
tags = pgedge_tags(PGEDGE_IMAGE_REPO, pg_version, image_version)

docker/pgedge/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
## Unreleased
44

5+
## [4.0.10-4] - 2025-05-08
6+
7+
### Changed
8+
9+
#### pg15 variant
10+
11+
- Upgraded to PostgreSQL 15.13-1
12+
13+
#### pg16 variant
14+
15+
- Upgraded to PostgreSQL 16.9-2
16+
17+
#### pg17 variant
18+
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.
27+
528
## [4.0.10-3] - 2025-03-20
629

730
### Changed

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"]
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
postgresql15-server-15.12-1PGDG.rhel9
1+
postgresql15-server-15.13-1PGDG.rhel9
22
spock_15-4.0.10-1PGDG.rhel9
33
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.8-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

docker/pgedge/packagelists/pg17_4.0.10-3.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
postgresql17-server-17.5-2PGDG.rhel9
2+
spock_17-4.0.10-1PGDG.rhel9
3+
snowflake_17-2.2-1PGDG.rhel9
4+
lolor_17-1.2-1PGDG.rhel9
5+
postgis35_17-3.5.3-1PGDG.rhel9
6+
pgvector_17-0.8.0-1PGDG.rhel9
7+
pgbackrest-2.55.1-1PGDG.rhel9
8+
python3-pip-21.3.1-1.el9
9+
python3-psycopg2-2.9.10-1PGDG.rhel9

server/internal/orchestrator/swarm/orchestrator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ func GetImages(cfg config.Config, version *host.PgEdgeVersion) (*Images, error)
137137
var tag string
138138
switch version.PostgresVersion.Major() {
139139
case 17:
140-
tag = "pgedge:pg17_4.0.10-3"
140+
tag = "pgedge:pg17_4.0.10-4"
141141
case 16:
142-
tag = "pgedge:pg16_4.0.10-3"
142+
tag = "pgedge:pg16_4.0.10-4"
143143
case 15:
144-
tag = "pgedge:pg15_4.0.10-3"
144+
tag = "pgedge:pg15_4.0.10-4"
145145
default:
146146
return nil, fmt.Errorf("unsupported postgres version: %q", version.PostgresVersion)
147147
}

0 commit comments

Comments
 (0)