Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJO37-0007SA-4Y for pgsql-general@arkaria.postgresql.org; Wed, 24 Apr 2019 19:59:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJO32-0006dM-Tv for pgsql-general@arkaria.postgresql.org; Wed, 24 Apr 2019 19:59:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJO31-0006bF-6V for pgsql-general@lists.postgresql.org; Wed, 24 Apr 2019 19:59:16 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJO2v-0001wm-Ga for pgsql-general@lists.postgresql.org; Wed, 24 Apr 2019 19:59:14 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DED5A220FD; Wed, 24 Apr 2019 15:59:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 24 Apr 2019 15:59:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=J i/4CjBlrPFYRDIvNFamf1MUkpf5WllotFlLKO23pKo=; b=B1svyBHszFIddtDJY u7QsnAVG/L6aOPOpDFktFRcfIBMCtIGfAVCn0++0LdsjMn0AN+aOgOelSDkv8tA7 3eXrBhs7A4eykgjPwr8btJh54HfzODbUUclp708oEA7RQ9Qo/jFgvfNyMHxmBgei 99Uj+7w7Tio1ukyEhDzmw5oXLOLsQg3gn/XQaePXe357dBR86Yhv2jWSqhU/Ji3J FBmqZH0mJAiDW4hzrBZtEtwIjPziv66SR4GOljMVtqDnuTYxqGD//duS3rqYAwWQ iaU+aRPqg5q7/hTAH7u0VNDn9qRUzqPqmKIBoTRowJSP8CpvZ0+jKjdGPJttBOXa 8mwgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Ji/4CjBlrPFYRDIvNFamf1MUkpf5WllotFlLKO23p Ko=; b=ipWbjn/QNY8YAB/BrVv7qVOLswTlPf5rRqFTkc2jBXG5zu/KYT5uFI9L3 7Ot1vIzMRUiTOSUg6p+C9/HmnvrrsihhGOrn8JOVr1Yn78GuXNQdvgbXiEi4Fqp/ 7oHYCMMr9Sld6LGcJgDhNGpoTnIa60lCbi5X+04MpW/cwBk/FIEUQXm2Xs43JyHZ rNJdTFXd1OPsuUjyFzdUORNMijaY+uxQlEQM5pR/M/t7jtIHevm5Cr74CmG4OPMP 3KVU5zIrKput2sbxjVrxpasw/MsxypJlw9Qfny1xd3iog2mi3fWsgaJRtT7Y3l/L pRGj4WKlwqTSRLm81gsVNrsM/KqSA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrhedvgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjeegrdelgedr jeefrddvvddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id EC603103C9; Wed, 24 Apr 2019 15:59:05 -0400 (EDT) Subject: Re: Postgres Security Patches Question To: "Patil, Prashant" , Tom Lane Cc: "pgsql-general@lists.postgresql.org" References: <6c9b95c3-5136-186e-ca61-cc0f4230e326@aklaver.com> <12413.1556117870@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <342acdfe-6315-6013-4d85-3658677ed98f@aklaver.com> Date: Wed, 24 Apr 2019 12:59:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/24/19 8:09 AM, Patil, Prashant wrote: > Thanks Tom. So since security patches is not release separately, they are part of minor releases. Is this correct statement? Yes. See below for the reasoning and schedule: https://www.postgresql.org/support/versioning/ https://www.postgresql.org/developer/roadmap/ > > If they are part minor releases, we need to download source code for that release and perform upgrade and while performing upgrade, we can point install directories to our custom data/config directories RIGHT? > > Regards, > Prashant > > -----Original Message----- > From: Tom Lane > Sent: Wednesday, April 24, 2019 10:58 AM > To: Adrian Klaver > Cc: Patil, Prashant ; pgsql-general@lists.postgresql.org > Subject: Re: Postgres Security Patches Question > > > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > > [ removing security list, since this is not a security bug report ] > > Adrian Klaver writes: >> On 4/24/19 7:30 AM, Patil, Prashant wrote: >>> ... If there is any security patch that need to apply on postgres >>> database in future, 1. Would security patch available in form of >>> source code/zip file OR do we have to apply it using rpm? 2. If rpm, >>> would it be possible to install security patch on postgres custom >>> directories through RPM? 3. Any caveat that we need to aware about? > >> AFAIK the patches are not released separately. In your case you would >> need to download the new patched complete source and rebuild it. > > We do not release security patches separately, and are not interested in doing so. Two points you might wish to consider: > > * Security patches are not tested standalone, only on top of the complete patch-series-to-date. There's no certainty they'd even apply to an earlier snapshot, let alone work as intended. > > * For most database installations, data-loss-risk bugs are at least as important as "security" bugs, maybe more so. The vast majority of the things we label security bugs are privilege escalation problems accessible to someone who is already able to log into the database and execute arbitrary SQL. But few installations have untrusted users connecting directly to the database, so these sorts of bug fixes are really just limiting the possible effects of any security loopholes (e.g. SQL-injection bugs) you may have in your applications. Which is a good thing surely, but it pales compared to "this bug might corrupt all your data". > > The PG community's recommendation is that you install new minor releases in toto. Anybody who thinks it's better to just cherry-pick "security" > patches doesn't understand the realities of database work. > > regards, tom lane > This email may contain confidential or privileged material. Use or disclosure of it by anyone other than the recipient is unauthorized. If you are not an intended recipient, please delete this email. > -- Adrian Klaver adrian.klaver@aklaver.com