René's URL Explorer Experiment


Title: Pass pg_service.conf SSL options to the connection by ritojoao · Pull Request #1663 · dbcli/pgcli · GitHub

Open Graph Title: Pass pg_service.conf SSL options to the connection by ritojoao · Pull Request #1663 · dbcli/pgcli

X Title: Pass pg_service.conf SSL options to the connection by ritojoao · Pull Request #1663 · dbcli/pgcli

Description: Fixes #1474 Description Hello, and thank you for maintaining pgcli. When connecting with pgcli service=NAME (or PGSERVICE), only host, port, user, dbname and password were read from the service entry. Other parameters such as sslmode, sslrootcert, sslcert and sslkey were silently dropped, so the connection was made without SSL, while psql service=NAME worked. This change forwards the remaining parameters of the service entry to the connection, like the URI path already does. A regression test covers the SSL options. I tested it with pytest tests/test_main.py -k service (7 passed). The new test fails without the change and passes with it. ruff format --check is clean. Checklist I've added this contribution to the changelog.rst. I've added my name to the AUTHORS file (or it's already there). I installed pre-commit hooks (pip install pre-commit && pre-commit install). I verified that my changes work as expected (this may include manually testing them in your local environment, or in other available environments). Cross this out if not relevant (for example, if you're making a documentation change). Please squash merge this pull request (uncheck if you'd like us to merge as multiple commits)

Open Graph Description: Fixes #1474 Description Hello, and thank you for maintaining pgcli. When connecting with pgcli service=NAME (or PGSERVICE), only host, port, user, dbname and password were read from the service ent...

X Description: Fixes #1474 Description Hello, and thank you for maintaining pgcli. When connecting with pgcli service=NAME (or PGSERVICE), only host, port, user, dbname and password were read from the service ent...

