fix: sync pgx/v5 migration — remove pgproto3/v2 (CVE-2026-32286)#985
fix: sync pgx/v5 migration — remove pgproto3/v2 (CVE-2026-32286)#985buger wants to merge 1 commit intorelease-1.14from
Conversation
Cherry-pick changes from release-1.14.1 (PR #959): - Upgrade storage v1.3.0 → v1.3.1 - Replace pgx/v4 with pgx/v5 - Update gorm drivers (postgres, mysql) - Update gorm fork with pgx/v5 error translation - Add monthEncodePlan for pgx/v5 simple protocol compatibility - Add pgx/v5 and MySQL test suites Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
|
This PR resolves a high-severity vulnerability (CVE-2026-32286) by upgrading the PostgreSQL driver from Beyond the primary security fix, the PR includes several significant updates:
Files Changed Analysis
Architecture & Impact AssessmentThis PR primarily accomplishes a critical security remediation by upgrading a core data persistence dependency. The impact is concentrated on the SQL pump, which is responsible for writing analytics data to PostgreSQL and MySQL. Key Technical Changes
Affected System ComponentsThe change directly affects the graph TD
subgraph Tyk Pump Application
A[Data Pumps] --> B[pumps/sql.go];
B --> C[GORM ORM];
C --> D[gorm.io/driver/postgres];
D --> E[jackc/pgx/v5];
end
E --> F[PostgreSQL Database];
style E fill:#f9f,stroke:#333,stroke-width:2px
style B fill:#f9f,stroke:#333,stroke-width:2px
Scope Discovery & Context ExpansionThe scope of this PR extends beyond a simple version bump. The need for a custom encoding plan in Metadata
Powered by Visor from Probelabs Last updated: 2026-04-21T09:52:43.545Z | Triggered by: pr_opened | Commit: 0381549 💡 TIP: You can chat with Visor using |
Security Issues (3)
✅ Architecture Check PassedNo architecture issues found – changes LGTM. Performance Issues (1)
Powered by Visor from Probelabs Last updated: 2026-04-21T09:52:38.425Z | Triggered by: pr_opened | Commit: 0381549 💡 TIP: You can chat with Visor using |
Summary
storagev1.3.0 → v1.3.1, replacepgx/v4withpgx/v5monthEncodePlanfor pgx/v5 simple protocol compatibilitypgproto3/v2— the last remaining HIGH CVETest plan
go build ./...passespgproto3/v2no longer in go.mod🤖 Generated with Claude Code