Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tkfuS-005sNx-8w for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Feb 2025 08:58:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tkfuQ-006Cia-EU for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Feb 2025 08:58:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tkfuQ-006CiI-56 for pgsql-bugs@lists.postgresql.org; Wed, 19 Feb 2025 08:58:22 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tkfuO-001gEP-1i for pgsql-bugs@lists.postgresql.org; Wed, 19 Feb 2025 08:58:21 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5dc89df7eccso11848341a12.3 for ; Wed, 19 Feb 2025 00:58:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1739955499; x=1740560299; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=46pyp7EdQjhVexPd/Wtn/VM56ujv6GfFEq52UGN1of8=; b=QjRP+Joi6ubWeOK0zShg9egZoZFRM56JzeA64Ox1MNVqoRxlZaYKVm1kgI+Li81pg0 e4A+K1A0O96k5SqxtHVVuLOZDDlnYlc9UariyTVIzhowT+3BImg3Y66S6rriNTi3iW9a bvAlvravR4f/i3jzpFpEtuKTo/rJs7X/pXWJ+Jvq1xrn56A1QSBIf/O0sOXbXhFqk5fd zWSXG8MzeowYLgENwftjkrfWd+cKWs/IZ5ZAvh0ZcnKZLxEkJADFCeKQBprIxa6zgtjn sSFWKnKet6up2hkrSdAsuDfHnUtYIdVKOssMxKqjpvJG7fn/QVNIdfU3cjyoTJU+G1DD q8Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739955499; x=1740560299; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=46pyp7EdQjhVexPd/Wtn/VM56ujv6GfFEq52UGN1of8=; b=K2UWXzORkXK5JDUHIaBzU8kCUjj/rOdN/ZWWSCnTaNYXmWt0Kd2/YPDHP91yqbITMD 96QOxiiEwlgu1/yrJ84Ao2j13NM95cq7RPSX2tkt55NCi8A29FkzhDLbuTnhFYR0nDAy neU3TBI//vNCWWCt77I8XzSLD9tD9m82IFDGkZ2xAjZQWyukV2wpjc2IIWUsoZCzH0fm IqqOZuB45BWlAdvfk65hL6bcywXQGsYn4AzFaqQ+xZWDcbxrQl3So85uSYk18/D88jz2 8fVbeiKF9ROIxUjnSkPlE4m69O5YnrTdG4VI5V4CYl3gJhytwNlmbu/mWekgRPyjpYhy gHdw== X-Forwarded-Encrypted: i=1; AJvYcCWlxfJHQOhPXMdR9gngNsdZpkSswFqVxVn8etuH4/uRyETvjqhd5xkwER91PYO26XxgM2xh3pq1B3Tp@lists.postgresql.org X-Gm-Message-State: AOJu0YxIXaIbUoEAoP2SZxRnYiDQv5GaR2pXvGLN2228D7x0HD9zj7ov wvK3tTUNo8yOqFAJKdi5BedSRIYHeYAce078uN4y4NKnrG7hvKCkigE4a3brP/1H5QBxflm1ld8 tbZWIwqS50AiNAH/aLE6Fkx+tTslksQ52cD6If+OgAKISWpYzWGb34ESt8//L X-Gm-Gg: ASbGncviacXtpSj/FkSj7doGlr1OCT8pLCOpqxefJTTsFmL/VyOn8Tq5f/BMltbWrb3 vsG07t10ctpi0NYzlKWteZ06W/QMH1WF5xTZTdwG5duPImGO8/rtFT/Mjp4C6xK1j+adGFwWyg5 kd8SN096DntI+TyfUkVrOhO9gocV03W8uavtM52Y0atMbG3AW3hlki/ecN1D4ZUG7zQEdYwIbtH fJqPqzIqKM9y8ERC50p987OV+8WhmF8v79DspO7vFbnu+3h1BG2Q4fs7om3Kx7FAilfxzKW+s5E Ooj7TLh9+ZXpB+tpA27T0avELPjEn6utveE= X-Google-Smtp-Source: AGHT+IGiPimn/IL9ZO+A/pFJ1Q8mZwGzGEc62lUJBFAP5usuyJH1jc1nRzcAp6QdCIkRQymOkA1wSA== X-Received: by 2002:a05:6402:2384:b0:5e0:36c0:7b00 with SMTP id 4fb4d7f45d1cf-5e036c07d5fmr14340447a12.31.1739955499057; Wed, 19 Feb 2025 00:58:19 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:517b:7a17:db82:bac2:ea1d]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece1b4e53sm9987979a12.9.2025.02.19.00.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 00:58:18 -0800 (PST) Message-ID: Subject: Re: BUG #18817: Security Bug Report: Plaintext Password Exposure in Logs From: Laurenz Albe To: Matthias Apitz , Tom Lane Cc: Indrajeeth Deshmukh , David Rowley , pgsql-bugs@lists.postgresql.org Date: Wed, 19 Feb 2025 09:58:17 +0100 In-Reply-To: References: <18817-771682052a364bfe@postgresql.org> <1241094.1739893072@sss.pgh.pa.us> User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-02-19 at 06:57 +0100, Matthias Apitz wrote: > What do I have to configure in the PostgreSQL server to get this > reproduced? I tried: >=20 > $ psql -Usisis testdb > psql (15.1, server 16.5) > WARNING: psql major version 15, server major version 16. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Some psql features might= not work. > Type "help" for help. >=20 > testdb=3D# CREATE USER bla WITH PASSWORD 'bla'; > CREATE ROLE > testdb=3D# >=20 > and have nothing in the log: >=20 > $ tail /data/postgresql165/log/postgresql-2025-02-19_000000.log > ... >=20 > 2025-02-19 06:15:23.582 CET [1947] LOG:=C2=A0 checkpoint complete: wrote = 1421 buffers (8.7%); 0 WAL file(s) added, 1 removed, 0 recycled; write=3D14= 2.168 s, sync=3D0.003 s, total=3D142.186 s; sync files=3D57, longest=3D0.00= 2 s, average=3D0.001 s; distance=3D18403 kB, estimate=3D18403 kB; lsn=3D5/7= 2470898, redo lsn=3D5/7246F048 >=20 > I even set=20 >=20 > log_statement =3D 'all' >=20 > and restarted the server - nothing. Setting "log_statement" to "all", "mod" or "ddl" would do the trick. You must have made some basic mistake. Look at "pg_settings" what your current setting for "log_statement" is and where it is coming from. > The purpose of my question is to inform our 50++ PostgreSQL customers > what they must avoid... I'd call that an unfair bias against your younger customers. Yours, Laurenz Albe --=20 *E-Mail Disclaimer* Der Inhalt dieser E-Mail ist ausschliesslich fuer den=20 bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat= =20 dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte,=20 dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder= =20 Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich= =20 in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. *CONFIDENTIALITY NOTICE & DISCLAIMER *This message and any attachment are=20 confidential and may be privileged or otherwise protected from disclosure= =20 and solely for the use of the person(s) or entity to whom it is intended.= =20 If you have received this message in error and are not the intended=20 recipient, please notify the sender immediately and delete this message and= =20 any attachment from your system. If you are not the intended recipient, be= =20 advised that any use of this message is prohibited and may be unlawful, and= =20 you must not copy this message or attachment or disclose the contents to=20 any other person.