Opengraph URL: https://github.com/dbcli/pgcli/pull/1663

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6e9249c9-9872-6e93-8998-a10fa3864d72
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC9AC:39588:B0EB3B:EAE51D:6B063D9D
html-safe-noncee9e15d05d1453ce2441306efcd299552125ec8c26cfe8f27c257df8638d1dc04
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUFDOjM5NTg4OkIwRUIzQjpFQUU1MUQ6NkIwNjNEOUQiLCJ2aXNpdG9yX2lkIjoiMzg2OTE4OTEyOTQwNTYxMTQyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd1fa786b2c74d854c007a8e076b094e9ec5fa19131d59866e161d7bf3bda2925
hovercard-subject-tagpull_request:5248052277
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/dbcli/pgcli/pull/1663/files
twitter:imagehttps://avatars.githubusercontent.com/u/16895040?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/16895040?s=400&v=4
og:image:altFixes #1474 Description Hello, and thank you for maintaining pgcli. When connecting with pgcli service=NAME (or PGSERVICE), only host, port, user, dbname and password were read from the service ent...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/dbcli/pgcli git https://github.com/dbcli/pgcli.git
octolytics-dimension-user_id11810727
octolytics-dimension-user_logindbcli
octolytics-dimension-repository_id25126616
octolytics-dimension-repository_nwodbcli/pgcli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id25126616
octolytics-dimension-repository_network_root_nwodbcli/pgcli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/dbcli/pgcli/pull/1663/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdbcli%2Fpgcli%2Fpull%2F1663%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdbcli%2Fpgcli%2Fpull%2F1663%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=dbcli%2Fpgcli
Reloadhttps://github.com/dbcli/pgcli/pull/1663/files
Reloadhttps://github.com/dbcli/pgcli/pull/1663/files
Reloadhttps://github.com/dbcli/pgcli/pull/1663/files
dbclihttps://github.com/dbcli
pgclihttps://github.com/dbcli/pgcli
Codehttps://github.com/dbcli/pgcli
Issues27 (27)https://github.com/dbcli/pgcli/issues
Pull requests31 (31)https://github.com/dbcli/pgcli/pulls
Discussionshttps://github.com/dbcli/pgcli/discussions
Actionshttps://github.com/dbcli/pgcli/actions
Wikihttps://github.com/dbcli/pgcli/wiki
Security and qualityhttps://github.com/dbcli/pgcli/security
Insightshttps://github.com/dbcli/pgcli/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fdbcli%2Fpgcli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdbcli%2Fpgcli%2Fissues%2Fnew%2Fchoose
ritojoaohttps://github.com/ritojoao
dbcli:mainhttps://github.com/dbcli/pgcli/tree/main
ritojoao:fix/1474-service-ssl-optionshttps://github.com/ritojoao/pgcli/tree/fix/1474-service-ssl-options
Conversation 0 https://github.com/dbcli/pgcli/pull/1663
Commits 1 https://github.com/dbcli/pgcli/pull/1663/commits
Checks 2 https://github.com/dbcli/pgcli/pull/1663/checks
Files changed https://github.com/dbcli/pgcli/pull/1663/files
Please reload this pagehttps://github.com/dbcli/pgcli/pull/1663/files
Pass pg_service.conf SSL options to the connection https://github.com/dbcli/pgcli/pull/1663/files#top
Show all changes 1 commit https://github.com/dbcli/pgcli/pull/1663/files
3b5e2ed Pass pg_service.conf SSL options to the connection (#1474) ritojoao Nov 10, 2026 https://github.com/dbcli/pgcli/pull/1663/commits/3b5e2ed04838c7116de407fadf452cab7e294d52
Clear filters https://github.com/dbcli/pgcli/pull/1663/files
Please reload this pagehttps://github.com/dbcli/pgcli/pull/1663/files
Please reload this pagehttps://github.com/dbcli/pgcli/pull/1663/files
AUTHORS https://github.com/dbcli/pgcli/pull/1663/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463
changelog.rst https://github.com/dbcli/pgcli/pull/1663/files#diff-f1968332718208c6d053b5cc83c63bd940ec7c8809d61cd4be7e8b27c57eb7f0
main.py https://github.com/dbcli/pgcli/pull/1663/files#diff-86910f2abca3cb215d5060a9adebb0d1c17ccd36d7026ede52eb801e6b57114d
test_main.py https://github.com/dbcli/pgcli/pull/1663/files#diff-41d180f6f7233d175c2dfe36c45c4ea80eed4754fa7ed4eed46ccde1b2a778c7
AUTHORShttps://github.com/dbcli/pgcli/pull/1663/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463
View file https://github.com/dbcli/pgcli/blob/3b5e2ed04838c7116de407fadf452cab7e294d52/AUTHORS
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/dbcli/pgcli/pull/1663/{{ revealButtonHref }}
https://github.com/dbcli/pgcli/pull/1663/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463
https://github.com/dbcli/pgcli/pull/1663/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463
changelog.rsthttps://github.com/dbcli/pgcli/pull/1663/files#diff-f1968332718208c6d053b5cc83c63bd940ec7c8809d61cd4be7e8b27c57eb7f0
View file https://github.com/dbcli/pgcli/blob/3b5e2ed04838c7116de407fadf452cab7e294d52/changelog.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/dbcli/pgcli/pull/1663/{{ revealButtonHref }}
https://github.com/dbcli/pgcli/pull/1663/files#diff-f1968332718208c6d053b5cc83c63bd940ec7c8809d61cd4be7e8b27c57eb7f0
https://github.com/dbcli/pgcli/pull/1663/files#diff-f1968332718208c6d053b5cc83c63bd940ec7c8809d61cd4be7e8b27c57eb7f0
pgcli/main.pyhttps://github.com/dbcli/pgcli/pull/1663/files#diff-86910f2abca3cb215d5060a9adebb0d1c17ccd36d7026ede52eb801e6b57114d
View file https://github.com/dbcli/pgcli/blob/3b5e2ed04838c7116de407fadf452cab7e294d52/pgcli/main.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/dbcli/pgcli/pull/1663/{{ revealButtonHref }}
https://github.com/dbcli/pgcli/pull/1663/files#diff-86910f2abca3cb215d5060a9adebb0d1c17ccd36d7026ede52eb801e6b57114d
https://github.com/dbcli/pgcli/pull/1663/files#diff-86910f2abca3cb215d5060a9adebb0d1c17ccd36d7026ede52eb801e6b57114d
tests/test_main.pyhttps://github.com/dbcli/pgcli/pull/1663/files#diff-41d180f6f7233d175c2dfe36c45c4ea80eed4754fa7ed4eed46ccde1b2a778c7
View file https://github.com/dbcli/pgcli/blob/3b5e2ed04838c7116de407fadf452cab7e294d52/tests/test_main.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/dbcli/pgcli/pull/1663/{{ revealButtonHref }}
https://github.com/dbcli/pgcli/pull/1663/files#diff-41d180f6f7233d175c2dfe36c45c4ea80eed4754fa7ed4eed46ccde1b2a778c7
https://github.com/dbcli/pgcli/pull/1663/files#diff-41d180f6f7233d175c2dfe36c45c4ea80eed4754fa7ed4eed46ccde1b2a778c7
Please reload this pagehttps://github.com/dbcli/pgcli/pull/1663/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.