Repository navigation
chore(deps): bump github.com/jackc/pgx/v5 from 5.11.0 to 5.13.0 - #220
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.11.0 to 5.13.0. - [Release notes](https://github.com/jackc/pgx/releases) - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](jackc/pgx@v5.11.0...v5.13.0) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v5 dependency-version: 5.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
harshsaver
left a comment
There was a problem hiding this comment.
🤖 Agentbox PR audit: changes requested
What needs to change
Please apply the fix plan above.
n/a
What this PR changes
- What it does: Updates the library the hosted server uses to talk to PostgreSQL, from 5.11.0 to 5.13.0. One supporting library also receives a patch update.
- What changes in the product: Nothing visible in normal use. A rare database failure now returns an error instead of automatically repeating a write that might already have succeeded. Operators using client certificate files must keep those files readable while the service runs.
- Why it exists: The scheduled dependency update includes fixes for three published security advisories and several database reliability problems. Our checked-in usage avoids the specific vulnerable operations or enforces verified remote connections.
- Why merge (or why not yet): The dependency record still names the old version. Repository policy requires updating it in this PR. The remaining fix is two lines.
- What to expect after merging: Normal operation should stay the same. Check the deployed service’s real database connection and watch for newly surfaced connection errors. If client certificates are configured, confirm the service can continue reading their files. Required maintainer and code-owner review still applies.
Full audit (Claude (claude-opus-5-5, xhigh) × Codex (gpt-6.1-sol, xhigh), 2 turns, commit 7af2130)
PR audit: #220 — chore(deps): bump github.com/jackc/pgx/v5 from 5.11.0 to 5.13.0
Head: 7af2130
Sign-off
- Claude (claude-opus-5-5, xhigh): ✅ satisfied — the bump is correct and checksum-verified; the only gap is the stale pgx version in docs/dependencies.md, a 2-line fix
- Codex (gpt-6.1-sol, xhigh): ✅ satisfied — independently confirmed the documentation blocker and two-line fix; no additional blocking regression found
Decision
fix — the go.mod/go.sum bump is correct and CI is green, but docs/dependencies.md:16,20 still names pgx v5.11.0 and CONTRIBUTING.md:62 requires the pin record to change in the same PR
Should this exist?
- Verdict: yes — this is the routine monthly Dependabot
gomodupdate configured in.github/dependabot.yml:9-12. It updates an established PostgreSQL driver and includes security and correctness fixes. - Product-rule issues: None. The PR introduces no application limits, timers, thresholds or defaults. The retry correction is a bug fix. Certificate reloading is an upstream feature with an operational caveat described below; it is compatible with this repository’s configuration handling.
- Simpler alternative: None. Updating the existing driver is the smallest change.
- Real-launch evidence: not applicable — ordinary local CLI operation uses SQLite (
bus/store.go:88). PostgreSQL is opened by hosted serving and database administration commands (cmd/agentintercom/hosted.go:62,cmd/agentintercom/database.go:30,36). CI exercises that backend against PostgreSQL 17.
What changes (plain language)
- What it does: Updates the library the hosted server uses to talk to PostgreSQL, from 5.11.0 to 5.13.0. One supporting library also receives a patch update.
- What changes in the product: Nothing visible in normal use. A rare database failure now returns an error instead of automatically repeating a write that might already have succeeded. Operators using client certificate files must keep those files readable while the service runs.
- Why it exists: The scheduled dependency update includes fixes for three published security advisories and several database reliability problems. Our checked-in usage avoids the specific vulnerable operations or enforces verified remote connections.
- Why merge (or why not yet): The dependency record still names the old version. Repository policy requires updating it in this PR. The remaining fix is two lines.
- What to expect after merging: Normal operation should stay the same. Check the deployed service’s real database connection and watch for newly surfaced connection errors. If client certificates are configured, confirm the service can continue reading their files. Required maintainer and code-owner review still applies.
Findings
Blocking
- docs/dependencies.md:16,20 — stale public dependency pin. The page names pgx
**v5.11.0**and links its v5.11.0 release, whilego.mod:11now pins v5.13.0.CONTRIBUTING.md:62explicitly requires pinned dependency changes to update the public pin record in the same PR.git log -S 'v5.11.0' -- docs/dependencies.mdidentifies the original pin documentation commit, 7575c4c; the current PR leaves that record unchanged. The correction is small and unambiguous, so the decision remains fix.
Non-blocking
-
Retry correction verified against both versions. In v5.11.0,
pgconn.receiveMessagereturns aconnLockErrorwhen the connection is already closed; that error reports itself safe to retry. V5.13.0 instead returns apgconnErrorwithsafeToRetry: falsefrom that branch. The stdlib adapter consequently stops translating this failure intodriver.ErrBadConn, preventing an automatic repeat after the request might have reached PostgreSQL. This concerns that specific failure branch, rather than every dropped connection. Our database wrappers usedatabase/sql(bus/sql_database.go:82), and repository searches found no dependency on these error types. Sources: old receive path, old retry classification, new receive path, stdlib error mapping. -
Certificate reloading survives our configuration copies.
bus/postgres.go:58,63validates TLS settings without inspecting or replacing the certificate slice. Itsstdlib.OpenDB(*config)call at :75 preserves the TLS pointers and loader map through the shallow copies. Upstreampgx.ConnectConfigthen callsConnConfig.Copy;pgconn.Config.Copyclones primary and fallback TLS configurations and re-keys their certificate loaders. No copy-related regression was found. Reloading happens when TLS requests a client certificate, so configured files must remain readable. Repository searches found no checked-in client-certificate configuration; this does not establish what an operator supplies privately. Sources: stdlib connector, connection configuration copy, loader preservation and TLS preparation. -
The three advisory fixes are useful, but applicability needs precise wording.
- GHSA-j38q-h3ph-jjpq, High, affects pgx v5
>= 5.0.0, < 5.12.0: injection through simple-protocolSendBatch. We never callSendBatch.bus/postgres.go:74selectsQueryExecModeExecfor parameterized operations. That setting does not eliminate all simple-protocol execution: upstream still uses simple protocol for argument-freeExec, including our migration statements. Those calls do not use the vulnerable batch assembly. - GHSA-95fj-3fxw-g62g, High, affects
>= 5.9.0, < 5.12.0: bypassed authentication-policy enforcement. The repository sets neither policy, although operators can supply connection parameters or environment settings. Our remote-host TLS validation (bus/postgres.go:86-97) independently requires certificate verification; the advisory does not bypass that verification. - GHSA-w9rp-vfrh-q8vv, Low, lists affected versions
<= 5.12.0: malformed-row panic inRows.Values. We do not callValues. With our Go 1.27 toolchain, stdlib usesNextRow/ScanColumn, which accessRawValues. This supports excluding the advisory’s named entry point, not claiming immunity to every malformed server response. The raw indexing in that scanner already exists in both versions. Sources: argument-free execution, old Go 1.27 scanner, new scanner.
The green
govulncheckjob is additional evidence, not proof that these particular advisories are registered in its database or that every hostile-server path is safe. Turn 2 could not independently repeat the earlier OSV listing check. - GHSA-j38q-h3ph-jjpq, High, affects pgx v5
-
The skipped 5.12.0 release was reviewed. The PR body includes only the 5.13.0 changelog. Relevant additional changes are:
sslcertmodedefaults toallow, preserving normal certificate behavior.- Windows service-file lookup prefers
%APPDATA%\postgresql\.pg_service.conf, with fallback to the previous home-directory location when appropriate. This matters when service configuration is selected, including throughPGSERVICE; the repository supplies none. - New pgxpool connection deadlines do not apply because this repository creates no pgxpool pool.
- The new
BatchResults.Txmethod affects custom interface implementations; we implement none. - Go 1.27 scan-destination classification now caches its result. Comparison of both implementations found the classification logic unchanged. Column-metadata additions have no repository call sites.
Sources: release notes, Windows defaults, new scanner, old scanner.
-
No additional puddle update is needed here. Pgx v5.13.0 requires puddle v2.2.3. A v2.2.4 release also exists, but the pool operations it fixes are outside our
stdlib.OpenDBconfiguration. The v2.2.2 and v2.2.3 module files are identical, explaining their unchanged/go.modchecksum. Sources: pgx requirements, puddle v2.2.2 module, v2.2.3 module. -
Dependabot branch maintenance and sibling updates. The PR body warns that editing its branch affects Dependabot conflict handling and that recreation overwrites edits. Preserve the documentation fix during subsequent branch maintenance. Local comparison of sibling heads 3fb847c (#217), 78f1b41 (#218) and 102aec4 (#219) confirms they change different dependency entries. Their current diffs contain no documentation changes; the anticipated Stripe documentation correction concerns a separate paragraph. No overlapping changed lines were found, but combined dependency resolution and required checks should still be verified after integration.
Fix plan
Edit one file, docs/dependencies.md, on the PR branch. No other file changes.
- docs/dependencies.md:16: change
The PostgreSQL backend uses `github.com/jackc/pgx/v5` **v5.11.0** through itstoThe PostgreSQL backend uses `github.com/jackc/pgx/v5` **v5.13.0** through its. - docs/dependencies.md:20: change
same Go lock files. Source and release: [pgx](https://github.com/jackc/pgx/releases/tag/v5.11.0).tosame Go lock files. Source and release: [pgx](https://github.com/jackc/pgx/releases/tag/v5.13.0).The v5.13.0 release page exists: HTTP 200, a GitHub Release object for commit 1e38d71. - Check:
git grep -n '5\.11\.0'should return no pgx hits, andgit diff --statshould show only docs/dependencies.md (2 lines). Then re-run CI. It's a docs-only change, so all 11 checks should stay green.
Message to the developer
Please apply the fix plan above.
n/a
Questions for Harsh
n/a
Verification
-
PR and discussion: the requested default
gh pr view ... --commentsfailed because this installed CLI requests deprecated Projects fields. Retried successfully with explicit JSON fields for the body, comments, reviews, commits and checks. There are no comments or reviews. The body links upstream releases, advisories and commits. -
Full diff: independently read
git diff 4efe404f5aaaee841e327ed08b87bb8020f4bffe...HEAD. Only go.mod and go.sum change: pgx v5.11.0→v5.13.0 and puddle v2.2.2→v2.2.3. Confirmed the single commit, expected head and parent.git diff --checkpasses. -
Documentation: independently read CONTRIBUTING.md and docs/dependencies.md.
git grep -n '5\.11\.0'returns exactly the two stale documentation lines. Historical search confirms the original pin record. -
Checksums: Claude’s Turn 1 verification against sum.golang.org recorded:
- pgx
h1:Hl08k64maU0nrRyVUEbwCnK6/gT0EhMrtAqBHz9/gA4=;/go.mod h1:u2Fi6no03HCSBYE+ZVdLxbwdu3xyi2vU+K/YNJioSds= - puddle
h1:f8HoREISb3l5eO9coPgK7U3hKLhWGokOFVcThl5jrao=;/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
Turn 2 confirmed those strings match go.sum:42-45. Independent checksum-service requests were unavailable through the web tools, and shell network access failed; the external checksum verification remains attributed to Turn 1.
- pgx
-
Compatibility and release: independently read upstream v5.13.0 go.mod. Its Go 1.25 requirement is below our Go 1.26 floor and selected Go 1.27 toolchain. Its x/sync v0.22.0 and x/text v0.41.0 requirements are satisfied by our existing pins. Independently opened the v5.13.0 release, which identifies commit 1e38d71. Turn 1 additionally checked the proxy’s full origin hash and version metadata; those proxy requests could not be repeated this turn.
-
Code paths: read bus/postgres.go, bus/sql_database.go, bus/store.go, bus/errors.go, database error tests, PostgreSQL runtime/conformance tests, command entry points and deployment documentation. Independently checked upstream retry handling, certificate loading/copying, verified TLS, Go 1.27 scanning and the three advisories.
-
CI: independently confirmed 11/11 checks SUCCESS in run 46727031410. The hosted job runs PostgreSQL and hosted tests with the race detector against PostgreSQL 17. Its URL explicitly disables TLS over loopback (
.github/workflows/ci.yml:144), so it does not establish deployed TLS, certificate rotation or transaction-pooler behavior. -
Merge requirements: CONTRIBUTING.md:58-59 requires approving maintainer and code-owner review. No reviews are currently recorded; green checks do not remove that requirement.
-
Not run: no installs, builds, tests, repository scripts,
go mod verifyorgo mod tidy, following the outside-contributor restriction. No tracked files or GitHub state were modified; the checkout remains clean. Harsh can optionally verify module integrity and tidiness locally. Deployment verification should includeagentintercom database checkagainst the real verified-TLS connection.
Audit log
- Turn 1 (Claude (claude-opus-5-5, xhigh)):
- Read the PR body, the diff, and all pgx call sites and docs.
- Verified the go.sum lines against sum.golang.org, the proxy
.mod/.info/@latest, and the go-directive and requirement compatibility. - Reviewed the upstream 5.12.0 and 5.13.0 changelog, the three advisories, and the v5.13.0 TLS, retry and stdlib source against our usage.
- Checked sibling Dependabot PRs for overlapping hunks.
- Found the stale pin record in docs/dependencies.md:16,20 against CONTRIBUTING.md:62. Decision: fix (2-line doc edit).
- Turn 2 (Codex (gpt-6.1-sol, xhigh)): Independently confirmed the blocker, unchanged fix plan, full diff, CI, repository usage and upstream compatibility; narrowed retry/security claims, checked Go 1.27 scanning and argument-free simple-protocol execution, distinguished checked-in configuration from private deployment settings, and recorded verification limitations. No additional blocking finding; decision remains fix.
Automated review by Harsh's agentbox: two AI reviewers audited this PR against the project ruleset and agreed on it.
Bumps github.com/jackc/pgx/v5 from 5.11.0 to 5.13.0.
Changelog
Sourced from github.com/jackc/pgx/v5's changelog.
... (truncated)
Commits
1e38d71Update changelog for v5.13.0e2bb010Fix Rows.Values panic on mismatched field counts5b0fd94Merge pull request #2709 from waw666waw666/fix-range-any-encode427f50dMerge pull request #2715 from v0idpwn/pgconn-no-cancel-on-failed-connect86b4411Merge pull request #2713 from ksamirdev/fix-append-rows-by-name-bencha3b88dcMerge pull request #2714 from PerryLink/stdlib-column-type-length-unbounded2f429e5Merge pull request #2710 from dajiaohuang/codex/2705-pingtimeout-docs85c3e62stdlib: close rows in precision and scale test4f41febstdlib: clarify zero precision for temporal types22ccfd1stdlib: document temporal precision and scale metadataDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)