Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL: Fix tls certificate issue by downgrading lib/pq #67372

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

zoltanbedi
Copy link
Member

This PR tries to fix the issue stated in #65816 by downgrading the lib/pq library.

Which issue(s) does this PR fix?:

Fixes #65816

@zoltanbedi zoltanbedi requested review from sakjur and a team April 27, 2023 09:54
@zoltanbedi zoltanbedi self-assigned this Apr 27, 2023
@zoltanbedi zoltanbedi requested a review from a team as a code owner April 27, 2023 09:54
@zoltanbedi zoltanbedi requested review from mildwonkey and suntala and removed request for a team April 27, 2023 09:54
@zoltanbedi zoltanbedi added this to the 10.0.0 milestone Apr 27, 2023
@zoltanbedi zoltanbedi added backport v9.5.x Bot will automatically open backport PR and removed no-backport Skip backport of PR labels Apr 27, 2023
Copy link
Contributor

@papagian papagian left a comment

Choose a reason for hiding this comment

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

given the diff between the two versions
I think it's safe to downgrade it

@@ -73,7 +73,7 @@ require (
github.com/jmespath/go-jmespath v0.4.0
github.com/json-iterator/go v1.1.12
github.com/jung-kurt/gofpdf v1.16.2
github.com/lib/pq v1.10.7
github.com/lib/pq v1.10.6
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest adding a comment to prevent future attempts to upgrade until this is fixed

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @papagian added a comment at the bottom. Is that okay?

Copy link
Contributor

@sakjur sakjur left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I don't see any harm in downgrading based on looking at lib/pq@v1.10.6...v1.10.9 and lib/pq@v1.10.6...v1.10.7

@zoltanbedi zoltanbedi merged commit 5c32925 into main Apr 27, 2023
@zoltanbedi zoltanbedi deleted the zoltan/downgrade-lib-pq branch April 27, 2023 13:26
grafanabot pushed a commit that referenced this pull request Apr 27, 2023
* PostgreSQL: Downgrade lib/pq

* Add comment

(cherry picked from commit 5c32925)
zoltanbedi added a commit that referenced this pull request Apr 27, 2023
…67393)

PostgreSQL: Fix tls certificate issue by downgrading lib/pq (#67372)

* PostgreSQL: Downgrade lib/pq

* Add comment

(cherry picked from commit 5c32925)

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
@zerok zerok modified the milestones: 10.0.0, 10.0.0-preview May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postgres: tls-mode verify-ca does not work correctly (behaves like verify-full)
5 participants