From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: joshdani1357@gmail.com
Subject: BUG #16848: psqlodbc_13_00_0000-x64 used for Linked Server is displaying linked server password in the DSN logs
Date: Mon, 01 Feb 2021 23:57:55 +0000
Message-ID: <16848-129851de447f4d5d@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16848
Logged by: Josh Dani
Email address: joshdani1357@gmail.com
PostgreSQL version: 13.1
Operating system: Windows
Description:
I have installed psqlodbc_13_00_0000-x64 on my SQLServer machine. I then
created a DSN (without password) to my PostgreSQL server and enabled
logging. I have created a linked server in SSMS. When I do activities on the
linked server, I see the linked server password in plain text in the logs,
in PQconnectdbParams
[8912-0.000] mylog.c[logs_on_off]274: mylog_on=2 qlog_on=2
[8912-0.000]connection[CC_connect]1108: entering...sslmode=disable
[8912-0.000]connection[LIBPQ_CC_connect]1080: entering...
[8912-0.000]connection[CC_initial_log]1028: [QLOG]Driver
Version='13.00.0000,Nov 19 2020' linking 1915 dynamic Multithread library
[8912-0.000]connection[CC_initial_log]1063: DSN = 'dsn_postgresql', server =
'****', port = '****', database = 'postgres', username = '***',
password='xxxxx'
[8912-0.000]connection[LIBPQ_connect]2761: connecting to the database using
**** as the server and pqopt={}
[8912-0.000]connection[LIBPQ_connect]2873: [QLOG]PQconnectdbParams:
host='****' port='****' dbname='postgres' user='****' sslmode='disable'
password='<Real Password is shown here>' connect_timeout=’20’
This is the problem: password='<Real Password is shown here>'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, joshdani1357@gmail.com
Subject: Re: BUG #16848: psqlodbc_13_00_0000-x64 used for Linked Server is displaying linked server password in the DSN logs
In-Reply-To: <16848-129851de447f4d5d@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox