Skip to content

chore(deps): update dependency psycopg2-binary to v2.9.11#1446

Open
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:v1from
renovate-bot:renovate/psycopg2-binary-2.x
Open

chore(deps): update dependency psycopg2-binary to v2.9.11#1446
renovate-bot wants to merge 1 commit intoGoogleCloudPlatform:v1from
renovate-bot:renovate/psycopg2-binary-2.x

Conversation

@renovate-bot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
psycopg2-binary (source, changelog) ==2.9.9==2.9.11 age confidence

Release Notes

psycopg/psycopg2 (psycopg2-binary)

v2.9.11

Compare Source

v2.9.10

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@forking-renovate forking-renovate bot added the automerge Merge the pull request once unit tests and other checks pass. label Mar 27, 2026
@renovate-bot renovate-bot requested a review from a team as a code owner March 27, 2026 07:02
@renovate-bot renovate-bot added the automerge Merge the pull request once unit tests and other checks pass. label Mar 27, 2026
@dpebot
Copy link
Copy Markdown
Collaborator

dpebot commented Mar 27, 2026

/gcbrun

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the psycopg2-binary dependency to version 2.9.11 in both the guestbook and hello-world Django services. The reviewer recommends switching from psycopg2-binary to the source distribution psycopg2 for production environments to ensure better security and compatibility with system libraries, noting that this change requires adding build dependencies like postgresql-dev to the Dockerfile.

@@ -1,3 +1,3 @@
Django==4.2.9
psycopg2-binary==2.9.9
psycopg2-binary==2.9.11
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

For production environments, it is strongly recommended to use psycopg2 instead of psycopg2-binary. The psycopg2-binary package is meant for development and testing, as it comes with its own pre-compiled dependencies which may not be up-to-date with security patches or compatible with the system libraries.

Using the source distribution (psycopg2) ensures that it's compiled against the system's libraries in the Docker image, which is safer and more reliable for production.

This will require adding build dependencies to your Dockerfile. For an Alpine-based image, you would need to add something like this before installing the requirements:

RUN apk add --no-cache postgresql-dev gcc musl-dev
psycopg2==2.9.11
References
  1. The psycopg2-binary package is intended for development and testing purposes, not for production use. For production, the source distribution psycopg2 should be used to ensure it is built against the system's trusted libraries, avoiding potential security vulnerabilities or incompatibilities from bundled dependencies.

Django==4.2.10
requests==2.31.0
psycopg2-binary==2.9.9
psycopg2-binary==2.9.11
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

For production environments, it is strongly recommended to use psycopg2 instead of psycopg2-binary. The psycopg2-binary package is meant for development and testing, as it comes with its own pre-compiled dependencies which may not be up-to-date with security patches or compatible with the system libraries.

Using the source distribution (psycopg2) ensures that it's compiled against the system's libraries in the Docker image, which is safer and more reliable for production.

This will require adding build dependencies to your Dockerfile. For an Alpine-based image, you would need to add something like this before installing the requirements:

RUN apk add --no-cache postgresql-dev gcc musl-dev
psycopg2==2.9.11
References
  1. The psycopg2-binary package is intended for development and testing purposes, not for production use. For production, the source distribution psycopg2 should be used to ensure it is built against the system's trusted libraries, avoiding potential security vulnerabilities or incompatibilities from bundled dependencies.

@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants