Skip to content

Sync: merge upstream v1.0.7 (DSN format fix for IAM token) - #8

Merged
gcaracuel merged 2 commits into
masterfrom
sync/upstream-20260812
Aug 13, 2026
Merged

gcaracuel merged 2 commits into
masterfrom
sync/upstream-20260812

Conversation

@gcaracuel

Copy link
Copy Markdown

Changes

Syncs latest upstream commit:

  • fix: use keyword-value DSN format to avoid IAM token URL breakage (pkg/postgres/postgres.go)

After merge, create tag v1.0.7 on master to trigger the chart release workflow.

…aracuel#18)

IAM auth tokens contain URL-special characters (:, ?, &, =, /) which
cause lib/pq to misparse the postgresql://user:pass@host/db?args URL
format. The error was:

  dial tcp: lookup root:paidly-prd-internal...:5432: no such host

because lib/pq treated the entire user:pass@... as the hostname.

Fix: use lib/pq's keyword-value format (host= port= user= password=
dbname=) which does not rely on URL parsing and handles arbitrary
password characters safely.
@gcaracuel
gcaracuel merged commit eca8138 into master Aug 13, 2026
4 checks passed
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.

1 participant