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
10 changes: 10 additions & 0 deletions .trivy/pgedge-postgres.trivyignore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Usage:
# trivy image --ignorefile .trivy/pgedge-postgres.trivyignore.yaml <pgedge-postgres image ref>
#
# Example entry:
# vulnerabilities:
# - id: CVE-XXXX-YYYY
# statement: "Justification for accepting this risk"

# No accepted-risk suppressions: all current findings are remediated in the Dockerfile.
vulnerabilities: []
19 changes: 16 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ set -o pipefail
set -o nounset

xargs dnf install -y < /usr/share/pgedge/packages.txt
# Patch any OS packages (including transitive dependencies pulled in above)
# to the latest available errata so the image ships with security fixes.
dnf update -y
dnf clean all

EOF
Expand Down Expand Up @@ -110,9 +113,19 @@ set -o pipefail
set -o nounset

xargs dnf install -y < /usr/share/pgedge/packages.txt
dnf install -y 'python3-pip-21.3.1-*'
pip install 'patroni[etcd,jsonlogger]==4.1.3'
dnf remove -y python3-pip
# Patch any OS packages (including transitive dependencies pulled in above)
# to the latest available errata so the image ships with security fixes.
dnf update -y
# Patroni's HTTP client dependencies only ship security fixes for Python >= 3.10
# (urllib3 >= 2.7.0, requests >= 2.33.0), while the system python3 is 3.9. Install
# patroni under python3.12 so it can pull the patched urllib3/requests, resolving
# CVE-2026-44431 and CVE-2026-44432 (urllib3) and CVE-2026-25645 (requests). The
# floors are pinned explicitly (patroni does not constrain them) so the build
# fails loudly if a fixed version is ever unavailable. The psycopg3 extra bundles
# libpq, so patroni no longer relies on the Python 3.9-only system psycopg2.
dnf install -y python3.12 python3.12-pip
python3.12 -m pip install 'patroni[etcd,jsonlogger,psycopg3]==4.1.3' 'urllib3>=2.7.0' 'requests>=2.33.0'
dnf remove -y python3.12-pip
dnf clean all

EOF
Expand Down
Loading