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.92) (envelope-from ) id 1jHwlv-0007UV-Eu for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 21:44:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHwlt-0000n7-11 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 21:44:09 +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 1jHwls-0000mz-Nc for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2020 21:44:08 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jHwlp-0000BI-QM for pgsql-hackers@postgresql.org; Fri, 27 Mar 2020 21:44:07 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 8F3615F798; Fri, 27 Mar 2020 17:44:07 -0400 (EDT) Date: Fri, 27 Mar 2020 17:44:07 -0400 From: Stephen Frost To: Andres Freund Cc: Robert Haas , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , David Steele , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C Subject: Re: backup manifests Message-ID: <20200327214407.GL13712@tamriel.snowman.net> References: <20200327062927.2ijbvoa7pqoc3w7b@alap3.anarazel.de> <20200327203225.hcm6ag4grwsiruea@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RS1722//baS0C3Tp" Content-Disposition: inline In-Reply-To: <20200327203225.hcm6ag4grwsiruea@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --RS1722//baS0C3Tp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andres Freund (andres@anarazel.de) wrote: > On 2020-03-27 15:20:27 -0400, Robert Haas wrote: > > On Fri, Mar 27, 2020 at 2:29 AM Andres Freund wrot= e: > > > Hm. Should this warn if the directory's permissions are set too openly > > > (world writable?)? > >=20 > > I don't think so, but it's pretty clear that different people have > > different ideas about what the scope of this tool ought to be, even in > > this first version. >=20 > Yea. I don't have a strong opinion on this specific issue. I was mostly > wondering because I've repeatedly seen people restore backups with world > readable properties, and with that it's obviously possible for somebody > else to change the contents after the checksum was computed. For my 2c, at least, I don't think we need to check the directory permissions, but I wouldn't object to including a warning if they're set such that PG won't start. I suppose +0 for "warn if they are such that PG won't start". Thanks, Stephen --RS1722//baS0C3Tp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJefnOnAAoJEO1sijiDR2RVdXYP/3OhTvwxuyC2Z21myNtSKGD8 uoB7J3Mp3dostnnVTGbTTHOAbqdmHlE2Pxrob99jz2/yz1wWTeIU9BdRawWPnSvL TsyLfnccsEisV8icY09aASzczaH58zARffVlHsDL2yk56JCTXpvUf1/I9wMdN554 HbWkbYR1CWakYUxeqU7tDfrTcJOfZcKMoLOBYXat8khre0Q/3wrO/8p/EiQ32cyz 2Ta3KE993hXvt5QqDU68AjFKj7qTguDfsgPCa2PTwnIrsXf3aE7DekGXwiVGl+RG k/fzYDtYG9TAUI2mm2rb8jkXmAy9rrAJMVeo82GktsLyt9BiA/cdr24zO2lvx8tQ j27N4NpEuartpnwrYOJ84LqaF+yh8J7sUBAWSMp5ca2OnQ8uMaxY1wYPtkCDjW7g Z2CaGqr5kt/uzLZ+a8ybCa4/owtB8xUg98wBxcbgGCFkQkCRYaWqLmNDb4/Qob8y npXeVp7psck5kGtIXbatChQrEWWP7+1sCG0v1ELsYcH7zwzhRwiHNoeZWLBPLqUZ MrartqQBzkhPfX7UYuX9VR3QBwPEEtshh5/frbFNzSnO3EOTZx71DXfu5bY3o+4x mbvyVAwVzJ5gzb6c1uryJKjA6Db1EIYSnueEo1P1+VKlFCWO5dfqyaKmkARu1D7c r6Q/6QSLZP0GPhMXewm4 =LWq+ -----END PGP SIGNATURE----- --RS1722//baS0C3Tp--