Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changes/unreleased/Security-20250602-142004.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Security
body: Updated `pgedge` images to 4.0.10-4
time: 2025-06-02T14:20:04.481947-04:00
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ target "pgedge" {
context = "docker/pgedge"
matrix = {
pg_version = ["15", "16", "17"],
image_version = ["4.0.10-3"]
image_version = ["4.0.10-4"]
}
name = replace("pgedge-${pg_version}-${image_version}", ".", "_")
tags = pgedge_tags(PGEDGE_IMAGE_REPO, pg_version, image_version)
Expand Down
23 changes: 23 additions & 0 deletions docker/pgedge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

## Unreleased

## [4.0.10-4] - 2025-05-08

### Changed

#### pg15 variant

- Upgraded to PostgreSQL 15.13-1

#### pg16 variant

- Upgraded to PostgreSQL 16.9-2

#### pg17 variant

- Upgraded to PostgreSQL 17.5-2

#### All variants

- Install Patroni from `pip` instead of with system package manager
- The system package manager provides outdated Python dependencies that
contain several Medium and High CVEs. Installing from `pip` gives us the
latest compatible package versions and resolves the CVEs.

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

### Changed
Expand Down
4 changes: 2 additions & 2 deletions docker/pgedge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dnf install -y epel-release dnf
dnf config-manager --set-enabled crb
dnf update -y --allowerasing
xargs dnf install -y < /usr/share/pgedge/packages.txt
pip install 'python-json-logger==3.2.1'
pip install 'patroni[etcd,jsonlogger]==4.0.5'
dnf remove -y python3-pip
dnf clean all

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

ENTRYPOINT ["/usr/bin/patroni"]
ENTRYPOINT ["/usr/local/bin/patroni"]
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
postgresql15-server-15.12-1PGDG.rhel9
postgresql15-server-15.13-1PGDG.rhel9
spock_15-4.0.10-1PGDG.rhel9
snowflake_15-2.2-1PGDG.rhel9
lolor_15-1.2-1PGDG.rhel9
postgis35_15-3.5.2-1PGDG.rhel9
pgvector_15-0.8.0-1PGDG.rhel9
pgbackrest-2.55.1-1PGDG.rhel9
python3-pip-21.3.1-1.el9
patroni-4.0.5-1PGDG.rhel9
patroni-etcd-4.0.5-1PGDG.rhel9
pgbackrest-2.54.2-1PGDG.rhel9
python3-psycopg2-2.9.10-1PGDG.rhel9
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
postgresql16-server-16.8-1PGDG.rhel9
postgresql16-server-16.9-2PGDG.rhel9
spock_16-4.0.10-1PGDG.rhel9
snowflake_16-2.2-1PGDG.rhel9
lolor_16-1.2-1PGDG.rhel9
postgis35_16-3.5.2-1PGDG.rhel9
pgvector_16-0.8.0-1PGDG.rhel9
pgbackrest-2.55.1-1PGDG.rhel9
python3-pip-21.3.1-1.el9
patroni-4.0.5-1PGDG.rhel9
patroni-etcd-4.0.5-1PGDG.rhel9
pgbackrest-2.54.2-1PGDG.rhel9
python3-psycopg2-2.9.10-1PGDG.rhel9
10 changes: 0 additions & 10 deletions docker/pgedge/packagelists/pg17_4.0.10-3.txt

This file was deleted.

9 changes: 9 additions & 0 deletions docker/pgedge/packagelists/pg17_4.0.10-4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
postgresql17-server-17.5-2PGDG.rhel9
spock_17-4.0.10-1PGDG.rhel9
snowflake_17-2.2-1PGDG.rhel9
lolor_17-1.2-1PGDG.rhel9
postgis35_17-3.5.3-1PGDG.rhel9
pgvector_17-0.8.0-1PGDG.rhel9
pgbackrest-2.55.1-1PGDG.rhel9
python3-pip-21.3.1-1.el9
python3-psycopg2-2.9.10-1PGDG.rhel9
6 changes: 3 additions & 3 deletions server/internal/orchestrator/swarm/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ func GetImages(cfg config.Config, version *host.PgEdgeVersion) (*Images, error)
var tag string
switch version.PostgresVersion.Major() {
case 17:
tag = "pgedge:pg17_4.0.10-3"
tag = "pgedge:pg17_4.0.10-4"
case 16:
tag = "pgedge:pg16_4.0.10-3"
tag = "pgedge:pg16_4.0.10-4"
case 15:
tag = "pgedge:pg15_4.0.10-3"
tag = "pgedge:pg15_4.0.10-4"
default:
return nil, fmt.Errorf("unsupported postgres version: %q", version.PostgresVersion)
}
Expand Down